[gnome-panel] panel-action-button: remove is_deprecated function
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] panel-action-button: remove is_deprecated function
- Date: Wed, 24 May 2017 20:45:35 +0000 (UTC)
commit 71a6aeacf94c662b62147b3935f7602c8ca3ba6c
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed May 24 23:43:31 2017 +0300
panel-action-button: remove is_deprecated function
gnome-panel/panel-action-button.c | 17 -----------------
gnome-panel/panel-enums.h | 1 -
2 files changed, 0 insertions(+), 18 deletions(-)
---
diff --git a/gnome-panel/panel-action-button.c b/gnome-panel/panel-action-button.c
index 515f5c8..b08683e 100644
--- a/gnome-panel/panel-action-button.c
+++ b/gnome-panel/panel-action-button.c
@@ -446,22 +446,11 @@ static PanelAction actions [] = {
}
};
-static gboolean
-panel_action_get_is_deprecated (PanelActionButtonType type)
-{
- g_return_val_if_fail (type > PANEL_ACTION_NONE && type < PANEL_ACTION_LAST, FALSE);
-
- return (type > PANEL_ACTION_LAST_NON_DEPRECATED);
-}
-
gboolean
panel_action_get_is_disabled (PanelActionButtonType type)
{
g_return_val_if_fail (type > PANEL_ACTION_NONE && type < PANEL_ACTION_LAST, FALSE);
- if (panel_action_get_is_deprecated (type))
- return TRUE;
-
if (actions [type].is_disabled)
return actions [type].is_disabled ();
@@ -679,9 +668,6 @@ panel_action_button_set_type (PanelActionButton *button,
{
g_return_if_fail (type > PANEL_ACTION_NONE && type < PANEL_ACTION_LAST);
- if (panel_action_get_is_deprecated (type))
- return;
-
if (type == button->priv->type)
return;
@@ -821,9 +807,6 @@ panel_action_button_load_from_drag (PanelToplevel *toplevel,
g_return_val_if_fail (type > PANEL_ACTION_NONE && type < PANEL_ACTION_LAST, FALSE);
- if (panel_action_get_is_deprecated (type))
- return retval;
-
if (strcmp (elements [2], "NEW")) {
*old_applet_idx = strtol (elements [2], NULL, 10);
retval = TRUE; /* Remove the old applet */
diff --git a/gnome-panel/panel-enums.h b/gnome-panel/panel-enums.h
index 047059e..000130c 100644
--- a/gnome-panel/panel-enums.h
+++ b/gnome-panel/panel-enums.h
@@ -52,7 +52,6 @@ typedef enum {
PANEL_ACTION_HYBRID_SLEEP,
PANEL_ACTION_REBOOT,
PANEL_ACTION_SHUTDOWN,
-#define PANEL_ACTION_LAST_NON_DEPRECATED PANEL_ACTION_SHUTDOWN
PANEL_ACTION_LAST
} PanelActionButtonType;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]