aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-commands.c
diff options
context:
space:
mode:
authorDavid Bordoley <bordoley@msu.edu>2003-04-27 16:35:50 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-04-27 16:35:50 +0800
commit34c164d7175456a25362d00981d1cc38a339baf2 (patch)
tree1e2bf50d082477e4b60d859eeffb52efb9e2eb30 /src/window-commands.c
parent9605e12bd4a9238f989e6f1c662781b848555cac (diff)
downloadgsoc2013-epiphany-34c164d7175456a25362d00981d1cc38a339baf2.tar
gsoc2013-epiphany-34c164d7175456a25362d00981d1cc38a339baf2.tar.gz
gsoc2013-epiphany-34c164d7175456a25362d00981d1cc38a339baf2.tar.bz2
gsoc2013-epiphany-34c164d7175456a25362d00981d1cc38a339baf2.tar.lz
gsoc2013-epiphany-34c164d7175456a25362d00981d1cc38a339baf2.tar.xz
gsoc2013-epiphany-34c164d7175456a25362d00981d1cc38a339baf2.tar.zst
gsoc2013-epiphany-34c164d7175456a25362d00981d1cc38a339baf2.zip
Update.
2003-04-27 David Bordoley <bordoley@msu.edu> * lib/egg/egg-editable-toolbar.c: * lib/egg/egg-toolbar-editor.c: * lib/egg/egg-toolbar-editor.h: Update. * src/window-commands.c: (toolbar_editor_help_cb), (window_cmd_edit_toolbar): Add and help button.
Diffstat (limited to 'src/window-commands.c')
-rw-r--r--src/window-commands.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index 04eb2bebb..b6cf9e90e 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -651,6 +651,19 @@ toolbar_editor_destroy_cb (GtkWidget *tbe,
egg_editable_toolbar_set_edit_mode (EGG_EDITABLE_TOOLBAR (t), FALSE);
}
+static void
+toolbar_editor_help_cb (GtkDialog *dialog,
+ gint response_id,
+ EggToolbarEditor *editor)
+{
+ switch (response_id)
+ {
+ case GTK_RESPONSE_HELP:
+ /* FIXME: Connect toolbar editor help */
+ break;
+ }
+}
+
void
window_cmd_edit_toolbar (EggAction *action,
EphyWindow *window)
@@ -663,14 +676,20 @@ window_cmd_edit_toolbar (EggAction *action,
t = ephy_window_get_toolbar (window);
editor = egg_toolbar_editor_new
- (EGG_MENU_MERGE (window->ui_merge),
+ (GTK_WINDOW (window),
+ EGG_MENU_MERGE (window->ui_merge),
EGG_TOOLBARS_MODEL (model));
+ gtk_dialog_add_button (GTK_DIALOG (editor),
+ GTK_STOCK_HELP, GTK_RESPONSE_HELP);
ephy_state_add_window (editor,
"toolbar_editor",
500, 330);
g_signal_connect (editor, "destroy",
G_CALLBACK (toolbar_editor_destroy_cb),
t);
+ g_signal_connect (G_OBJECT (editor), "response",
+ G_CALLBACK (toolbar_editor_help_cb),
+ editor);
egg_toolbar_editor_load_actions (EGG_TOOLBAR_EDITOR (editor),
ephy_file ("epiphany-toolbar.xml"));
gtk_widget_show (editor);