forked from AuroraMiddleware/gtk
gtktoggletoolbutton: Use accessor functions to access GtkToggleButton
This commit is contained in:
parent
fda588d10d
commit
356cfaa084
@ -291,7 +291,9 @@ static void
|
|||||||
button_toggled (GtkWidget *widget,
|
button_toggled (GtkWidget *widget,
|
||||||
GtkToggleToolButton *toggle_tool_button)
|
GtkToggleToolButton *toggle_tool_button)
|
||||||
{
|
{
|
||||||
gboolean toggle_active = GTK_TOGGLE_BUTTON (widget)->active;
|
gboolean toggle_active;
|
||||||
|
|
||||||
|
toggle_active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget));
|
||||||
|
|
||||||
if (toggle_tool_button->priv->active != toggle_active)
|
if (toggle_tool_button->priv->active != toggle_active)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user