video: reset button icon to inactive after video processing
In current state after video is processed and saved button has video-recording icon, that is confusing. The change handles exit code of movie.sh script and depending on that notifies UI to set video-inactive icon. video-recording icon is set, when the user press button to activate video recording.
This commit is contained in:

committed by
Martijn Braam

parent
4cbd8c2df7
commit
6a7d2ec85e
10
src/main.c
10
src/main.c
@@ -1008,13 +1008,11 @@ flash_button_clicked(GtkWidget *button, gpointer user_data)
|
||||
}
|
||||
|
||||
void
|
||||
notify_movie_progress(void)
|
||||
notify_movie_record_ready(void)
|
||||
{
|
||||
if (!movie_start) {
|
||||
// Recording started
|
||||
gtk_button_set_icon_name(GTK_BUTTON(movie),
|
||||
"video-recording-symbolic");
|
||||
}
|
||||
movie_start = 0;
|
||||
gtk_button_set_icon_name(GTK_BUTTON(movie),
|
||||
"video-inactive-symbolic");
|
||||
}
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user