summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2011-01-21 11:13:14 +0000
committerBastien Nocera <hadess@hadess.net>2011-01-21 11:14:04 +0000
commit821c1c3aac63838163de9fc13f7c51376e17e63a (patch)
treeb8be8960ff824c0eac2f60aab24262f21aa31c3d
parent4708e7644515882fa109ca0e2dcfd622b6f11b01 (diff)
downloadtotem-821c1c3aac63838163de9fc13f7c51376e17e63a.tar.gz
main: Fix plugins preferences packing
gtk_container_add() changed semantics, so use gtk_box_pack_start() instead.
-rw-r--r--src/totem-menu.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/totem-menu.c b/src/totem-menu.c
index f31a101b9..6e76184ca 100644
--- a/src/totem-menu.c
+++ b/src/totem-menu.c
@@ -1206,8 +1206,7 @@ totem_plugins_response_cb (GtkDialog *dialog,
int response_id,
gpointer data)
{
- if (response_id == GTK_RESPONSE_CLOSE)
- gtk_widget_hide (GTK_WIDGET (dialog));
+ gtk_widget_hide (GTK_WIDGET (dialog));
}
@@ -1237,8 +1236,8 @@ plugins_action_callback (GtkAction *action, Totem *totem)
manager = peas_gtk_plugin_manager_new ();
gtk_widget_show_all (GTK_WIDGET (manager));
- gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (totem->plugins))),
- manager);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (totem->plugins))),
+ manager, TRUE, TRUE, 0);
}
gtk_window_present (GTK_WINDOW (totem->plugins));