aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--src/bookmarks/ephy-bookmarks-editor.c11
2 files changed, 18 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 3cec2fc54..6a7144723 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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);