aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-commands.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-05-06 02:05:16 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-05-06 02:05:16 +0800
commit4d31b592f20e788c247b8f6ed266c28daf0d32d3 (patch)
treee152b3fec098cd803f8a6bdea8fbb407286d6ce0 /src/window-commands.c
parenta9ad6d75f510335d318eef6082d6b5b18de48971 (diff)
downloadgsoc2013-epiphany-4d31b592f20e788c247b8f6ed266c28daf0d32d3.tar
gsoc2013-epiphany-4d31b592f20e788c247b8f6ed266c28daf0d32d3.tar.gz
gsoc2013-epiphany-4d31b592f20e788c247b8f6ed266c28daf0d32d3.tar.bz2
gsoc2013-epiphany-4d31b592f20e788c247b8f6ed266c28daf0d32d3.tar.lz
gsoc2013-epiphany-4d31b592f20e788c247b8f6ed266c28daf0d32d3.tar.xz
gsoc2013-epiphany-4d31b592f20e788c247b8f6ed266c28daf0d32d3.tar.zst
gsoc2013-epiphany-4d31b592f20e788c247b8f6ed266c28daf0d32d3.zip
Better sensitivity updates for history
2003-05-05 Marco Pesenti Gritti <marco@it.gnome.org> * src/bookmarks/ephy-bookmarks-editor.c: (build_search_box): * src/ephy-history-window.c: (confirmation_dialog_response_cb), (confirmation_dialog_construct), (cmd_clear), (cmd_bookmark_page), (ephy_history_window_class_init), (entry_selection_changed_cb), (add_entry_monitor), (view_focus_cb), (add_focus_monitor), (remove_focus_monitor), (ephy_history_window_show_popup_cb), (build_search_box), (view_selection_changed_cb), (ephy_history_window_construct), (ephy_history_window_dispose): * src/window-commands.c: (toolbar_editor_destroy_cb), (toolbar_editor_response_cb), (window_cmd_edit_toolbar), (window_cmd_help_contents): Better sensitivity updates for history
Diffstat (limited to 'src/window-commands.c')
-rw-r--r--src/window-commands.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index 22e1ef568..be6bbcca9 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -653,18 +653,13 @@ static void
toolbar_editor_destroy_cb (GtkWidget *tbe,
Toolbar *t)
{
- GtkWidget *window;
-
- window = gtk_widget_get_toplevel (GTK_WIDGET (t));
-
egg_editable_toolbar_set_edit_mode (EGG_EDITABLE_TOOLBAR (t), FALSE);
- ephy_window_update_all_controls (EPHY_WINDOW (window));
}
static void
-toolbar_editor_help_cb (GtkDialog *dialog,
- gint response_id,
- gpointer data)
+toolbar_editor_response_cb (GtkDialog *dialog,
+ gint response_id,
+ gpointer data)
{
EphyToolbarsModel *model;
int n;
@@ -673,6 +668,7 @@ toolbar_editor_help_cb (GtkDialog *dialog,
{
case GTK_RESPONSE_CLOSE:
gtk_widget_destroy (GTK_WIDGET (dialog));
+ break;
case RESPONSE_ADD_TOOLBAR:
model = ephy_shell_get_toolbars_model (ephy_shell);
n = egg_toolbars_model_n_toolbars (EGG_TOOLBARS_MODEL (model));
@@ -721,7 +717,7 @@ window_cmd_edit_toolbar (EggAction *action,
gtk_dialog_add_button (GTK_DIALOG (dialog),
GTK_STOCK_HELP, GTK_RESPONSE_HELP);
g_signal_connect (G_OBJECT (dialog), "response",
- G_CALLBACK (toolbar_editor_help_cb), NULL);
+ G_CALLBACK (toolbar_editor_response_cb), NULL);
ephy_state_add_window (dialog,
"toolbar_editor",
500, 330);
@@ -739,7 +735,7 @@ window_cmd_help_contents (EggAction *action,
err = NULL;
gnome_help_display ("epiphany", NULL, &err);
- if (err != NULL)
+ if (err != NULL)
{
GtkWidget *dialog;
dialog = gtk_message_dialog_new (GTK_WINDOW (window),
@@ -754,7 +750,7 @@ window_cmd_help_contents (EggAction *action,
gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
gtk_widget_show (dialog);
- g_error_free (err);
+ g_error_free (err);
}
}