From 476c242753cd43a612cd9eea3166c77d822f7c80 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 20 Jun 2003 12:39:26 +0000 Subject: Ever put cursor at the end of the text when selecting autocompletion 2003-06-20 Marco Pesenti Gritti * 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) --- ChangeLog | 13 +++++++++++++ lib/widgets/ephy-location-entry.c | 3 ++- src/pdm-dialog.c | 20 ++------------------ 3 files changed, 17 insertions(+), 19 deletions(-) diff --git a/ChangeLog b/ChangeLog index 921b1eff7..17369ed4c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2003-06-20 Marco Pesenti Gritti + + * 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 * embed/mozilla/EphyWrapper.cpp: 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 * -- cgit v1.2.3