Gtk+ newb: Some basic infos

2016-04-14 Thread Peter Wiehe
Hello, I want to program C++ applications with a GUI, but I am new to Gtk+ and gtkmm programming. 1.) What are the really important differences between Gtk+ 2 and 3? 2.) Can you recommend a really good paper book? (There seem to be a ton of Gtk+ 2 books but not a single one about Gtk+ 3.)

GtkColorChooser questions

2016-04-14 Thread rbd
Hi all, I am trying to use the GtkColorChooserDialog (3.14 under CentOS7 and also 3.18 under MacOS/MacPorts) and have two questions: (1) My app will potentially do a substantial amount of custom color creation. Every time I make a new custom color with GtkColorChooserDialog, the next time

Gtk+3 application Internationalization

2016-04-14 Thread Ondrej Tuma
Hi, because Stock Items are deprecated from Gtk+3.10, what can I use, if I want to use gtk locales in my Application. I don't know, if I understand it well, that I must translate all strings in my application (copy from Stock Items) one more time to all languages just like Gtk if I want to use

Re: argv

2016-04-14 Thread John Coppens
On Sat, 9 Apr 2016 18:39:49 -0700 "Andrew Robinson" wrote: > The problem is that [ebp + 12] and [ebp + 8] point to nonsense. I ran a > debugger and looked at the stack, and there is nothing else on the stack > except for ebp, rtn addr, and these two parameters. I even tried

Re: Gtk+3 application Internationalization

2016-04-14 Thread Emmanuele Bassi
Hi; On 14 April 2016 at 16:58, Murray Cumming wrote: > On Thu, 2016-04-14 at 16:27 +0100, Emmanuele Bassi wrote: >> > I don't know, if I understand it well, that I must translate all >> > strings in my application (copy from Stock Items) one more time to >> all >> >

Re: Gtk+3 application Internationalization

2016-04-14 Thread Emmanuele Bassi
Hi; On 14 April 2016 at 17:09, Dave Howorth wrote: >>> I don't know, if I understand it well, that I must translate all >>> strings in my application (copy from Stock Items) one more time to all >>> languages just like Gtk if I want to use them ? >> >> >> It's hardly

Re: Gtk+3 application Internationalization

2016-04-14 Thread Murray Cumming
On Thu, 2016-04-14 at 16:27 +0100, Emmanuele Bassi wrote: > > I don't know, if I understand it well, that I must translate all > > strings in my application (copy from Stock Items) one more time to > all > > languages just like Gtk if I want to use them ? > > It's hardly going to be an issue.

Re: Gtk+3 application Internationalization

2016-04-14 Thread Dave Howorth
On 2016-04-14 16:27, Emmanuele Bassi wrote: On 14 April 2016 at 08:30, Ondrej Tuma wrote: because Stock Items are deprecated from Gtk+3.10, what can I use, if I want to use gtk locales in my Application. Use your own (localized) string. Better yet, use readable

Re: Gtk+3 application Internationalization

2016-04-14 Thread John Coppens
On Thu, 14 Apr 2016 09:30:10 +0200 Ondrej Tuma wrote: > Where is benefits of this, sorry, stupid decision. When i use Stock > Items, i have my application base translated to all languages which Gtk > have. How can i do that without Stock Items ? I hope, that I had missed >

Re: Gtk+3 application Internationalization

2016-04-14 Thread Emmanuele Bassi
Hi; On 14 April 2016 at 08:30, Ondrej Tuma wrote: > because Stock Items are deprecated from Gtk+3.10, what can I use, if I > want to use gtk locales in my Application. Use your own (localized) string. Better yet, use readable strings that rely on the context of the

Re[2]: argv

2016-04-14 Thread Andrew Robinson
Hi John, The C code for main(int argc, char *argv[]) is standardized and can only mean one thing on a 32-bit version of any program: argc is an immediate value of 4 bytes length and argv is a 4-byte pointer to an array of 32-pointers to zero-terminated strings. Then when main is called, it will