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
This commit is contained in:
Sébastien Wilmet 2016-04-10 11:08:57 +02:00
parent 1f87c1cc0b
commit ee58a52a61

View File

@ -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);