Turn the image on and off
This commit is contained in:
parent
1367dc0ca9
commit
0a6b033719
|
@ -102,6 +102,7 @@ GtkWidget * flashlight_get_widget(Flashlight * flashlight)
|
||||||
/* flashlight_set_active */
|
/* flashlight_set_active */
|
||||||
void flashlight_set_active(Flashlight * flashlight, gboolean active)
|
void flashlight_set_active(Flashlight * flashlight, gboolean active)
|
||||||
{
|
{
|
||||||
|
gtk_widget_set_sensitive(flashlight->image, active);
|
||||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(flashlight->co_main),
|
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(flashlight->co_main),
|
||||||
active);
|
active);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user