How can I get argc and argv from Gtk+ API?

2011-08-09 Thread zxx zxx
Hi all:

I have some experience in Qt but not Gtk+. I can get argc and argv from
Qt API when I develop application with Qt4:
QCoreApplication::argc();
QCoreApplication::argv();

But I don't know how to get argc and argv from Gtk+ API when I develop
application with Gtk+.
Does anyone know how to get argc and argv from Gtk+ API? please tell
me.

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


Re: How can I get argc and argv from Gtk+ API?

2011-08-09 Thread David Nečas
On Tue, Aug 09, 2011 at 03:19:16PM +0800, zxx zxx wrote:
 I have some experience in Qt but not Gtk+. I can get argc and argv from
 Qt API when I develop application with Qt4:
 QCoreApplication::argc();
 QCoreApplication::argv();
 
 But I don't know how to get argc and argv from Gtk+ API when I develop
 application with Gtk+.
 Does anyone know how to get argc and argv from Gtk+ API? please tell
 me.

You get argc and argv as arguments to your main() function as usual.

Or from the GApplicationCommandLine argment passed to your
command-line handler of GtkApplication/GApplication if you use the
GApplication framework.

Yeti

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