[devhelp/wip/swilmet/misc-improvements] app: simplify activate
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp/wip/swilmet/misc-improvements] app: simplify activate
- Date: Mon, 25 May 2015 19:41:51 +0000 (UTC)
commit 8fbf3c5e77525e69a3539595f5de48803edbaa37
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon May 25 21:38:58 2015 +0200
app: simplify activate
It's exactly the same code as new_window_cb(), which is called by
dh_app_new_window().
src/dh-app.c | 7 +------
1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/src/dh-app.c b/src/dh-app.c
index b52e304..5169b37 100644
--- a/src/dh-app.c
+++ b/src/dh-app.c
@@ -412,12 +412,7 @@ dh_app_startup (GApplication *application)
static void
dh_app_activate (GApplication *application)
{
- DhApp *app = DH_APP (application);
- GtkWidget *window;
-
- window = dh_window_new (app);
- gtk_application_add_window (GTK_APPLICATION (app), GTK_WINDOW (window));
- gtk_widget_show_all (window);
+ dh_app_new_window (DH_APP (application));
}
/******************************************************************************/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]