Detecting if a key is pressed in a callback function

2006-10-13 Thread Colossus
Hi, I have a callback function like this: g_signal_connect ((gpointer) exe_menu, "activate", G_CALLBACK (xa_convert_sfx), NULL); I would like to detect if the SHIFT key is pressed in the xa_convert_sfx() routine. Is this possible? -- Colossus Xarchiver, a Linux GTK+2 only archive manager - htt

Determining if GTK is installed

2006-10-13 Thread David Vandepol
Hi, I am working on an installer that prereqs GTK, I was wondering if there was a known algorithm for determining whether GTK is installed on the system, and what the level is. Also is there a different way to do this depending on the OS. Thanks. (Embedded image moved to file: pic23

Launch the default html browser

2006-10-13 Thread Gan3sh
Hello, With Gtk+, is there any way to launch the default html browser independently of the operating system ? Thanks, Stephane ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Use of fgets, puts, rewind in Gtk+

2006-10-13 Thread Sucheta Ghosh
Let me clarify the situation one by one: > I can see some problems here, but that's not really GTK-related; Then my question is: how the same code works fine as a simple c file, when I am not using this inside Gtk+? > 1) no error checking for fopen(), fgets() - You don't to anything > if they

Re: Launch the default html browser

2006-10-13 Thread John Cupitt
On 10/13/06, Gan3sh <[EMAIL PROTECTED]> wrote: > With Gtk+, is there any way to launch the default html browser > independently of the operating system ? Sadly not (as far as I know). I have a thing with ifdefs for *nix, mac and win32 in my app: http://vips.cvs.sourceforge.net/vips/nip2-7.11/src/

Re: Use of fgets, puts, rewind in Gtk+

2006-10-13 Thread Fernando ApesteguĂ­a
On 10/12/06, Sucheta Ghosh <[EMAIL PROTECTED]> wrote: > Hello, > > I wished to read a file and get some lines from there like this: > - > fp=fopen("filename", "r"); > for(k=0; k<8; k++){ > n=a[k]; > for (i=1; i<=n; i++) //Here 'n' is the l

Re: Use of fgets, puts, rewind in Gtk+

2006-10-13 Thread Michael L Torrie
On Fri, 2006-10-13 at 10:16 +0530, Sucheta Ghosh wrote: > Let me clarify the situation one by one: > > > I can see some problems here, but that's not really GTK-related; > > Then my question is: how the same code works fine as a simple c file, when > I am not using this inside Gtk+? Probably be

Re: Combining GTK+ and C++

2006-10-13 Thread Nickolai Dobrynin
Brian, Certainly, I am well aware of gtkmm. I've actually done serious work in it previously. The library I am currently using, called GtkExtra, is GTK+-based, but I still would like to code my stuff in C++. The framework gtkmm provides is overly and unnecessarily general for what I need. There

Pango-1.14.7 released

2006-10-13 Thread Behdad Esfahbod
Pango-1.14.7 is now available for download at: http://download.gnome.org/sources/pango/1.14/ or ftp://ftp.gtk.org/pub/pango/1.14 ae2e7d06917e745e3d249df4aabc42c1 pango-1.14.7.tar.bz2 195fe5196ce0f0f6678efb7e97d45040 pango-1.14.7.tar.gz This is a follow-up stable release to fix build proble

Re: Combining GTK+ and C++

2006-10-13 Thread Paul Pogonyshev
Nickolai Dobrynin wrote: > I have to admit that gtkmm is so incredibly well-done that you truly feel in > safe haven when you program with it. I'd say that is an overstatement. I have encountered many bugs/missed wrappings in Gtkmm. I agree that it is good, probably very good, but not _incredib

static linking on mingw/msys

2006-10-13 Thread Martin Schmeisser
Hi List, i tried to compile a rather simple Gtkmm app with static linking for Windows platforms (compiling on a win box too). I used Mingw/Msys and the gtkmm-devel and gtk-devel installers from the net. I can compile my app with dynamic linking without any errors : $ g++ polarizer.cpp -o polarize

Re: static linking on mingw/msys

2006-10-13 Thread Michael Torrie
On Fri, 2006-10-13 at 21:10 +0200, Martin Schmeisser wrote: > Hi List, > > i tried to compile a rather simple Gtkmm app with static linking for Windows > platforms (compiling on a win box too). I used Mingw/Msys and the > gtkmm-devel and gtk-devel installers from the net. > I can compile my app wi