gtksidebarrow: remove unused property

The sensitive property was a workaround which commit
3f8982a0cd fixed.
Just remove it now that is not necessary.
This commit is contained in:
Carlos Soriano 2015-07-07 22:57:51 +02:00
parent 0f935a0483
commit 3fb1d1806d

View File

@ -44,7 +44,6 @@ struct _GtkSidebarRow
GDrive *drive;
GVolume *volume;
GMount *mount;
gboolean sensitive;
gboolean placeholder;
GtkPlacesSidebar *sidebar;
GtkWidget *event_box;
@ -68,7 +67,6 @@ enum
PROP_DRIVE,
PROP_VOLUME,
PROP_MOUNT,
PROP_SENSITIVE,
PROP_PLACEHOLDER,
LAST_PROP
};
@ -133,10 +131,6 @@ gtk_sidebar_row_get_property (GObject *object,
g_value_set_object (value, self->mount);
break;
case PROP_SENSITIVE:
g_value_set_boolean (value, self->sensitive);
break;
case PROP_PLACEHOLDER:
g_value_set_boolean (value, self->placeholder);
break;
@ -222,20 +216,6 @@ gtk_sidebar_row_set_property (GObject *object,
g_set_object (&self->mount, g_value_get_object (value));
break;
case PROP_SENSITIVE:
self->sensitive = g_value_get_boolean (value);
context = gtk_widget_get_style_context (GTK_WIDGET (self));
/* Modifying the actual sensitivity of the widget makes the drag state
* to change and calling drag-leave wich modifies the gtklistbox and a
* style race ocurs. So since we only use it for show which rows are
* drop targets, we can simple use a dim-label style
*/
if (self->sensitive)
gtk_style_context_remove_class (context, "dim-label");
else
gtk_style_context_add_class (context, "dim-label");
break;
case PROP_PLACEHOLDER:
self->placeholder = g_value_get_boolean (value);
if (self->placeholder)
@ -439,14 +419,6 @@ gtk_sidebar_row_class_init (GtkSidebarRowClass *klass)
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
properties [PROP_SENSITIVE] =
g_param_spec_boolean ("sensitive",
"Sensitive",
"Make the row sensitive or not",
TRUE,
(G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
properties [PROP_PLACEHOLDER] =
g_param_spec_boolean ("placeholder",
"Placeholder",