Re: How can I get argc and argv from Gtk+ API?
- From: David NeÄas <yeti physics muni cz>
- To: zxx zxx <zxxkevin gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: How can I get argc and argv from Gtk+ API?
- Date: Tue, 9 Aug 2011 09:55:29 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]