Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-07-07 17:47:59 (GMT)
committer Christian Persch <chpe@src.gnome.org>2005-07-07 17:47:59 (GMT)
commit59bc4c9a45ccb89fa44f5e6311e3668285a63d68 (patch)
tree4f4e8fc110bd91f05990f005869ebd1fa306f6c7 /shell
parent28df8004a43a579e93ea905a2426fe42e1e6dfa7 (diff)
HIGification of toolbar editor dialogue.
2005-07-07 Christian Persch <chpe@cvs.gnome.org> * shell/ev-window.c: (ev_window_cmd_edit_toolbar): HIGification of toolbar editor dialogue.
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-window.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 6dcdc0b..b18f985 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