[gtk+/gtk-3-20] app: minor code improvements



commit 6144469d0210c84c211573706f29d84c4b16d5fd
Author: S├ębastien Wilmet <swilmet gnome org>
Date:   Sun Apr 10 11:08:57 2016 +0200

    app: minor code improvements
    
    - use GDK_EVENT_PROPAGATE
    - pass better zero-values to gtk_init(), since the parameters are
      pointers.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764846

 gtk/gtkapplication.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkapplication.c b/gtk/gtkapplication.c
index 8bd0f0a..2c5a905 100644
--- a/gtk/gtkapplication.c
+++ b/gtk/gtkapplication.c
@@ -525,7 +525,7 @@ gtk_application_focus_in_event_cb (GtkWindow      *window,
 
   g_object_notify_by_pspec (G_OBJECT (application), gtk_application_props[PROP_ACTIVE_WINDOW]);
 
-  return FALSE;
+  return GDK_EVENT_PROPAGATE;
 }
 
 static void
@@ -630,7 +630,7 @@ gtk_application_startup (GApplication *g_application)
 
   gtk_action_muxer_insert (application->priv->muxer, "app", G_ACTION_GROUP (application));
 
-  gtk_init (0, 0);
+  gtk_init (NULL, NULL);
 
   application->priv->impl = gtk_application_impl_new (application, gdk_display_get_default ());
   gtk_application_impl_startup (application->priv->impl, application->priv->register_session);


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