Checking if a program in path

2005-05-16 Thread Colossus
Hi, I'm building an app with the GTK for the first time, I'm just moving the first steps. I need to know if a program is available, so I thought to try open the file with the -e flags, but maybe there is already something inside glib ?? -- Colossus Cpsed, a Linux OpenGL 3D scene editor

Re: Checking if a program in path

2005-05-16 Thread David Necas (Yeti)
On Mon, May 16, 2005 at 08:40:03AM +0200, Colossus wrote: I need to know if a program is available, so I thought to try open the file with the -e flags, but maybe there is already something inside glib ?? Maybe you are looking for g_find_program_in_path():

Re: GLib-GObject-CRITICAL debugging

2005-05-16 Thread Daniel Piccoli
Thanks all, I have implemented all suggestions including the idea of having a separate debug installation of gtk. gdb now shows results in the detail required including references to my files. On Sat, 2005-05-14 at 18:15, Stefan Kost wrote: Hi Daniel, what I do is to have the same version of

Is there a vector class in in GTK ?

2005-05-16 Thread Colossus
Hi, I'm programming a frontend in C with GTK. Is there a vector like class available with GTK or glib ? -- Colossus Cpsed, a Linux OpenGL 3D scene editor http://cpsed.sourceforge.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: How to get GtkWindow associed with XID?

2005-05-16 Thread Owen Taylor
On Sun, 2005-05-15 at 15:56 +0200, jacktm wrote: Owen Taylor wrote: If you need to embed a GTK+ widget into a non-GTK+ application you'll need to implement the embedder side of the XEMBED protocol. http://www.freedesktop.org/Standards/xembed-spec Regards,

Re: gtk_clist_append

2005-05-16 Thread Daniel Brockman
srinivas [EMAIL PROTECTED] writes: thanks for the valuable suggestion. in the same way i have one more query. i am developing gui with glade and c. Are you using libglade? Because code generation is deprecated. i have a file selection widget Those are more-or-less deprecated; use

Re: file selection

2005-05-16 Thread Antonio Gomes
why don't you take a look at the gtk_file_chooser's source code ? regards On 5/12/05, srinivas [EMAIL PROTECTED] wrote: hi; i used filew = gtk_file_selection_new (Folder Selection); gtk_file_selection_set_filename (GTK_FILE_SELECTION (filew), ***.png); gtk_file_selection_get_filename

gtk_window_set_default_icon_list()

2005-05-16 Thread Freddie Unpenstein
I've gone looking through the API, and I'll be stuffed if I can figure something out... As I understand it, you're supposed to load the icons into GdkPixbuf's, store them in a GSList, and then feed that list to the gtk_window_set_default_icon_list() function. But what then? Does the

How to disable gtk-doc when building from CVS source

2005-05-16 Thread Travis Spencer
To build the latest version of gtk+, is gtk-doc mandatory? I know that it can be turned off by passing the `--disable-gtk-doc' flag to the configure script, but getting to that point doesn't seem possible without gtk-doc. Sure I can comment out the test for it in autogen.sh, but then I get other

Re: dbus glib bindings: deriving from G_TYPE_BOXED, parameterized types

2005-05-16 Thread Matthias Clasen
On Mon, 2005-05-16 at 15:16 +0200, Tim Janik wrote: On Fri, 13 May 2005, Matthias Clasen wrote: On Fri, 2005-05-13 at 13:01 -0400, Colin Walters wrote: As I just pointed out to Colin, using derivation to model the relation between generic types and their specializations is not really

GTK+ team irc meeting

2005-05-16 Thread Matthias Clasen
The meeting is intended for the GTK+ team, but everybody is welcome to come and listen. The meeting logs will be posted on the GTK+ website (http://www.gtk.org/plan/meetings). Place: irc.gnome.org:#gtk-devel Time: 21:00 UTC (16:00 EDT), Tuesday May 17 Matthias

Re: dbus glib bindings: deriving from G_TYPE_BOXED, parameterized types

2005-05-16 Thread Owen Taylor
On Mon, 2005-05-16 at 15:16 +0200, Tim Janik wrote: On Fri, 13 May 2005, Matthias Clasen wrote: On Fri, 2005-05-13 at 13:01 -0400, Colin Walters wrote: As I just pointed out to Colin, using derivation to model the relation between generic types and their specializations is not really

Re: dbus glib bindings: deriving from G_TYPE_BOXED, parameterized types

2005-05-16 Thread Colin Walters
[I'm dropping dbus@ from the CC; however I just sent an updated patch there which may be interesting context for this] On Mon, 2005-05-16 at 15:22 +0200, Tim Janik wrote: is this type meant to be abstract (i.e. you'd only use boxed instances which are truly parameterized)? Yeah. 1) Type

Re: Global motion events

2005-05-16 Thread Federico Mena Quintero
On Sat, 2005-05-14 at 13:49 +1000, Russell Shaw wrote: Why doesn't every widget have an X window? Read this: http://primates.ximian.com/~federico/misc/gtk-drawing-model/ It explains this and other things. Federico ___ gtk-devel-list mailing list

query on GTK module for python

2005-05-16 Thread Jagadish K , Bangalore
Hi, I require some help. On Linux system import gtk import gobject is working fine, where as it's giving error ImportError: No module named gtk No module named gobject on windows. Kindly let me know any library modules required to be installed also the site map. With Regards, Jagadish.K

gtkwidget grab focus

2005-05-16 Thread Renato Araujo
Hi, I need make the widget grab focus on click. I add event GDK_FOCUS_CHANGE_MASK on widget and set property can-focus to TRUE, but not work. ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list

Anti-Aliased 2D drawing

2005-05-16 Thread Scott Robert Ladd
I'm working on a program that draws relatively simple diagrams -- involving lines of different styles and a few arcs -- on top of a base PNG image. Doing this using the standard GTK facilities isn't difficult, but the result is... well, rather rough (jagged, actually). As I understand it, Gtk+

Re: Anti-Aliased 2D drawing

2005-05-16 Thread John Gill
Not exactly what you asked for (and no use at all if you're not using python), but matplotlib: http://matplotlib.sourceforge.net/ is great for this sort of thing. John Scott Robert Ladd wrote: Anti-Aliased 2D drawing I'm working on a program that draws relatively simple

Re: gtkwidget grab focus

2005-05-16 Thread Michael Ott
Hello Renato! I need make the widget grab focus on click. I add event GDK_FOCUS_CHANGE_MASK on widget and set property can-focus to TRUE, but not work. gtk_widget_grab_focus(GtkWidget *widget) CU Michael --

Re: Anti-Aliased 2D drawing

2005-05-16 Thread Paul Davis
I'm working on a program that draws relatively simple diagrams -- involving lines of different styles and a few arcs -- on top of a base PNG image. Doing this using the standard GTK facilities isn't difficult, but the result is... well, rather rough (jagged, actually). As I understand it, Gtk+

Re: Anti-Aliased 2D drawing

2005-05-16 Thread Scott Robert Ladd
Paul Davis wrote: the only downside to the Canvas is the fact that nobody really plans to support it as-is long term. I'm likely to use GnomeCanvas immediately, just to get the prototypes running, then move over to somethign else later. Will that something else be GTK+/Cairo? I get that

Re: Anti-Aliased 2D drawing

2005-05-16 Thread Roger Leigh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Scott Robert Ladd [EMAIL PROTECTED] writes: I'm working on a program that draws relatively simple diagrams -- involving lines of different styles and a few arcs -- on top of a base PNG image. Doing this using the standard GTK facilities isn't

Re: Anti-Aliased 2D drawing

2005-05-16 Thread Scott Robert Ladd
Roger Leigh wrote: Have you taken a look at libgnomecanvas? Despite the name, it only depends on GTK+, and it allows anti-aliased line drawings of arbitrary size. I don't know, but I suspect it will be replaced by, or depend upon, Cairo at some point, but it's mature and usable right now.

Re: Anti-Aliased 2D drawing

2005-05-16 Thread Roger Leigh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Scott Robert Ladd [EMAIL PROTECTED] writes: Roger Leigh wrote: Have you taken a look at libgnomecanvas? Despite the name, it only depends on GTK+, and it allows anti-aliased line drawings of arbitrary size. I don't know, but I suspect it will

underlined text with pango_win32_render_layout

2005-05-16 Thread Marco
I am trying to send underlined text to the printer in windows xp with the following code: StartDoc(printer_hdc, docInfo); StartPage(printer_hdc); PangoLayout *m_pLayout = pango_layout_new(pango_win32_get_context()); pango_layout_set_markup(m_pLayout, utest/u ,-1);

Re: Anti-Aliased 2D drawing

2005-05-16 Thread Dov Grobgeld
There is an example in the demos directory of the libgnomecanvas sources. You may also want to have a look at the documentation for the GGAD book, which, although for Gnome-1 still has some valid code for the gnome canvas. Look for the create_canvas_items() function at:

filechooser dialog question...

2005-05-16 Thread Micah Carrick
I have a file chooser dialog which i use to open and save files. However, I can't figure out how to make the Open button change to Save when I'm using it with GTK_FILE_CHOOSER_ACTION_SAVE. Any help? Micah ___ gtk-list mailing list gtk-list@gnome.org

Re: underlined text with pango_win32_render_layout

2005-05-16 Thread Owen Taylor
On Mon, 2005-05-16 at 22:34 +0200, Marco wrote: I am trying to send underlined text to the printer in windows xp with the following code: StartDoc(printer_hdc, docInfo); StartPage(printer_hdc); PangoLayout *m_pLayout = pango_layout_new(pango_win32_get_context());

Re: Newbie -cross compile GTK for ARM - ./configure problems - LD not finding libc library

2005-05-16 Thread Antonio Gomes
Hi Clive, I suggest you another way to perform cross compile in general using apropiated cross compilation tools (or toolchains). One of the best is the scratchbox www.scractchbox.org. Using it , you can compile your source to any target you want. A debian-based rootstrap is also available at

Re: Newbie -cross compile GTK for ARM - ./configure problems - LDnot finding libc library

2005-05-16 Thread Clive Chapman
Hi Antonio I have been looking at the scratchbox solution - It does seem like a really good solution. The only thing is I already have a LINUXdistribution and set of compiler tools for the hardware I'm using. It just generating the required GTK libraries I'm struggling with. You asked if I

Re: Newbie -cross compile GTK for ARM - ./configure problems - LDnot finding libc library

2005-05-16 Thread Antonio Gomes
Hummm ... now I got it ... Just to open my mind , when you execute 'ls -la usr/local/arm-linux/lib/libc.so.6', what is showed out !? btw, If i'm not making a mistake, this library is the glibc library, which is the responsible to provide and perform system calls . regards On 5/16/05, Clive

Gtk2::Table

2005-05-16 Thread Louis-Xavier Storme
Hello, sorry to bother you, can anyone tell me how to retrieve a widget at a fixed position (col, row) from a Gtk2::Table widget ? thank you louis-xavier storme ___ gtk-perl-list mailing list gtk-perl-list@gnome.org

Re: Timeout

2005-05-16 Thread Torsten Schoenfeld
On Mon, 2005-05-16 at 17:51 +0300, Emanoil Daniel Carlan wrote: Hi, can anyone tell me how to set up / disable a timeout? I know in GTK it works with $timer = Gtk-timeout_add( $nr, \Smth ); I just don't know how to do it in Gtk2... It's Glib::Timeout-add($interval, \sub) in Gtk2. See

Re: Different graphing options

2005-05-16 Thread ofey aikon
I am looking for excel-like charts for a business application. Therefore no immediate need for math functions etc. One functionality I would love is a 'tool-tip' that would pop-up with the value of the data-point when the user moves the mouse on a data point (like excel). Other than that,