diff options
author | Bastien Nocera <hadess@hadess.net> | 2007-07-05 23:08:20 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@src.gnome.org> | 2007-07-05 23:08:20 +0000 |
commit | c350d9302fd8315cdc89679da49e9b0711c3945b (patch) | |
tree | 0eb240d5bf2b5bb12e586017cc0c93df278e6094 /src/totem-sidebar.c | |
parent | af1add6c6dfc9de042fc64e888002c4bdcb738a0 (diff) | |
download | totem-c350d9302fd8315cdc89679da49e9b0711c3945b.tar.gz |
Patch from Philip Withnall <pwithnall@svn.gnome.org> to use GtkBuilder
2007-07-05 Bastien Nocera <hadess@hadess.net>
* Load of files: Patch from Philip Withnall <pwithnall@svn.gnome.org>
to use GtkBuilder instead of libglade (Closes: #450635)
svn path=/trunk/; revision=4427
Diffstat (limited to 'src/totem-sidebar.c')
-rw-r--r-- | src/totem-sidebar.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/totem-sidebar.c b/src/totem-sidebar.c index 65368615e..81c24bf3a 100644 --- a/src/totem-sidebar.c +++ b/src/totem-sidebar.c @@ -41,8 +41,8 @@ cb_resize (Totem * totem) h = totem->win->allocation.height; g_value_init (&gvalue_size, G_TYPE_INT); - pane = glade_xml_get_widget (totem->xml, "tmw_main_pane"); - gtk_widget_style_get_property(pane, "handle-size", &gvalue_size); + pane = GTK_WIDGET (gtk_builder_get_object (totem->xml, "tmw_main_pane")); + gtk_widget_style_get_property (pane, "handle-size", &gvalue_size); handle_size = g_value_get_int (&gvalue_size); if (totem->sidebar_shown) { @@ -96,10 +96,10 @@ totem_sidebar_is_visible (Totem *totem) void totem_sidebar_setup (Totem *totem, gboolean visible, const char *page_id) { - GtkWidget *item; + GtkPaned *item; GtkAction *action; - item = glade_xml_get_widget (totem->xml, "tmw_main_pane"); + item = GTK_PANED (gtk_builder_get_object (totem->xml, "tmw_main_pane")); totem->sidebar = ev_sidebar_new (); ev_sidebar_add_page (EV_SIDEBAR (totem->sidebar), "playlist", _("Playlist"), @@ -111,7 +111,7 @@ totem_sidebar_setup (Totem *totem, gboolean visible, const char *page_id) ev_sidebar_set_current_page (EV_SIDEBAR (totem->sidebar), "playlist"); } - gtk_paned_pack2 (GTK_PANED (item), totem->sidebar, FALSE, FALSE); + gtk_paned_pack2 (item, totem->sidebar, FALSE, FALSE); totem->sidebar_shown = visible; |