[gnome-panel] panel-toplevel: remove unused functions
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] panel-toplevel: remove unused functions
- Date: Mon, 19 Dec 2016 00:57:42 +0000 (UTC)
commit f3a0ba37fa9af07f6eef6b2d6a1e036011b441c4
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Dec 19 02:56:40 2016 +0200
panel-toplevel: remove unused functions
gnome-panel/panel-toplevel.c | 134 ------------------------------------------
gnome-panel/panel-toplevel.h | 19 ------
2 files changed, 0 insertions(+), 153 deletions(-)
---
diff --git a/gnome-panel/panel-toplevel.c b/gnome-panel/panel-toplevel.c
index 06fc9fa..83710c1 100644
--- a/gnome-panel/panel-toplevel.c
+++ b/gnome-panel/panel-toplevel.c
@@ -4459,14 +4459,6 @@ panel_toplevel_get_expand (PanelToplevel *toplevel)
return toplevel->priv->expand;
}
-gboolean
-panel_toplevel_get_is_floating (PanelToplevel *toplevel)
-{
- g_return_val_if_fail (PANEL_IS_TOPLEVEL (toplevel), TRUE);
-
- return toplevel->priv->floating;
-}
-
void
panel_toplevel_set_orientation (PanelToplevel *toplevel,
PanelOrientation orientation)
@@ -4657,14 +4649,6 @@ panel_toplevel_set_auto_hide_size (PanelToplevel *toplevel,
g_object_notify (G_OBJECT (toplevel), "auto-hide-size");
}
-int
-panel_toplevel_get_auto_hide_size (PanelToplevel *toplevel)
-{
- g_return_val_if_fail (PANEL_IS_TOPLEVEL (toplevel), DEFAULT_AUTO_HIDE_SIZE);
-
- return toplevel->priv->auto_hide_size;
-}
-
void
panel_toplevel_set_x (PanelToplevel *toplevel,
int x,
@@ -4745,44 +4729,6 @@ panel_toplevel_set_y (PanelToplevel *toplevel,
g_object_thaw_notify (G_OBJECT (toplevel));
}
-void
-panel_toplevel_get_position (PanelToplevel *toplevel,
- int *x,
- int *x_right,
- int *y,
- int *y_bottom)
-{
- g_return_if_fail (PANEL_IS_TOPLEVEL (toplevel));
-
- if (x)
- *x = toplevel->priv->x;
-
- if (y)
- *y = toplevel->priv->y;
-
- if (x_right)
- *x_right = toplevel->priv->x_right;
-
- if (y_bottom)
- *y_bottom = toplevel->priv->y_bottom;
-}
-
-gboolean
-panel_toplevel_get_x_centered (PanelToplevel *toplevel)
-{
- g_return_val_if_fail (PANEL_IS_TOPLEVEL (toplevel), FALSE);
-
- return toplevel->priv->x_centered;
-}
-
-gboolean
-panel_toplevel_get_y_centered (PanelToplevel *toplevel)
-{
- g_return_val_if_fail (PANEL_IS_TOPLEVEL (toplevel), FALSE);
-
- return toplevel->priv->y_centered;
-}
-
/**
* panel_toplevel_set_monitor_internal:
*
@@ -4898,14 +4844,6 @@ panel_toplevel_set_auto_hide (PanelToplevel *toplevel,
g_object_notify (G_OBJECT (toplevel), "auto-hide");
}
-gboolean
-panel_toplevel_get_auto_hide (PanelToplevel *toplevel)
-{
- g_return_val_if_fail (PANEL_IS_TOPLEVEL (toplevel), FALSE);
-
- return toplevel->priv->auto_hide;
-}
-
void
panel_toplevel_set_hide_delay (PanelToplevel *toplevel,
int hide_delay)
@@ -4920,14 +4858,6 @@ panel_toplevel_set_hide_delay (PanelToplevel *toplevel,
g_object_notify (G_OBJECT (toplevel), "hide-delay");
}
-int
-panel_toplevel_get_hide_delay (PanelToplevel *toplevel)
-{
- g_return_val_if_fail (PANEL_IS_TOPLEVEL (toplevel), -1);
-
- return toplevel->priv->hide_delay;
-}
-
void
panel_toplevel_set_unhide_delay (PanelToplevel *toplevel,
int unhide_delay)
@@ -4942,14 +4872,6 @@ panel_toplevel_set_unhide_delay (PanelToplevel *toplevel,
g_object_notify (G_OBJECT (toplevel), "unhide-delay");
}
-int
-panel_toplevel_get_unhide_delay (PanelToplevel *toplevel)
-{
- g_return_val_if_fail (PANEL_IS_TOPLEVEL (toplevel), -1);
-
- return toplevel->priv->unhide_delay;
-}
-
static void
panel_toplevel_set_animate (PanelToplevel *toplevel,
gboolean animate)
@@ -4966,14 +4888,6 @@ panel_toplevel_set_animate (PanelToplevel *toplevel,
g_object_notify (G_OBJECT (toplevel), "animate");
}
-gboolean
-panel_toplevel_get_animate (PanelToplevel *toplevel)
-{
- g_return_val_if_fail (PANEL_IS_TOPLEVEL (toplevel), FALSE);
-
- return toplevel->priv->animate;
-}
-
void
panel_toplevel_set_animation_speed (PanelToplevel *toplevel,
PanelAnimationSpeed animation_speed)
@@ -4988,14 +4902,6 @@ panel_toplevel_set_animation_speed (PanelToplevel *toplevel,
g_object_notify (G_OBJECT (toplevel), "animation-speed");
}
-PanelAnimationSpeed
-panel_toplevel_get_animation_speed (PanelToplevel *toplevel)
-{
- g_return_val_if_fail (PANEL_IS_TOPLEVEL (toplevel), 0);
-
- return toplevel->priv->animation_speed;
-}
-
void
panel_toplevel_set_enable_buttons (PanelToplevel *toplevel,
gboolean enable_buttons)
@@ -5013,46 +4919,6 @@ panel_toplevel_set_enable_buttons (PanelToplevel *toplevel,
}
gboolean
-panel_toplevel_get_enable_buttons (PanelToplevel *toplevel)
-{
- g_return_val_if_fail (PANEL_IS_TOPLEVEL (toplevel), FALSE);
-
- return toplevel->priv->buttons_enabled;
-}
-
-void
-panel_toplevel_rotate (PanelToplevel *toplevel,
- gboolean clockwise)
-{
- PanelOrientation orientation;
-
- /* Relies on PanelOrientation definition:
- *
- * typedef enum {
- * PANEL_ORIENTATION_TOP = 1 << 0,
- * PANEL_ORIENTATION_RIGHT = 1 << 1,
- * PANEL_ORIENTATION_BOTTOM = 1 << 2,
- * PANEL_ORIENTATION_LEFT = 1 << 3
- * } PanelOrientation;
- */
-
- orientation = toplevel->priv->orientation;
-
- if (clockwise)
- orientation <<= 1;
- else
- orientation >>= 1;
-
- if (orientation == 0)
- orientation = PANEL_ORIENTATION_LEFT;
-
- else if (orientation > PANEL_ORIENTATION_LEFT)
- orientation = PANEL_ORIENTATION_TOP;
-
- panel_toplevel_set_orientation (toplevel, orientation);
-}
-
-gboolean
panel_toplevel_get_is_hidden (PanelToplevel *toplevel)
{
g_return_val_if_fail (PANEL_IS_TOPLEVEL (toplevel), FALSE);
diff --git a/gnome-panel/panel-toplevel.h b/gnome-panel/panel-toplevel.h
index d3625c3..7487f16 100644
--- a/gnome-panel/panel-toplevel.h
+++ b/gnome-panel/panel-toplevel.h
@@ -93,7 +93,6 @@ void panel_toplevel_set_monitor (PanelToplevel
int panel_toplevel_get_monitor (PanelToplevel *toplevel);
void panel_toplevel_set_auto_hide_size (PanelToplevel *toplevel,
int autohide_size);
-int panel_toplevel_get_auto_hide_size (PanelToplevel *toplevel);
void panel_toplevel_set_x (PanelToplevel *toplevel,
int x,
int x_right,
@@ -102,18 +101,6 @@ void panel_toplevel_set_y (PanelToplevel
int y,
int y_bottom,
gboolean y_centered);
-void panel_toplevel_get_position (PanelToplevel *toplevel,
- int *x,
- int *x_right,
- int *y,
- int *y_bottom);
-gboolean panel_toplevel_get_x_centered (PanelToplevel *toplevel);
-gboolean panel_toplevel_get_y_centered (PanelToplevel *toplevel);
-
-void panel_toplevel_rotate (PanelToplevel *toplevel,
- gboolean clockwise);
-
-gboolean panel_toplevel_get_is_floating (PanelToplevel *toplevel);
gboolean panel_toplevel_get_is_hidden (PanelToplevel *toplevel);
@@ -129,22 +116,16 @@ void panel_toplevel_pop_autohide_disabler (PanelToplevel
void panel_toplevel_set_auto_hide (PanelToplevel *toplevel,
gboolean autohide);
-gboolean panel_toplevel_get_auto_hide (PanelToplevel *toplevel);
void panel_toplevel_set_hide_delay (PanelToplevel *toplevel,
int hide_delay);
-int panel_toplevel_get_hide_delay (PanelToplevel *toplevel);
void panel_toplevel_set_unhide_delay (PanelToplevel *toplevel,
int unhide_delay);
-int panel_toplevel_get_unhide_delay (PanelToplevel *toplevel);
-gboolean panel_toplevel_get_animate (PanelToplevel *toplevel);
void panel_toplevel_set_animation_speed (PanelToplevel *toplevel,
PanelAnimationSpeed animation_speed);
-PanelAnimationSpeed panel_toplevel_get_animation_speed (PanelToplevel *toplevel);
void panel_toplevel_set_enable_buttons (PanelToplevel *toplevel,
gboolean enable_buttons);
-gboolean panel_toplevel_get_enable_buttons (PanelToplevel *toplevel);
gboolean panel_toplevel_is_last (PanelToplevel *toplevel);
int panel_toplevel_get_maximum_size (PanelToplevel *toplevel);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]