[gnome-panel] move PanelState enum to panel-toplevel.c
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] move PanelState enum to panel-toplevel.c
- Date: Mon, 19 Dec 2016 00:57:37 +0000 (UTC)
commit bafc42cd782472e1b70cf2511d0f09281947a762
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Dec 19 02:48:36 2016 +0200
move PanelState enum to panel-toplevel.c
gnome-panel/panel-enums.h | 9 ---------
gnome-panel/panel-toplevel.c | 17 +++++++++--------
gnome-panel/panel-toplevel.h | 1 -
3 files changed, 9 insertions(+), 18 deletions(-)
---
diff --git a/gnome-panel/panel-enums.h b/gnome-panel/panel-enums.h
index 39a0b03..e8b7deb 100644
--- a/gnome-panel/panel-enums.h
+++ b/gnome-panel/panel-enums.h
@@ -32,15 +32,6 @@ G_BEGIN_DECLS
#define PANEL_VERTICAL_MASK (PANEL_ORIENTATION_LEFT | PANEL_ORIENTATION_RIGHT)
typedef enum {
- PANEL_STATE_NORMAL = 0,
- PANEL_STATE_AUTO_HIDDEN = 1,
- PANEL_STATE_HIDDEN_UP = 2,
- PANEL_STATE_HIDDEN_DOWN = 3,
- PANEL_STATE_HIDDEN_LEFT = 4,
- PANEL_STATE_HIDDEN_RIGHT = 5
-} PanelState;
-
-typedef enum {
PANEL_OBJECT_MENU,
PANEL_OBJECT_LAUNCHER,
PANEL_OBJECT_APPLET,
diff --git a/gnome-panel/panel-toplevel.c b/gnome-panel/panel-toplevel.c
index 614cd21..06fc9fa 100644
--- a/gnome-panel/panel-toplevel.c
+++ b/gnome-panel/panel-toplevel.c
@@ -62,6 +62,15 @@ G_DEFINE_TYPE (PanelToplevel, panel_toplevel, GTK_TYPE_WINDOW)
#define HANDLE_SIZE 10
typedef enum {
+ PANEL_STATE_NORMAL = 0,
+ PANEL_STATE_AUTO_HIDDEN = 1,
+ PANEL_STATE_HIDDEN_UP = 2,
+ PANEL_STATE_HIDDEN_DOWN = 3,
+ PANEL_STATE_HIDDEN_LEFT = 4,
+ PANEL_STATE_HIDDEN_RIGHT = 5
+} PanelState;
+
+typedef enum {
PANEL_GRAB_OP_NONE,
PANEL_GRAB_OP_MOVE,
PANEL_GRAB_OP_RESIZE,
@@ -5043,14 +5052,6 @@ panel_toplevel_rotate (PanelToplevel *toplevel,
panel_toplevel_set_orientation (toplevel, orientation);
}
-PanelState
-panel_toplevel_get_state (PanelToplevel *toplevel)
-{
- g_return_val_if_fail (PANEL_IS_TOPLEVEL (toplevel), 0);
-
- return toplevel->priv->state;
-}
-
gboolean
panel_toplevel_get_is_hidden (PanelToplevel *toplevel)
{
diff --git a/gnome-panel/panel-toplevel.h b/gnome-panel/panel-toplevel.h
index f1f9c67..d3625c3 100644
--- a/gnome-panel/panel-toplevel.h
+++ b/gnome-panel/panel-toplevel.h
@@ -116,7 +116,6 @@ void panel_toplevel_rotate (PanelToplevel
gboolean panel_toplevel_get_is_floating (PanelToplevel *toplevel);
gboolean panel_toplevel_get_is_hidden (PanelToplevel *toplevel);
-PanelState panel_toplevel_get_state (PanelToplevel *toplevel);
void panel_toplevel_hide (PanelToplevel *toplevel,
gboolean auto_hide,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]