diff options
author | Marco Pesenti Gritti <marco@it.gnome.org> | 2003-06-20 20:39:26 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-06-20 20:39:26 +0800 |
commit | 476c242753cd43a612cd9eea3166c77d822f7c80 (patch) | |
tree | 81e71105a66296918da1970c0ca7b7cfb57ce897 /src | |
parent | 8b66172512d6bfbdbb783613ed9b8e6cc057e86a (diff) | |
download | gsoc2013-epiphany-476c242753cd43a612cd9eea3166c77d822f7c80.tar gsoc2013-epiphany-476c242753cd43a612cd9eea3166c77d822f7c80.tar.gz gsoc2013-epiphany-476c242753cd43a612cd9eea3166c77d822f7c80.tar.bz2 gsoc2013-epiphany-476c242753cd43a612cd9eea3166c77d822f7c80.tar.lz gsoc2013-epiphany-476c242753cd43a612cd9eea3166c77d822f7c80.tar.xz gsoc2013-epiphany-476c242753cd43a612cd9eea3166c77d822f7c80.tar.zst gsoc2013-epiphany-476c242753cd43a612cd9eea3166c77d822f7c80.zip |
Ever put cursor at the end of the text when selecting autocompletion
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)
Diffstat (limited to 'src')
-rwxr-xr-x | src/pdm-dialog.c | 20 |
1 files changed, 2 insertions, 18 deletions
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 * |