diff options
author | David Bordoley <bordoley@msu.edu> | 2003-04-27 16:35:50 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-04-27 16:35:50 +0800 |
commit | 34c164d7175456a25362d00981d1cc38a339baf2 (patch) | |
tree | 1e2bf50d082477e4b60d859eeffb52efb9e2eb30 /src | |
parent | 9605e12bd4a9238f989e6f1c662781b848555cac (diff) | |
download | gsoc2013-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')
-rw-r--r-- | src/window-commands.c | 21 |
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); |