gnome-media r4164 - in trunk/gnome-volume-control: . src
- From: hadess svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-media r4164 - in trunk/gnome-volume-control: . src
- Date: Mon, 26 Jan 2009 17:44:50 +0000 (UTC)
Author: hadess
Date: Mon Jan 26 17:44:50 2009
New Revision: 4164
URL: http://svn.gnome.org/viewvc/gnome-media?rev=4164&view=rev
Log:
2009-01-26 Bastien Nocera <hadess hadess net>
* src/dialog-main.c (on_dialog_response), (on_dialog_close),
(on_control_ready): Exit when Esc is pressed
Modified:
trunk/gnome-volume-control/ChangeLog
trunk/gnome-volume-control/src/dialog-main.c
Modified: trunk/gnome-volume-control/src/dialog-main.c
==============================================================================
--- trunk/gnome-volume-control/src/dialog-main.c (original)
+++ trunk/gnome-volume-control/src/dialog-main.c Mon Jan 26 17:44:50 2009
@@ -151,7 +151,14 @@
guint response_id,
gpointer data)
{
- gtk_main_quit ();
+ exit (0);
+}
+
+static void
+on_dialog_close (GtkDialog *dialog,
+ gpointer data)
+{
+ exit (0);
}
static void
@@ -165,6 +172,10 @@
"response",
G_CALLBACK (on_dialog_response),
NULL);
+ g_signal_connect (dialog,
+ "close",
+ G_CALLBACK (on_dialog_close),
+ NULL);
if (page != NULL)
gvc_mixer_dialog_set_page(dialog, page);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]