diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-12-16 09:23:59 +0000 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-12-16 09:23:59 +0000 |
commit | 6bc52fff8a6d0b0a2f40fb707d1e423ce64249a3 (patch) | |
tree | a28fee7adb1fc6e8da6a37db74a9e02e3681e412 /libempathy-gtk/empathy-chat.c | |
parent | e8032530b2520ad3c700c404f2822bd406100552 (diff) |
Replace _get_selection_bounds by _get_has_selection
svn path=/trunk/; revision=1984
Diffstat (limited to 'libempathy-gtk/empathy-chat.c')
-rw-r--r-- | libempathy-gtk/empathy-chat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libempathy-gtk/empathy-chat.c b/libempathy-gtk/empathy-chat.c index 6d2cb0118..ec6a46664 100644 --- a/libempathy-gtk/empathy-chat.c +++ b/libempathy-gtk/empathy-chat.c @@ -1740,7 +1740,7 @@ empathy_chat_cut (EmpathyChat *chat) g_return_if_fail (EMPATHY_IS_CHAT (chat)); buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (chat->input_text_view)); - if (gtk_text_buffer_get_selection_bounds (buffer, NULL, NULL)) { + if (gtk_text_buffer_get_has_selection (buffer)) { GtkClipboard *clipboard; clipboard = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD); @@ -1756,13 +1756,13 @@ empathy_chat_copy (EmpathyChat *chat) g_return_if_fail (EMPATHY_IS_CHAT (chat)); - if (empathy_chat_view_get_selection_bounds (chat->view, NULL, NULL)) { + if (empathy_chat_view_get_has_selection (chat->view)) { empathy_chat_view_copy_clipboard (chat->view); return; } buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (chat->input_text_view)); - if (gtk_text_buffer_get_selection_bounds (buffer, NULL, NULL)) { + if (gtk_text_buffer_get_has_selection (buffer)) { GtkClipboard *clipboard; clipboard = gtk_clipboard_get (GDK_SELECTION_CLIPBOARD); |