diff options
author | Thomas White <taw@physics.org> | 2021-02-16 16:50:50 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-02-16 16:50:50 +0100 |
commit | 62c340b78fa1cf1430a9d1ec217f221406c05488 (patch) | |
tree | a496aaecd22583d7ffa3ef61abd2801a9d5b167c /src/gtk-util-routines.c | |
parent | d19fc43e9afd46e689d2169bb2320beec750d455 (diff) |
Add set_active()
Diffstat (limited to 'src/gtk-util-routines.c')
-rw-r--r-- | src/gtk-util-routines.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gtk-util-routines.c b/src/gtk-util-routines.c index efdbc336..8fd9fecb 100644 --- a/src/gtk-util-routines.c +++ b/src/gtk-util-routines.c @@ -92,3 +92,9 @@ int i_maybe_disable(GtkWidget *toggle, GtkWidget *widget) gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(toggle))); return FALSE; } + + +void set_active(GtkWidget *tb, int active) +{ + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(tb), active); +} |