Avoid the rarely used sokoke_container_show_children
This commit is contained in:
parent
6bceb5a10a
commit
2976f6ebb2
4 changed files with 4 additions and 12 deletions
|
@ -3909,7 +3909,8 @@ _action_location_secondary_icon_released (GtkAction* action,
|
||||||
G_CALLBACK (midori_browser_news_feed_clicked_cb), browser);
|
G_CALLBACK (midori_browser_news_feed_clicked_cb), browser);
|
||||||
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
|
gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem);
|
||||||
}
|
}
|
||||||
sokoke_container_show_children (GTK_CONTAINER (menu));
|
gtk_container_foreach (GTK_CONTAINER (menu),
|
||||||
|
(GtkCallback)(gtk_widget_show_all), NULL);
|
||||||
katze_widget_popup (widget, GTK_MENU (menu), NULL,
|
katze_widget_popup (widget, GTK_MENU (menu), NULL,
|
||||||
KATZE_MENU_POSITION_RIGHT);
|
KATZE_MENU_POSITION_RIGHT);
|
||||||
}
|
}
|
||||||
|
|
|
@ -732,13 +732,6 @@ void sokoke_widget_set_visible (GtkWidget* widget, gboolean visible)
|
||||||
gtk_widget_hide (widget);
|
gtk_widget_hide (widget);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
sokoke_container_show_children (GtkContainer* container)
|
|
||||||
{
|
|
||||||
/* Show every child but not the container itself */
|
|
||||||
gtk_container_foreach (container, (GtkCallback)(gtk_widget_show_all), NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
SOKOKE_DESKTOP_UNTESTED,
|
SOKOKE_DESKTOP_UNTESTED,
|
||||||
|
|
|
@ -64,9 +64,6 @@ void
|
||||||
sokoke_widget_set_visible (GtkWidget* widget,
|
sokoke_widget_set_visible (GtkWidget* widget,
|
||||||
gboolean visible);
|
gboolean visible);
|
||||||
|
|
||||||
void
|
|
||||||
sokoke_container_show_children (GtkContainer* container);
|
|
||||||
|
|
||||||
GtkWidget*
|
GtkWidget*
|
||||||
sokoke_xfce_header_new (const gchar* icon,
|
sokoke_xfce_header_new (const gchar* icon,
|
||||||
const gchar* title);
|
const gchar* title);
|
||||||
|
|
|
@ -322,7 +322,8 @@ midori_findbar_init (MidoriFindbar* findbar)
|
||||||
g_signal_connect (findbar->find_close, "clicked",
|
g_signal_connect (findbar->find_close, "clicked",
|
||||||
G_CALLBACK (midori_findbar_button_close_clicked_cb), findbar);
|
G_CALLBACK (midori_findbar_button_close_clicked_cb), findbar);
|
||||||
gtk_toolbar_insert (GTK_TOOLBAR (findbar), findbar->find_close, -1);
|
gtk_toolbar_insert (GTK_TOOLBAR (findbar), findbar->find_close, -1);
|
||||||
sokoke_container_show_children (GTK_CONTAINER (findbar));
|
gtk_container_foreach (GTK_CONTAINER (findbar),
|
||||||
|
(GtkCallback)(gtk_widget_show_all), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue