summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2019-06-25 19:18:44 +0200
committerraveit65 <[email protected]>2022-07-23 16:06:05 +0200
commit343064289eabc3a2c901d674c7a5707bdd31da07 (patch)
tree250e3b84cc762b25267b4a8409d8e03c3bbe8831
parent7453078781dd1f050e8abf04c6ec07192ba160d8 (diff)
downloadcaja-343064289eabc3a2c901d674c7a5707bdd31da07.tar.bz2
caja-343064289eabc3a2c901d674c7a5707bdd31da07.tar.xz
navigation-window: suppress GtkAction warnings
-rw-r--r--src/caja-navigation-window.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/caja-navigation-window.c b/src/caja-navigation-window.c
index 594acd5a..ec12663b 100644
--- a/src/caja-navigation-window.c
+++ b/src/caja-navigation-window.c
@@ -576,6 +576,7 @@ caja_navigation_window_key_press_event (GtkWidget *widget,
{
GtkAction *action;
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
action = gtk_action_group_get_action (window->details->navigation_action_group,
extra_navigation_window_keybindings[i].action);
@@ -585,6 +586,7 @@ caja_navigation_window_key_press_event (GtkWidget *widget,
gtk_action_activate (action);
return TRUE;
}
+ G_GNUC_END_IGNORE_DEPRECATIONS;
break;
}
@@ -754,10 +756,12 @@ caja_navigation_window_allow_back (CajaNavigationWindow *window, gboolean allow)
{
GtkAction *action;
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
action = gtk_action_group_get_action (window->details->navigation_action_group,
CAJA_ACTION_BACK);
gtk_action_set_sensitive (action, allow);
+ G_GNUC_END_IGNORE_DEPRECATIONS;
}
void
@@ -765,10 +769,12 @@ caja_navigation_window_allow_forward (CajaNavigationWindow *window, gboolean all
{
GtkAction *action;
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
action = gtk_action_group_get_action (window->details->navigation_action_group,
CAJA_ACTION_FORWARD);
gtk_action_set_sensitive (action, allow);
+ G_GNUC_END_IGNORE_DEPRECATIONS;
}
static void
@@ -893,6 +899,7 @@ caja_navigation_window_set_search_button (CajaNavigationWindow *window,
{
GtkAction *action;
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
action = gtk_action_group_get_action (window->details->navigation_action_group,
"Search");
@@ -901,6 +908,7 @@ caja_navigation_window_set_search_button (CajaNavigationWindow *window,
g_object_set_data (G_OBJECT (action), "blocked", GINT_TO_POINTER (1));
gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action), state);
g_object_set_data (G_OBJECT (action), "blocked", NULL);
+ G_GNUC_END_IGNORE_DEPRECATIONS;
}
static void
@@ -1379,6 +1387,7 @@ caja_navigation_window_split_view_on (CajaNavigationWindow *window)
caja_window_slot_go_to (slot, location, FALSE);
g_object_unref (location);
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
action = gtk_action_group_get_action (CAJA_NAVIGATION_WINDOW (CAJA_WINDOW_PANE (pane)->window)->details->navigation_action_group,
CAJA_ACTION_SHOW_HIDE_LOCATION_BAR);
if (gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)))
@@ -1389,6 +1398,7 @@ caja_navigation_window_split_view_on (CajaNavigationWindow *window)
{
caja_navigation_window_pane_hide_location_bar (pane, TRUE);
}
+ G_GNUC_END_IGNORE_DEPRECATIONS;
}
void