[nautilus] application: implement command_line method
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] application: implement command_line method
- Date: Sun, 24 May 2015 19:22:03 +0000 (UTC)
commit 74a91ffa5e01b97e9f290f43021c6626c27f5459
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sat May 23 19:08:32 2015 -0700
application: implement command_line method
Instead of connecting to the signal.
src/nautilus-application.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 57e7d84..a6f9f94 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -784,8 +784,7 @@ nautilus_application_handle_file_args (NautilusApplication *self,
static gint
nautilus_application_command_line (GApplication *application,
- GApplicationCommandLine *command_line,
- gpointer user_data)
+ GApplicationCommandLine *command_line)
{
NautilusApplication *self = NAUTILUS_APPLICATION (application);
gint retval = -1;
@@ -854,10 +853,6 @@ nautilus_application_init (NautilusApplication *application)
G_TYPE_INSTANCE_GET_PRIVATE (application, NAUTILUS_TYPE_APPLICATION,
NautilusApplicationPriv);
- g_signal_connect (application, "command-line",
- G_CALLBACK (nautilus_application_command_line),
- NULL);
-
g_application_add_main_option_entries (G_APPLICATION (application), options);
}
@@ -1188,6 +1183,7 @@ nautilus_application_class_init (NautilusApplicationClass *class)
application_class->dbus_register = nautilus_application_dbus_register;
application_class->dbus_unregister = nautilus_application_dbus_unregister;
application_class->open = nautilus_application_open;
+ application_class->command_line = nautilus_application_command_line;
gtkapp_class = GTK_APPLICATION_CLASS (class);
gtkapp_class->window_added = nautilus_application_window_added;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]