[gnome-color-manager: 7/7] trivial: Port to GApplication API from git master
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager: 7/7] trivial: Port to GApplication API from git master
- Date: Thu, 17 Jun 2010 15:50:37 +0000 (UTC)
commit 2695dc660a0286869e19915ba1fd133cd0ff23ca
Author: Richard Hughes <richard hughsie com>
Date: Thu Jun 17 16:49:53 2010 +0100
trivial: Port to GApplication API from git master
src/gcm-picker.c | 4 ++--
src/gcm-prefs.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gcm-picker.c b/src/gcm-picker.c
index 50be184..a6ebab8 100644
--- a/src/gcm-picker.c
+++ b/src/gcm-picker.c
@@ -233,7 +233,7 @@ static void
gcm_picker_close_cb (GtkWidget *widget, gpointer data)
{
GApplication *application = (GApplication *) data;
- g_application_quit (application, 0);
+ g_application_quit_with_data (application, NULL);
}
/**
@@ -521,7 +521,7 @@ main (int argc, char *argv[])
g_option_context_free (context);
/* ensure single instance */
- application = g_application_new_and_register ("org.gnome.ColorManager.Picker", argc, argv);
+ application = g_application_new ("org.gnome.ColorManager.Picker", argc, argv);
g_signal_connect (application, "prepare-activation",
G_CALLBACK (gcm_prefs_application_prepare_action_cb), NULL);
diff --git a/src/gcm-prefs.c b/src/gcm-prefs.c
index 8150a30..5abd7fa 100644
--- a/src/gcm-prefs.c
+++ b/src/gcm-prefs.c
@@ -130,7 +130,7 @@ static void
gcm_prefs_close_cb (GtkWidget *widget, gpointer data)
{
GApplication *application = (GApplication *) data;
- g_application_quit (application, 0);
+ g_application_quit_with_data (application, NULL);
}
/**
@@ -3266,7 +3266,7 @@ main (int argc, char **argv)
g_option_context_free (context);
/* ensure single instance */
- application = g_application_new_and_register ("org.gnome.ColorManager.Prefs", argc, argv);
+ application = g_application_new ("org.gnome.ColorManager.Prefs", argc, argv);
g_signal_connect (application, "prepare-activation",
G_CALLBACK (gcm_prefs_application_prepare_action_cb), NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]