aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog13
-rw-r--r--lib/widgets/ephy-location-entry.c3
-rwxr-xr-xsrc/pdm-dialog.c20
3 files changed, 17 insertions, 19 deletions
diff --git a/ChangeLog b/ChangeLog
index 921b1eff7..17369ed4c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,18 @@
2003-06-20 Marco Pesenti Gritti <marco@it.gnome.org>
+ * lib/widgets/ephy-location-entry.c:
+ (ephy_location_entry_autocompletion_window_url_selected_cb):
+
+ Ever put cursor at the end of the text when selecting autocompletion
+ items.
+
+ * src/pdm-dialog.c: (cookies_treeview_selection_changed_cb),
+ (action_treeview_selection_changed_cb):
+
+ Do not allow to open properties of multiple cookies. (insensitive)
+
+2003-06-20 Marco Pesenti Gritti <marco@it.gnome.org>
+
* embed/mozilla/EphyWrapper.cpp:
* lib/widgets/ephy-location-entry.c:
(ephy_location_entry_class_init), (location_focus_out_cb),
diff --git a/lib/widgets/ephy-location-entry.c b/lib/widgets/ephy-location-entry.c
index 9cd984b80..1333bc5dd 100644
--- a/lib/widgets/ephy-location-entry.c
+++ b/lib/widgets/ephy-location-entry.c
@@ -525,8 +525,9 @@ ephy_location_entry_autocompletion_window_url_selected_cb (EphyAutocompletionWin
else
{
ephy_location_entry_set_location (w, w->priv->before_completion);
- gtk_editable_set_position (GTK_EDITABLE (w->priv->entry), -1);
}
+
+ gtk_editable_set_position (GTK_EDITABLE (w->priv->entry), -1);
}
void
diff --git a/src/pdm-dialog.c b/src/pdm-dialog.c
index 20c3b5a6e..cb6fad05c 100755
--- a/src/pdm-dialog.c
+++ b/src/pdm-dialog.c
@@ -191,21 +191,13 @@ cookies_treeview_selection_changed_cb (GtkTreeSelection *selection,
PdmDialog *dialog)
{
GtkWidget *widget;
- GList *l;
EphyDialog *d = EPHY_DIALOG(dialog);
gboolean has_selection;
- GtkTreeModel *model;
-
- l = gtk_tree_selection_get_selected_rows
- (selection, &model);
- has_selection = l != NULL;
+ has_selection = gtk_tree_selection_count_selected_rows (selection) == 1;
widget = ephy_dialog_get_control (d, PROP_COOKIES_PROPERTIES);
gtk_widget_set_sensitive (widget, has_selection);
-
- g_list_foreach (l, (GFunc)gtk_tree_path_free, NULL);
- g_list_free (l);
}
static void
@@ -213,21 +205,13 @@ action_treeview_selection_changed_cb (GtkTreeSelection *selection,
PdmActionInfo *action)
{
GtkWidget *widget;
- GList *l;
EphyDialog *d = EPHY_DIALOG(action->dialog);
gboolean has_selection;
- GtkTreeModel *model;
-
- l = gtk_tree_selection_get_selected_rows
- (selection, &model);
- has_selection = l != NULL;
+ has_selection = gtk_tree_selection_count_selected_rows (selection) > 0;
widget = ephy_dialog_get_control (d, action->remove_id);
gtk_widget_set_sensitive (widget, has_selection);
-
- g_list_foreach (l, (GFunc)gtk_tree_path_free, NULL);
- g_list_free (l);
}
static GtkWidget *