[devhelp] App: remove dh_app_quit() public function
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] App: remove dh_app_quit() public function
- Date: Fri, 15 Dec 2017 12:35:27 +0000 (UTC)
commit 8634a149934e5f77ef63f9c3c4cd9514236ebbe6
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Dec 15 13:23:57 2017 +0100
App: remove dh_app_quit() public function
Activate the action directy.
src/dh-app.c | 10 +---------
src/dh-app.h | 2 --
2 files changed, 1 insertions(+), 11 deletions(-)
---
diff --git a/src/dh-app.c b/src/dh-app.c
index 2c3b970..1bfb0a2 100644
--- a/src/dh-app.c
+++ b/src/dh-app.c
@@ -102,14 +102,6 @@ dh_app_new_window (DhApp *app)
}
void
-dh_app_quit (DhApp *app)
-{
- g_return_if_fail (DH_IS_APP (app));
-
- g_action_group_activate_action (G_ACTION_GROUP (app), "quit", NULL);
-}
-
-void
dh_app_search (DhApp *app,
const gchar *keyword)
{
@@ -513,7 +505,7 @@ dh_app_command_line (GApplication *app,
if (option_new_window) {
dh_app_new_window (DH_APP (app));
} else if (option_quit) {
- dh_app_quit (DH_APP (app));
+ g_action_group_activate_action (G_ACTION_GROUP (app), "quit", NULL);
} else if (option_search) {
dh_app_search (DH_APP (app), option_search);
} else if (option_search_assistant) {
diff --git a/src/dh-app.h b/src/dh-app.h
index b235515..21af0e8 100644
--- a/src/dh-app.h
+++ b/src/dh-app.h
@@ -49,8 +49,6 @@ GtkWindow * dh_app_peek_first_window (DhApp *app);
void dh_app_new_window (DhApp *app);
-void dh_app_quit (DhApp *app);
-
void dh_app_search (DhApp *app,
const gchar *keyword);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]