diff options
author | Bastien Nocera <hadess@hadess.net> | 2014-01-22 19:09:04 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2014-01-22 19:09:04 +0100 |
commit | 7fc7ab4d81808b3a5f6adf95f3f32127d86f8e18 (patch) | |
tree | 5737163a9bdc49ffe8bf88509d2bb9285c353708 /src | |
parent | a8bb4abeda447d4e0ed597322b115d72bae47191 (diff) | |
download | totem-7fc7ab4d81808b3a5f6adf95f3f32127d86f8e18.tar.gz |
main: Use a header bar in the preferences
Diffstat (limited to 'src')
-rw-r--r-- | src/totem-preferences.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/src/totem-preferences.c b/src/totem-preferences.c index d6d45b897..a608fd820 100644 --- a/src/totem-preferences.c +++ b/src/totem-preferences.c @@ -320,12 +320,11 @@ plugin_button_clicked_cb (GtkButton *button, void totem_setup_preferences (Totem *totem) { - GtkWidget *menu, *content_area, *bvw; + GtkWidget *menu, *bvw; gboolean show_visuals, lock_screensaver_on_audio; guint i, hidden; char *visual, *font, *encoding; GList *list, *l; - GtkWidget *widget; GObject *item; static struct { @@ -345,23 +344,7 @@ totem_setup_preferences (Totem *totem) bvw = totem_object_get_video_widget (totem); - /* Work-around builder dialogue not parenting properly for - * On top windows */ - widget = PWID ("tpw_notebook"); - totem->prefs = gtk_dialog_new_with_buttons (_("Preferences"), - GTK_WINDOW (totem->win), - GTK_DIALOG_DESTROY_WITH_PARENT, - _("_Close"), - GTK_RESPONSE_ACCEPT, - NULL); - gtk_container_set_border_width (GTK_CONTAINER (totem->prefs), 5); - content_area = gtk_dialog_get_content_area (GTK_DIALOG (totem->prefs)); - gtk_box_set_spacing (GTK_BOX (content_area), 2); - gtk_widget_reparent (widget, content_area); - gtk_widget_show_all (content_area); - widget = PWID ("totem_preferences_window"); - gtk_widget_destroy (widget); - + totem->prefs = PWID ("totem_preferences_window"); g_signal_connect (G_OBJECT (totem->prefs), "response", G_CALLBACK (gtk_widget_hide), NULL); g_signal_connect (G_OBJECT (totem->prefs), "delete-event", |