[goobox] correctly show an error dialog if some gstreamer plugin is missing
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goobox] correctly show an error dialog if some gstreamer plugin is missing
- Date: Fri, 12 Apr 2013 08:10:24 +0000 (UTC)
commit 044b31715c8df8b47408b3f97639bb46dcdda062
Author: Paolo Bacchilega <paobac src gnome org>
Date: Fri Apr 12 10:08:43 2013 +0200
correctly show an error dialog if some gstreamer plugin is missing
src/main.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index fd9143e..8fdd5e2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -294,9 +294,10 @@ init_application (GApplication *application)
_("In order to read CDs you have to install the gstreamer base
plugins"),
GTK_STOCK_OK, GTK_RESPONSE_OK,
NULL);
- g_signal_connect (G_OBJECT (d), "response",
- G_CALLBACK (gtk_main_quit),
- NULL);
+ g_signal_connect_swapped (G_OBJECT (d), "response",
+ G_CALLBACK (gtk_widget_destroy),
+ d);
+ gtk_window_set_application (GTK_WINDOW (d), GTK_APPLICATION (application));
gtk_widget_show (d);
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]