[gnome-terminal] client: legacy: We use application IDs instead of bus names



commit 3edc992db24195d90723aeb7ec94340d81e334ed
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Nov 19 16:45:13 2013 +0100

    client: legacy: We use application IDs instead of bus names
    
    Fallout from abc15a8b1da35910c97f4b8542600f2e81bbbc28
    
    https://bugzilla.gnome.org/show_bug.cgi?id=712691

 src/client.c           |    4 ++--
 src/terminal-options.c |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/client.c b/src/client.c
index 45c2b82..cab3531 100644
--- a/src/client.c
+++ b/src/client.c
@@ -217,9 +217,9 @@ option_app_id_cb (const gchar *option_name,
 {
   OptionData *data = user_data;
 
-  if (!g_dbus_is_name (value)) {
+  if (!g_application_id_is_valid (value)) {
     g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE,
-                 "%s is not a valid D-Bus name", value);
+                 "\"%s\" is not a valid application ID", value);
     return FALSE;
   }
 
diff --git a/src/terminal-options.c b/src/terminal-options.c
index 59aa99f..75fc64d 100644
--- a/src/terminal-options.c
+++ b/src/terminal-options.c
@@ -259,9 +259,9 @@ option_app_id_callback (const gchar *option_name,
 {
   TerminalOptions *options = data;
 
-  if (!g_dbus_is_name (value)) {
+  if (!g_application_id_is_valid (value)) {
     g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE,
-                 "%s is not a valid D-Bus name", value);
+                 "\"%s\" is not a valid application ID", value);
     return FALSE;
   }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]