diff options
author | raveit65 <[email protected]> | 2019-05-08 17:05:53 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-06-25 17:39:38 +0200 |
commit | a961194d95258624cec75edd4eea930d31fad2ea (patch) | |
tree | 09f9f34a77c44762d660e08ab9b42b79c92172fc /libcaja-private | |
parent | 61c6faf0f807730813275fa7b55b3937055da6e3 (diff) | |
download | caja-a961194d95258624cec75edd4eea930d31fad2ea.tar.bz2 caja-a961194d95258624cec75edd4eea930d31fad2ea.tar.xz |
caja-clipboard: suppress GtkAction warnings
Diffstat (limited to 'libcaja-private')
-rw-r--r-- | libcaja-private/caja-clipboard.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libcaja-private/caja-clipboard.c b/libcaja-private/caja-clipboard.c index bc876a28..76c929e2 100644 --- a/libcaja-private/caja-clipboard.c +++ b/libcaja-private/caja-clipboard.c @@ -147,6 +147,7 @@ received_clipboard_contents (GtkClipboard *clipboard, action_group = data; + G_GNUC_BEGIN_IGNORE_DEPRECATIONS action = gtk_action_group_get_action (action_group, "Paste"); if (action != NULL) @@ -154,6 +155,7 @@ received_clipboard_contents (GtkClipboard *clipboard, gtk_action_set_sensitive (action, gtk_selection_data_targets_include_text (selection_data)); } + G_GNUC_END_IGNORE_DEPRECATIONS g_object_unref (action_group); } @@ -174,9 +176,11 @@ set_paste_sensitive_if_clipboard_contains_data (GtkActionGroup *action_group) GtkAction *action; /* If selection notification isn't supported, always activate Paste */ + G_GNUC_BEGIN_IGNORE_DEPRECATIONS action = gtk_action_group_get_action (action_group, "Paste"); gtk_action_set_sensitive (action, TRUE); + G_GNUC_END_IGNORE_DEPRECATIONS } } @@ -185,12 +189,14 @@ set_clipboard_menu_items_sensitive (GtkActionGroup *action_group) { GtkAction *action; + G_GNUC_BEGIN_IGNORE_DEPRECATIONS action = gtk_action_group_get_action (action_group, "Cut"); gtk_action_set_sensitive (action, TRUE); action = gtk_action_group_get_action (action_group, "Copy"); gtk_action_set_sensitive (action, TRUE); + G_GNUC_END_IGNORE_DEPRECATIONS } static void @@ -198,12 +204,14 @@ set_clipboard_menu_items_insensitive (GtkActionGroup *action_group) { GtkAction *action; + G_GNUC_BEGIN_IGNORE_DEPRECATIONS action = gtk_action_group_get_action (action_group, "Cut"); gtk_action_set_sensitive (action, FALSE); action = gtk_action_group_get_action (action_group, "Copy"); gtk_action_set_sensitive (action, FALSE); + G_GNUC_END_IGNORE_DEPRECATIONS } static gboolean @@ -485,11 +493,13 @@ initialize_clipboard_component_with_callback_data (GtkEditable *target, GtkActionGroup *action_group; TargetCallbackData *target_data; + G_GNUC_BEGIN_IGNORE_DEPRECATIONS action_group = gtk_action_group_new ("ClipboardActions"); gtk_action_group_set_translation_domain (action_group, GETTEXT_PACKAGE); gtk_action_group_add_actions (action_group, clipboard_entries, G_N_ELEMENTS (clipboard_entries), target); + G_GNUC_END_IGNORE_DEPRECATIONS /* Do the actual connection of the UI to the container at * focus time, and disconnect at both focus and destroy |