Remove sokoke_widget_popup and replace all call sites
This commit is contained in:
parent
6e6f6e867a
commit
fd7d778e0c
12 changed files with 11 additions and 39 deletions
|
@ -553,8 +553,8 @@ feed_panel_popup (GtkWidget* widget,
|
|||
item, feed_panel_delete_activate_cb, panel);
|
||||
}
|
||||
|
||||
sokoke_widget_popup (widget, GTK_MENU (menu),
|
||||
event, SOKOKE_MENU_POSITION_CURSOR);
|
||||
katze_widget_popup (widget, GTK_MENU (menu),
|
||||
event, KATZE_MENU_POSITION_CURSOR);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
|
@ -196,8 +196,7 @@ tab_panel_popup (GtkWidget* widget,
|
|||
{
|
||||
GtkWidget* menu = midori_view_get_tab_menu (MIDORI_VIEW (view));
|
||||
|
||||
sokoke_widget_popup (widget, GTK_MENU (menu),
|
||||
event, SOKOKE_MENU_POSITION_CURSOR);
|
||||
katze_widget_popup (widget, GTK_MENU (menu), event, KATZE_MENU_POSITION_CURSOR);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
|
@ -3852,8 +3852,7 @@ midori_browser_bookmark_popup (GtkWidget* widget,
|
|||
midori_browser_bookmark_popup_item (menu, GTK_STOCK_DELETE, NULL,
|
||||
item, midori_browser_bookmark_delete_activate_cb, browser);
|
||||
|
||||
sokoke_widget_popup (widget, GTK_MENU (menu),
|
||||
event, SOKOKE_MENU_POSITION_CURSOR);
|
||||
katze_widget_popup (widget, GTK_MENU (menu), event, KATZE_MENU_POSITION_CURSOR);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -711,7 +711,7 @@ midori_panel_options_clicked_cb (GtkToolItem* toolitem,
|
|||
g_signal_emit_by_name (viewable, "populate-option-menu", menu);
|
||||
|
||||
katze_widget_popup (GTK_WIDGET (toolitem), GTK_MENU (menu),
|
||||
NULL, SOKOKE_MENU_POSITION_LEFT);
|
||||
NULL, KATZE_MENU_POSITION_LEFT);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -501,8 +501,7 @@ midori_search_action_icon_released_cb (GtkWidget* entry,
|
|||
g_signal_connect (menuitem, "activate",
|
||||
G_CALLBACK (midori_search_action_manage_activate_cb), action);
|
||||
gtk_widget_show (menuitem);
|
||||
sokoke_widget_popup (entry, GTK_MENU (menu),
|
||||
NULL, SOKOKE_MENU_POSITION_LEFT);
|
||||
katze_widget_popup (entry, GTK_MENU (menu), NULL, KATZE_MENU_POSITION_LEFT);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
|
@ -3362,7 +3362,7 @@ midori_view_tab_label_button_release_event (GtkWidget* tab_label,
|
|||
GtkWidget* menu = midori_view_get_tab_menu (MIDORI_VIEW (widget));
|
||||
|
||||
katze_widget_popup (widget, GTK_MENU (menu),
|
||||
event, SOKOKE_MENU_POSITION_CURSOR);
|
||||
event, KATZE_MENU_POSITION_CURSOR);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -485,15 +485,6 @@ sokoke_container_show_children (GtkContainer* container)
|
|||
gtk_container_foreach (container, (GtkCallback)(gtk_widget_show_all), NULL);
|
||||
}
|
||||
|
||||
void
|
||||
sokoke_widget_popup (GtkWidget* widget,
|
||||
GtkMenu* menu,
|
||||
GdkEventButton* event,
|
||||
SokokeMenuPos pos)
|
||||
{
|
||||
katze_widget_popup (widget, menu, event, (KatzeMenuPos)pos);
|
||||
}
|
||||
|
||||
typedef enum
|
||||
{
|
||||
SOKOKE_DESKTOP_UNTESTED,
|
||||
|
|
|
@ -55,12 +55,6 @@ sokoke_magic_uri (const gchar* uri,
|
|||
gchar*
|
||||
sokoke_format_uri_for_display (const gchar* uri);
|
||||
|
||||
typedef enum {
|
||||
SOKOKE_MENU_POSITION_CURSOR = 0,
|
||||
SOKOKE_MENU_POSITION_LEFT,
|
||||
SOKOKE_MENU_POSITION_RIGHT
|
||||
} SokokeMenuPos;
|
||||
|
||||
void
|
||||
sokoke_combo_box_add_strings (GtkComboBox* combobox,
|
||||
const gchar* label_first,
|
||||
|
@ -73,12 +67,6 @@ sokoke_widget_set_visible (GtkWidget* widget,
|
|||
void
|
||||
sokoke_container_show_children (GtkContainer* container);
|
||||
|
||||
void
|
||||
sokoke_widget_popup (GtkWidget* widget,
|
||||
GtkMenu* menu,
|
||||
GdkEventButton* event,
|
||||
SokokeMenuPos pos);
|
||||
|
||||
GtkWidget*
|
||||
sokoke_xfce_header_new (const gchar* icon,
|
||||
const gchar* title);
|
||||
|
|
|
@ -797,8 +797,7 @@ midori_bookmarks_popup (GtkWidget* widget,
|
|||
midori_bookmarks_popup_item (menu, GTK_STOCK_DELETE, NULL,
|
||||
item, midori_bookmarks_delete_activate_cb, bookmarks);
|
||||
|
||||
sokoke_widget_popup (widget, GTK_MENU (menu),
|
||||
event, SOKOKE_MENU_POSITION_CURSOR);
|
||||
katze_widget_popup (widget, GTK_MENU (menu), event, KATZE_MENU_POSITION_CURSOR);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
|
@ -382,8 +382,7 @@ midori_extensions_popup (GtkWidget* widget,
|
|||
midori_extensions_about_activate_cb, FALSE,
|
||||
extensions);
|
||||
|
||||
sokoke_widget_popup (widget, GTK_MENU (menu),
|
||||
event, SOKOKE_MENU_POSITION_CURSOR);
|
||||
katze_widget_popup (widget, GTK_MENU (menu), event, KATZE_MENU_POSITION_CURSOR);
|
||||
|
||||
g_free (website);
|
||||
}
|
||||
|
|
|
@ -840,8 +840,7 @@ midori_history_popup (GtkWidget* widget,
|
|||
midori_history_popup_item (menu, GTK_STOCK_DELETE, NULL,
|
||||
item, midori_history_delete_activate_cb, history);
|
||||
|
||||
sokoke_widget_popup (widget, GTK_MENU (menu),
|
||||
event, SOKOKE_MENU_POSITION_CURSOR);
|
||||
katze_widget_popup (widget, GTK_MENU (menu), event, KATZE_MENU_POSITION_CURSOR);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
|
@ -483,8 +483,7 @@ midori_transfers_popup (GtkWidget* widget,
|
|||
_("Copy Link Loc_ation"), download,
|
||||
midori_transfers_copy_address_activate_cb, FALSE, transfers);
|
||||
|
||||
sokoke_widget_popup (widget, GTK_MENU (menu),
|
||||
event, SOKOKE_MENU_POSITION_CURSOR);
|
||||
katze_widget_popup (widget, GTK_MENU (menu), event, KATZE_MENU_POSITION_CURSOR);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue