diff options
author | Xan Lopez <xan@src.gnome.org> | 2003-02-14 01:16:12 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2003-02-14 01:16:12 +0800 |
commit | 63bcb49e9b32d7b9be1e58ee99a9f2dd2b60b5f4 (patch) | |
tree | f60895c4c7c9df1033366caf631eb9cb6e0caaaa | |
parent | b4fa5f3fcf81f4cdfb570314069640611b618a8a (diff) | |
download | gsoc2013-epiphany-63bcb49e9b32d7b9be1e58ee99a9f2dd2b60b5f4.tar gsoc2013-epiphany-63bcb49e9b32d7b9be1e58ee99a9f2dd2b60b5f4.tar.gz gsoc2013-epiphany-63bcb49e9b32d7b9be1e58ee99a9f2dd2b60b5f4.tar.bz2 gsoc2013-epiphany-63bcb49e9b32d7b9be1e58ee99a9f2dd2b60b5f4.tar.lz gsoc2013-epiphany-63bcb49e9b32d7b9be1e58ee99a9f2dd2b60b5f4.tar.xz gsoc2013-epiphany-63bcb49e9b32d7b9be1e58ee99a9f2dd2b60b5f4.tar.zst gsoc2013-epiphany-63bcb49e9b32d7b9be1e58ee99a9f2dd2b60b5f4.zip |
Make "Go to" button insensitive when no bookmark is selected.
Make "Go to" button insensitive when no bookmark is selected.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | src/bookmarks/ephy-bookmarks-editor.c | 11 |
2 files changed, 18 insertions, 1 deletions
@@ -1,3 +1,11 @@ +2003-02-13 Xan Lopez <xan@masilla.org> + + * src/bookmarks/ephy-bookmarks-editor.c: + (ephy_bookmarks_editor_node_selected_cb), + (keyword_node_selected_cb), (ephy_bookmarks_editor_construct): + + Make "Go to" button insensitive when no bookmark is selected. + 2003-02-12 James Willcox <jwillcox@gnome.org> * src/bookmarks/ephy-bookmark-action.c: (entry_activated_cb): diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c index 826e245af..9de611d7b 100644 --- a/src/bookmarks/ephy-bookmarks-editor.c +++ b/src/bookmarks/ephy-bookmarks-editor.c @@ -57,6 +57,7 @@ struct EphyBookmarksEditorPrivate GtkWidget *location_entry; GtkWidget *keywords_entry; GtkWidget *search_entry; + GtkWidget *go_button; }; enum @@ -212,6 +213,8 @@ ephy_bookmarks_editor_node_selected_cb (GtkWidget *view, gtk_widget_set_sensitive (GTK_WIDGET (editor->priv->title_entry), TRUE); gtk_widget_set_sensitive (GTK_WIDGET (editor->priv->keywords_entry), TRUE); gtk_widget_set_sensitive (GTK_WIDGET (editor->priv->location_entry), TRUE); + /* Activate the Go button */ + gtk_widget_set_sensitive (GTK_WIDGET (editor->priv->go_button), TRUE); } else { @@ -438,6 +441,9 @@ keyword_node_selected_cb (EphyNodeView *view, else { bookmarks_filter (editor, node); + /* Desactivate the Go button */ + gtk_widget_set_sensitive (GTK_WIDGET (editor->priv->go_button), + FALSE); } } @@ -573,9 +579,12 @@ ephy_bookmarks_editor_construct (EphyBookmarksEditor *editor) build_editing_table (editor), FALSE, FALSE, 0); - gtk_dialog_add_button (GTK_DIALOG (editor), + editor->priv->go_button = gtk_dialog_add_button (GTK_DIALOG (editor), GTK_STOCK_JUMP_TO, RESPONSE_GO); + /* The Go button is insensitive by default */ + gtk_widget_set_sensitive (GTK_WIDGET (editor->priv->go_button), FALSE); + gtk_dialog_add_button (GTK_DIALOG (editor), GTK_STOCK_REMOVE, RESPONSE_REMOVE); |