mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
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,
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user