aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-12-16 17:23:59 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-12-16 17:23:59 +0800
commit0b533b662feccebd0b71bb5b59e993480f44c127 (patch)
treea28fee7adb1fc6e8da6a37db74a9e02e3681e412 /src
parent25800ed6d843f4bb342ee7eb94f13834820034c3 (diff)
downloadgsoc2013-empathy-0b533b662feccebd0b71bb5b59e993480f44c127.tar
gsoc2013-empathy-0b533b662feccebd0b71bb5b59e993480f44c127.tar.gz
gsoc2013-empathy-0b533b662feccebd0b71bb5b59e993480f44c127.tar.bz2
gsoc2013-empathy-0b533b662feccebd0b71bb5b59e993480f44c127.tar.lz
gsoc2013-empathy-0b533b662feccebd0b71bb5b59e993480f44c127.tar.xz
gsoc2013-empathy-0b533b662feccebd0b71bb5b59e993480f44c127.tar.zst
gsoc2013-empathy-0b533b662feccebd0b71bb5b59e993480f44c127.zip
Replace _get_selection_bounds by _get_has_selection
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@1984 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'src')
-rw-r--r--src/empathy-chat-window.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 5a8cb1048..ae63b894e 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -656,14 +656,13 @@ chat_window_edit_activate_cb (GtkWidget *menuitem,
}
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (priv->current_chat->input_text_view));
- if (gtk_text_buffer_get_selection_bounds (buffer, NULL, NULL)) {
+ if (gtk_text_buffer_get_has_selection (buffer)) {
gtk_widget_set_sensitive (priv->menu_edit_copy, TRUE);
gtk_widget_set_sensitive (priv->menu_edit_cut, TRUE);
} else {
gboolean selection;
- selection = empathy_chat_view_get_selection_bounds (priv->current_chat->view,
- NULL, NULL);
+ selection = empathy_chat_view_get_has_selection (priv->current_chat->view);
gtk_widget_set_sensitive (priv->menu_edit_cut, FALSE);
gtk_widget_set_sensitive (priv->menu_edit_copy, selection);