GtkWidget* menu_tools;
GtkWidget* throbber;
GtkWidget* navigationbar;
- GtkWidget* button_fullscreen;
GtkWidget* bookmarkbar;
GtkWidget* panel;
GtkAction* action = gtk_widget_get_action (GTK_WIDGET (children->data));
/* If a widget has no action that is actually a bug, so warn about it */
g_warn_if_fail (action != NULL);
- if (action && strcmp (gtk_action_get_name (action), "Fullscreen"))
+ if (action)
{
g_string_append (toolbar_items, gtk_action_get_name (action));
g_string_append (toolbar_items, ",");
{
GtkAction* widget_action = gtk_widget_get_action (widget);
const gchar* actions[] = { "TabNew", "Open", "SaveAs", "Print", "Find",
- "Preferences", "Window", "Bookmarks", "RecentlyVisited", "AddSpeedDial",
+ "Fullscreen", "Preferences", "Window", "Bookmarks", "RecentlyVisited", "AddSpeedDial",
"ReloadStop", "ZoomIn", "Separator", "ZoomOut", "Back", "Forward",
"Homepage", "Panel", "Trash", "Search" };
GtkWidget* submenu;
if (event->new_window_state & GDK_WINDOW_STATE_FULLSCREEN)
{
gtk_widget_hide (browser->menubar);
- g_object_set (browser->button_fullscreen,
- "stock-id", GTK_STOCK_LEAVE_FULLSCREEN, NULL);
- gtk_widget_show (browser->button_fullscreen);
}
else
{
if (katze_object_get_boolean (browser->settings, "show-menubar"))
gtk_widget_show (browser->menubar);
- gtk_widget_hide (browser->button_fullscreen);
- g_object_set (browser->button_fullscreen,
- "stock-id", GTK_STOCK_FULLSCREEN, NULL);
}
}
}
name++;
}
g_strfreev (names);
-
- action = gtk_action_group_get_action (browser->action_group, "Fullscreen");
- browser->button_fullscreen = gtk_action_create_tool_item (action);
- gtk_widget_hide (browser->button_fullscreen);
- g_signal_connect (browser->button_fullscreen, "clicked",
- G_CALLBACK (_action_fullscreen_activate), browser);
- gtk_toolbar_insert (GTK_TOOLBAR (browser->navigationbar),
- GTK_TOOL_ITEM (browser->button_fullscreen), -1);
}
static void