diff options
author | jstebbins <[email protected]> | 2008-12-05 18:21:20 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2008-12-05 18:21:20 +0000 |
commit | a3c6c3d28e31b4a60cbcb45baaefb942c0e06976 (patch) | |
tree | 5fcb227e1468c0c70d41a6515de67cb1c742f179 | |
parent | e8fc4aab3b2188244c884855272f731c2e69b3b4 (diff) |
LinGui: stop live preview playback when the preview window is closed
otherwise you still continue to hear the audio.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2012 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | gtk/src/ghb.ui | 2 | ||||
-rw-r--r-- | gtk/src/preview.c | 10 | ||||
-rw-r--r-- | gtk/src/resource_data.h | 4 | ||||
-rw-r--r-- | gtk/src/resources.plist | 2 |
4 files changed, 14 insertions, 4 deletions
diff --git a/gtk/src/ghb.ui b/gtk/src/ghb.ui index 657e884a3..f198ed397 100644 --- a/gtk/src/ghb.ui +++ b/gtk/src/ghb.ui @@ -3844,7 +3844,7 @@ location as the movie.</property> <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property> <property name="skip_taskbar_hint">True</property> <property name="skip_pager_hint">True</property> - <signal handler="gtk_widget_hide_on_delete" name="delete_event"/> + <signal handler="preview_window_delete_cb" name="delete_event"/> <child> <object class="GtkVBox" id="vbox32"> <property name="visible">True</property> diff --git a/gtk/src/preview.c b/gtk/src/preview.c index 5bc416f70..51e36c27e 100644 --- a/gtk/src/preview.c +++ b/gtk/src/preview.c @@ -745,3 +745,13 @@ preview_frame_value_changed_cb(GtkWidget *widget, signal_user_data_t *ud) ghb_set_preview_image(ud); } +gboolean +preview_window_delete_cb( + GtkWidget *widget, + GdkEvent *event, + signal_user_data_t *ud) +{ + live_preview_stop(ud); + gtk_widget_hide(widget); + return TRUE; +} diff --git a/gtk/src/resource_data.h b/gtk/src/resource_data.h index 7e79c4631..5a4165cdc 100644 --- a/gtk/src/resource_data.h +++ b/gtk/src/resource_data.h @@ -6254,8 +6254,8 @@ "y>\n" " <property name="skip_pager_hint">True</property&" "gt;\n" -" <signal handler="gtk_widget_hide_on_delete" name="" -";delete_event"/>\n" +" <signal handler="preview_window_delete_cb" name="" +"delete_event"/>\n" " <child>\n" " <object class="GtkVBox" id="vbox32">\n" " <property name="visible">True</property>\n" diff --git a/gtk/src/resources.plist b/gtk/src/resources.plist index 5613ee92b..0a810c2fd 100644 --- a/gtk/src/resources.plist +++ b/gtk/src/resources.plist @@ -3849,7 +3849,7 @@ location as the movie.</property> <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property> <property name="skip_taskbar_hint">True</property> <property name="skip_pager_hint">True</property> - <signal handler="gtk_widget_hide_on_delete" name="delete_event"/> + <signal handler="preview_window_delete_cb" name="delete_event"/> <child> <object class="GtkVBox" id="vbox32"> <property name="visible">True</property> |