diff options
Diffstat (limited to 'widgets/text/e-text.c')
-rw-r--r-- | widgets/text/e-text.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c index be81a88232..42e981cccd 100644 --- a/widgets/text/e-text.c +++ b/widgets/text/e-text.c @@ -2505,12 +2505,8 @@ e_text_copy_clipboard (EText *text) selection_end_pos - selection_start_pos); gtk_clipboard_set_text ( -#if GTK_CHECK_VERSION (2, 2, 0) gtk_widget_get_clipboard (GTK_WIDGET (GNOME_CANVAS_ITEM (text)->canvas), GDK_SELECTION_CLIPBOARD), -#else - gtk_clipboard_get (GDK_SELECTION_CLIPBOARD), -#endif str, -1); g_free (str); } @@ -2605,11 +2601,7 @@ e_text_update_primary_selection (EText *text) }; GtkClipboard *clipboard; -#if GTK_CHECK_VERSION (2, 2, 0) clipboard = gtk_widget_get_clipboard (GTK_WIDGET (GNOME_CANVAS_ITEM (text)->canvas), GDK_SELECTION_PRIMARY); -#else - clipboard = gtk_clipboard_get (GDK_SELECTION_PRIMARY); -#endif if (text->selection_start != text->selection_end) { if (!gtk_clipboard_set_with_owner (clipboard, targets, G_N_ELEMENTS (targets), @@ -2644,13 +2636,9 @@ e_text_paste (EText *text, GdkAtom selection) { g_object_ref (text); gtk_clipboard_request_text ( -#if GTK_CHECK_VERSION (2, 2, 0) gtk_widget_get_clipboard (GTK_WIDGET (GNOME_CANVAS_ITEM (text)->canvas), selection), -#else - gtk_clipboard_get (selection), -#endif paste_received, text); } @@ -2779,13 +2767,9 @@ e_text_do_popup (EText *text, GdkEventButton *button, int position) closure->position = position; gtk_clipboard_request_contents ( -#if GTK_CHECK_VERSION (2, 2, 0) gtk_widget_get_clipboard (GTK_WIDGET (GNOME_CANVAS_ITEM (text)->canvas), GDK_SELECTION_CLIPBOARD), -#else - gtk_clipboard_get (GDK_SELECTION_CLIPBOARD), -#endif gdk_atom_intern ("TARGETS", FALSE), popup_targets_received, closure); |