GtkToggleToolButton: Use G_PARAM_EXPLICIT_NOTIFY
This commit is contained in:
@ -127,7 +127,7 @@ gtk_toggle_tool_button_class_init (GtkToggleToolButtonClass *klass)
|
||||
P_("Active"),
|
||||
P_("If the toggle button should be pressed in"),
|
||||
FALSE,
|
||||
GTK_PARAM_READWRITE));
|
||||
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
|
||||
|
||||
/**
|
||||
* GtkToggleToolButton::toggled:
|
||||
@ -452,7 +452,10 @@ gtk_toggle_tool_button_set_active (GtkToggleToolButton *button,
|
||||
is_active = is_active != FALSE;
|
||||
|
||||
if (button->priv->active != is_active)
|
||||
{
|
||||
gtk_button_clicked (GTK_BUTTON (_gtk_tool_button_get_button (GTK_TOOL_BUTTON (button))));
|
||||
g_object_notify (G_OBJECT (button), "active");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user