Re: GApplication and GtkApplication oddness

2010-06-10 Thread Alberto Ruiz
2010/6/9 Richard Hughes hughsi...@gmail.com:
 With GApplication we have:

        application = g_application_new_and_register
 (org.gnome.ColorManager.Prefs, argc, argv);

 and with GtkApplication we have:

        application = gtk_application_new (argc, argv, 
 org.gnome.ColorManager.Prefs);

 It does seem slightly odd that the former has the appid first, and the
 latter has it last. I'm not sure it matters much, but I figured
 feedback might be useful.

I do think it matters a lot, there should be consistency between
calls, good catch.

 Richard.
 ___
 gtk-devel-list mailing list
 gtk-devel-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/gtk-devel-list




-- 
Un saludo,
Alberto Ruiz
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


Re: GApplication and GtkApplication oddness

2010-06-10 Thread Richard Hughes
On 10 June 2010 10:34, Alberto Ruiz ar...@gnome.org wrote:
 I do think it matters a lot, there should be consistency between
 calls, good catch.

For what it's worth, I prefer the glib style, so the app-id goes first.

Richard.
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


Re: GApplication and GtkApplication oddness

2010-06-10 Thread Alberto Ruiz
2010/6/10 Richard Hughes hughsi...@gmail.com:
 On 10 June 2010 10:34, Alberto Ruiz ar...@gnome.org wrote:
 I do think it matters a lot, there should be consistency between
 calls, good catch.

 For what it's worth, I prefer the glib style, so the app-id goes first.

I guess it makes sense since a lot of people are going to go for NULL,
NULL in argv, argc. I can even see those being an optional argument in
the python bindings for example, whereas the app id is mandatory I
would assume.

 Richard.




-- 
Un saludo,
Alberto Ruiz
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


GApplication and GtkApplication oddness

2010-06-09 Thread Richard Hughes
With GApplication we have:

application = g_application_new_and_register
(org.gnome.ColorManager.Prefs, argc, argv);

and with GtkApplication we have:

application = gtk_application_new (argc, argv, 
org.gnome.ColorManager.Prefs);

It does seem slightly odd that the former has the appid first, and the
latter has it last. I'm not sure it matters much, but I figured
feedback might be useful.

Richard.
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list