[gnome-panel] button-widget: remove unused property
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] button-widget: remove unused property
- Date: Wed, 24 May 2017 20:22:27 +0000 (UTC)
commit 869ea2fcf0d7d2ad6030f289048d215e34e01642
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed May 24 23:22:14 2017 +0300
button-widget: remove unused property
gnome-panel/button-widget.c | 44 ---------------------------------------
gnome-panel/button-widget.h | 3 --
gnome-panel/panel-menu-button.c | 4 ---
3 files changed, 0 insertions(+), 51 deletions(-)
---
diff --git a/gnome-panel/button-widget.c b/gnome-panel/button-widget.c
index 35bdf74..18e4f32 100644
--- a/gnome-panel/button-widget.c
+++ b/gnome-panel/button-widget.c
@@ -27,7 +27,6 @@ struct _ButtonWidgetPrivate {
int size;
guint activatable : 1;
- guint ignore_leave : 1;
guint arrow : 1;
guint dnd_highlight : 1;
};
@@ -38,7 +37,6 @@ static void button_widget_reload_pixbuf (ButtonWidget *button);
enum {
PROP_0,
PROP_ACTIVATABLE,
- PROP_IGNORE_LEAVE,
PROP_HAS_ARROW,
PROP_DND_HIGHLIGHT,
PROP_ORIENTATION,
@@ -219,9 +217,6 @@ button_widget_get_property (GObject *object,
case PROP_ACTIVATABLE:
g_value_set_boolean (value, button->priv->activatable);
break;
- case PROP_IGNORE_LEAVE:
- g_value_set_boolean (value, button->priv->ignore_leave);
- break;
case PROP_HAS_ARROW:
g_value_set_boolean (value, button->priv->arrow);
break;
@@ -254,9 +249,6 @@ button_widget_set_property (GObject *object,
case PROP_ACTIVATABLE:
button_widget_set_activatable (button, g_value_get_boolean (value));
break;
- case PROP_IGNORE_LEAVE:
- button_widget_set_ignore_leave (button, g_value_get_boolean (value));
- break;
case PROP_HAS_ARROW:
button_widget_set_has_arrow (button, g_value_get_boolean (value));
break;
@@ -609,7 +601,6 @@ button_widget_init (ButtonWidget *button)
button->priv->size = 0;
button->priv->activatable = FALSE;
- button->priv->ignore_leave = FALSE;
button->priv->arrow = FALSE;
button->priv->dnd_highlight = FALSE;
}
@@ -650,15 +641,6 @@ button_widget_class_init (ButtonWidgetClass *klass)
g_object_class_install_property (
gobject_class,
- PROP_IGNORE_LEAVE,
- g_param_spec_boolean ("ignore-leave",
- "Ignore leaving to not unhighlight the icon",
- "Whether or not to unhighlight the icon when the cursor leaves
it",
- FALSE,
- G_PARAM_READWRITE));
-
- g_object_class_install_property (
- gobject_class,
PROP_HAS_ARROW,
g_param_spec_boolean ("has-arrow",
"Has Arrow",
@@ -864,32 +846,6 @@ button_widget_get_dnd_highlight (ButtonWidget *button)
return button->priv->dnd_highlight;
}
-void
-button_widget_set_ignore_leave (ButtonWidget *button,
- gboolean ignore_leave)
-{
- g_return_if_fail (BUTTON_IS_WIDGET (button));
-
- ignore_leave = ignore_leave != FALSE;
-
- if (button->priv->ignore_leave == ignore_leave)
- return;
-
- button->priv->ignore_leave = ignore_leave;
-
- gtk_widget_queue_draw (GTK_WIDGET (button));
-
- g_object_notify (G_OBJECT (button), "ignore-leave");
-}
-
-gboolean
-button_widget_get_ignore_leave (ButtonWidget *button)
-{
- g_return_val_if_fail (BUTTON_IS_WIDGET (button), FALSE);
-
- return button->priv->ignore_leave;
-}
-
GtkIconTheme *
button_widget_get_icon_theme (ButtonWidget *button)
{
diff --git a/gnome-panel/button-widget.h b/gnome-panel/button-widget.h
index 82a1e95..57ca73f 100644
--- a/gnome-panel/button-widget.h
+++ b/gnome-panel/button-widget.h
@@ -45,9 +45,6 @@ gboolean button_widget_get_has_arrow (ButtonWidget *button);
void button_widget_set_dnd_highlight (ButtonWidget *button,
gboolean dnd_highlight);
gboolean button_widget_get_dnd_highlight (ButtonWidget *button);
-void button_widget_set_ignore_leave (ButtonWidget *button,
- gboolean ignore_leave);
-gboolean button_widget_get_ignore_leave (ButtonWidget *button);
GtkIconTheme *button_widget_get_icon_theme (ButtonWidget *button);
GdkPixbuf *button_widget_get_pixbuf (ButtonWidget *button);
diff --git a/gnome-panel/panel-menu-button.c b/gnome-panel/panel-menu-button.c
index 0874efb..dc370de 100644
--- a/gnome-panel/panel-menu-button.c
+++ b/gnome-panel/panel-menu-button.c
@@ -324,8 +324,6 @@ panel_menu_button_menu_deactivated (PanelMenuButton *button)
gtk_widget_unset_state_flags (GTK_WIDGET (button),
GTK_STATE_FLAG_PRELIGHT);
-
- button_widget_set_ignore_leave (BUTTON_WIDGET (button), FALSE);
}
static void
@@ -391,8 +389,6 @@ panel_menu_button_popup_menu (PanelMenuButton *button,
panel_toplevel_push_autohide_disabler (button->priv->toplevel);
- button_widget_set_ignore_leave (BUTTON_WIDGET (button), TRUE);
-
screen = gtk_window_get_screen (GTK_WINDOW (button->priv->toplevel));
gtk_menu_set_screen (GTK_MENU (button->priv->menu), screen);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]