[gtk+] GtkModelButton: Drop unused :accel property
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkModelButton: Drop unused :accel property
- Date: Wed, 29 Oct 2014 10:51:04 +0000 (UTC)
commit e776c665b0316ed43cc6640d723680c723f5c63f
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Oct 25 23:30:12 2014 -0400
GtkModelButton: Drop unused :accel property
gtk/gtkmenusectionbox.c | 2 --
gtk/gtkmodelbutton.c | 15 ---------------
2 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/gtk/gtkmenusectionbox.c b/gtk/gtkmenusectionbox.c
index 9c1a553..8cbbaef 100644
--- a/gtk/gtkmenusectionbox.c
+++ b/gtk/gtkmenusectionbox.c
@@ -304,8 +304,6 @@ gtk_menu_section_box_insert_func (GtkMenuTrackerItem *item,
g_object_bind_property (item, "sensitive", widget, "sensitive", G_BINDING_SYNC_CREATE);
g_object_bind_property (item, "role", widget, "action-role", G_BINDING_SYNC_CREATE);
g_object_bind_property (item, "toggled", widget, "active", G_BINDING_SYNC_CREATE);
- g_object_bind_property (item, "accel", widget, "accel", G_BINDING_SYNC_CREATE);
-
g_signal_connect (widget, "clicked", G_CALLBACK (gtk_popover_item_activate), item);
}
diff --git a/gtk/gtkmodelbutton.c b/gtk/gtkmodelbutton.c
index aa54e4d..b259b01 100644
--- a/gtk/gtkmodelbutton.c
+++ b/gtk/gtkmodelbutton.c
@@ -59,7 +59,6 @@ enum
PROP_ICON,
PROP_TEXT,
PROP_ACTIVE,
- PROP_ACCEL,
PROP_MENU_NAME,
PROP_INVERTED,
PROP_CENTERED,
@@ -131,13 +130,6 @@ gtk_model_button_set_text (GtkModelButton *button,
}
static void
-gtk_model_button_set_accel (GtkModelButton *button,
- const gchar *accel)
-{
- /* ignore */
-}
-
-static void
gtk_model_button_update_state (GtkModelButton *button)
{
GtkStateFlags state;
@@ -267,10 +259,6 @@ gtk_model_button_set_property (GObject *object,
gtk_model_button_set_active (button, g_value_get_boolean (value));
break;
- case PROP_ACCEL:
- gtk_model_button_set_accel (button, g_value_get_string (value));
- break;
-
case PROP_MENU_NAME:
gtk_model_button_set_menu_name (button, g_value_get_string (value));
break;
@@ -740,9 +728,6 @@ gtk_model_button_class_init (GtkModelButtonClass *class)
g_object_class_install_property (object_class, PROP_ACTIVE,
g_param_spec_boolean ("active", "", "", FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
- g_object_class_install_property (object_class, PROP_ACCEL,
- g_param_spec_string ("accel", "", "", NULL,
- G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class, PROP_MENU_NAME,
g_param_spec_string ("menu-name", "", "", NULL,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]