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 | |
parent | 8b66172512d6bfbdbb783613ed9b8e6cc057e86a (diff) | |
download | gsoc2013-epiphany-476c242753cd43a612cd9eea3166c77d822f7c80.tar.gz 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)
-rw-r--r-- | ChangeLog | 13 | ||||
-rw-r--r-- | lib/widgets/ephy-location-entry.c | 3 | ||||
-rwxr-xr-x | src/pdm-dialog.c | 20 |
3 files changed, 17 insertions, 19 deletions
@@ -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 * |