diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/bp/bloatpad.c | 10 | ||||
-rw-r--r-- | examples/plugman.c | 10 |
2 files changed, 4 insertions, 16 deletions
diff --git a/examples/bp/bloatpad.c b/examples/bp/bloatpad.c index 5a52f92d57..78ca433add 100644 --- a/examples/bp/bloatpad.c +++ b/examples/bp/bloatpad.c @@ -93,12 +93,6 @@ change_justify_state (GSimpleAction *action, g_simple_action_set_state (action, state); } -static GtkClipboard * -get_clipboard (GtkWidget *widget) -{ - return gtk_widget_get_old_clipboard (widget, gdk_atom_intern_static_string ("CLIPBOARD")); -} - static void window_copy (GSimpleAction *action, GVariant *parameter, @@ -108,7 +102,7 @@ window_copy (GSimpleAction *action, GtkTextView *text = g_object_get_data ((GObject*)window, "bloatpad-text"); gtk_text_buffer_copy_clipboard (gtk_text_view_get_buffer (text), - get_clipboard ((GtkWidget*) text)); + gtk_widget_get_clipboard (GTK_WIDGET (text))); } static void @@ -120,7 +114,7 @@ window_paste (GSimpleAction *action, GtkTextView *text = g_object_get_data ((GObject*)window, "bloatpad-text"); gtk_text_buffer_paste_clipboard (gtk_text_view_get_buffer (text), - get_clipboard ((GtkWidget*) text), + gtk_widget_get_clipboard (GTK_WIDGET (text)), NULL, TRUE); diff --git a/examples/plugman.c b/examples/plugman.c index 8605587779..67d7960c5d 100644 --- a/examples/plugman.c +++ b/examples/plugman.c @@ -38,12 +38,6 @@ change_fullscreen_state (GSimpleAction *action, g_simple_action_set_state (action, state); } -static GtkClipboard * -get_clipboard (GtkWidget *widget) -{ - return gtk_widget_get_old_clipboard (widget, gdk_atom_intern_static_string ("CLIPBOARD")); -} - static void window_copy (GSimpleAction *action, GVariant *parameter, @@ -53,7 +47,7 @@ window_copy (GSimpleAction *action, GtkTextView *text = g_object_get_data ((GObject*)window, "plugman-text"); gtk_text_buffer_copy_clipboard (gtk_text_view_get_buffer (text), - get_clipboard ((GtkWidget*) text)); + gtk_widget_get_clipboard (GTK_WIDGET (text))); } static void @@ -65,7 +59,7 @@ window_paste (GSimpleAction *action, GtkTextView *text = g_object_get_data ((GObject*)window, "plugman-text"); gtk_text_buffer_paste_clipboard (gtk_text_view_get_buffer (text), - get_clipboard ((GtkWidget*) text), + gtk_widget_get_clipboard (GTK_WIDGET (text)), NULL, TRUE); |