aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2003-02-14 01:16:12 +0800
committerXan Lopez <xan@src.gnome.org>2003-02-14 01:16:12 +0800
commit63bcb49e9b32d7b9be1e58ee99a9f2dd2b60b5f4 (patch)
treef60895c4c7c9df1033366caf631eb9cb6e0caaaa /src
parentb4fa5f3fcf81f4cdfb570314069640611b618a8a (diff)
downloadgsoc2013-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.
Diffstat (limited to 'src')
-rw-r--r--src/bookmarks/ephy-bookmarks-editor.c11
1 files changed, 10 insertions, 1 deletions
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);