From 59bc4c9a45ccb89fa44f5e6311e3668285a63d68 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Thu, 7 Jul 2005 17:47:59 +0000 Subject: [PATCH] HIGification of toolbar editor dialogue. 2005-07-07 Christian Persch * shell/ev-window.c: (ev_window_cmd_edit_toolbar): HIGification of toolbar editor dialogue. --- ChangeLog | 6 ++++++ shell/ev-window.c | 17 +++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 75627886..3b7739e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-07-07 Christian Persch + + * shell/ev-window.c: (ev_window_cmd_edit_toolbar): + + HIGification of toolbar editor dialogue. + 2005-07-07 Marco Pesenti Gritti * configure.ac: diff --git a/shell/ev-window.c b/shell/ev-window.c index 6dcdc0b7..b18f9850 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -1971,13 +1971,15 @@ ev_window_cmd_edit_toolbar (GtkAction *action, EvWindow *ev_window) { GtkWidget *dialog; GtkWidget *editor; - g_return_if_fail (EV_IS_WINDOW (ev_window)); - dialog = gtk_dialog_new_with_buttons (_("Toolbar editor"), GTK_WINDOW (ev_window), + dialog = gtk_dialog_new_with_buttons (_("Toolbar editor"), + GTK_WINDOW (ev_window), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_STOCK_CLOSE, - GTK_RESPONSE_CANCEL, + GTK_RESPONSE_CLOSE, NULL); + gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (dialog)), 5); + gtk_box_set_spacing (GTK_BOX (GTK_DIALOG (dialog)->vbox), 18); gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE); gtk_window_set_default_size (GTK_WINDOW (dialog), 500, 400); @@ -1985,19 +1987,18 @@ ev_window_cmd_edit_toolbar (GtkAction *action, EvWindow *ev_window) ev_window->priv->toolbar_model); gtk_container_set_border_width (GTK_CONTAINER (editor), 5); gtk_box_set_spacing (GTK_BOX (EGG_TOOLBAR_EDITOR (editor)), 5); - + gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), editor); egg_toolbar_editor_load_actions (EGG_TOOLBAR_EDITOR (editor), - DATADIR"/evince-toolbar.xml"); + DATADIR "/evince-toolbar.xml"); egg_editable_toolbar_set_edit_mode (EGG_EDITABLE_TOOLBAR (ev_window->priv->toolbar), TRUE); - gtk_widget_show_all (dialog); - - g_signal_connect (G_OBJECT (dialog), "response", + g_signal_connect (dialog, "response", G_CALLBACK (ev_window_cmd_edit_toolbar_cb), ev_window); + gtk_widget_show_all (dialog); } static void -- 2.43.5