diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-07-13 13:20:26 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-07-13 13:20:26 +0000 |
commit | 9c918930289b18dbfd4bb44081891d5780105bfd (patch) | |
tree | 372de7dbf3d8393550e46ab1f8de6e9a97cf2140 /gtk | |
parent | 1832155b7c64e0a977541930fc78f47bbd675ab2 (diff) | |
download | netsurf-9c918930289b18dbfd4bb44081891d5780105bfd.tar.gz netsurf-9c918930289b18dbfd4bb44081891d5780105bfd.tar.bz2 |
Fix selection for non-gui browser windows (iframes).
Selection no longer uses current_redraw_browser.
Fix long-standing selection bugs on platforms that use action on release behaviour.
svn path=/trunk/netsurf/; revision=12598
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/scaffolding.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/scaffolding.c b/gtk/scaffolding.c index 269aa27ac..81a96a70a 100644 --- a/gtk/scaffolding.c +++ b/gtk/scaffolding.c @@ -381,7 +381,7 @@ static guint nsgtk_scaffolding_update_edit_actions_sensitivity( } else { struct browser_window *bw = gui_window_get_browser_window(g->top_level); - has_selection = bw->sel->defined; + has_selection = browser_window_has_selection(bw); g->buttons[COPY_BUTTON]->sensitivity = has_selection; g->buttons[CUT_BUTTON]->sensitivity = (has_selection && @@ -959,7 +959,7 @@ MULTIHANDLER(copy) if (GTK_IS_EDITABLE (focused)) gtk_editable_copy_clipboard(GTK_EDITABLE(g->url_bar)); else - gui_copy_to_clipboard(bw->sel); + gui_copy_to_clipboard(browser_window_get_selection(bw)); return TRUE; } @@ -999,7 +999,7 @@ MULTIHANDLER(selectall) gtk_editable_select_region(GTK_EDITABLE(g->url_bar), 0, -1); } else { LOG(("Selecting all document text")); - selection_select_all(bw->sel); + selection_select_all(browser_window_get_selection(bw)); } return TRUE; |