Re: Function to list all windows opened by the current process?

2007-12-05 Thread Ed Catmur
On Wed, 2007-12-05 at 22:52 +0100, Peter Hildebrandt wrote: > is there a function I can use to get a list of all windows opened by the > process currently running? The idea is to cleanly terminate all windows > once the application window has been closed and gtk_main returned. > > I have loo

Re: Tooltips for GtkTreeView?

2007-02-22 Thread Ed Catmur
On Thu, 2007-02-22 at 20:50 +0100, Jan-Oliver Wagner wrote: > does anyone established tooltips for the entries in a GtkTreeView? > > I've not found anything ready-to-use in the GTK API nor through a google > search. So, any hint is welcome. You want Kris's super-shiny new tooltips API, which is

Re: gtk-charset questions

2007-02-20 Thread Ed Catmur
On Tue, 2007-02-20 at 13:31 +0100, [EMAIL PROTECTED] wrote: > hi, > > I've got a few questions about which charset gtk uses. > i.e. string = entry.get_text() returns a string, and I would like > to know the charset of the string: > > - which charset does "string" use? > is this locale-dependent

Re: gdk_window_at_pointer and foreign windows

2007-02-19 Thread Ed Catmur
On Mon, 2007-02-19 at 23:55 +, Kevin O'Riordan wrote: > I'm pretty new to the whole GDK programming area. I have a question on > managing foreign windows using GDK. I have a foreign window which I've > "registered" with GDK using gdk_window_foreign_new. However, calling > gdk_window_at_pointer

Re: not enough variable arguments to fit a sentinel?

2007-02-13 Thread Ed Catmur
On Tue, 2007-02-13 at 00:56 -0300, Matí­as Alejandro Torres wrote: > What about this warning > > 181:dialog = gtk_file_chooser_dialog_new (_("Select where to save > contacts."), > 182: NULL, > 183:

Re: Trying to receive MOTIF_WM_MESSAGES using GTK

2007-02-12 Thread Ed Catmur
On Mon, 2007-02-12 at 15:48 -0800, JM wrote: > I'm creating an app using GTK+2.0 but running > within the Motif Window Manager. I have an .Xdefaults > file where I have added a "f.send_msg" entry to add my > own menu option. However, I do not know how to > register and listen for _MOTIF_WM_M

Re: Reparenting an out of process window

2007-02-08 Thread Ed Catmur
On Thu, 2007-02-08 at 13:46 +0300, Al Boldi wrote: > Greetings! > > I have a small problem. On windows I can use SetParent to reparent an out of > process window, by passing it the globally unique window-Handle. > > Is this possible on GTK1/GTK2 respectively? Look at GtkSocket/GtkPlug. Ed __

Re: PROBLEM: bitmap in memory to gtkimage

2007-02-05 Thread Ed Catmur
On Mon, 2007-02-05 at 15:28 +0100, Prest Alessandro wrote: > Hello, > I have a bitmap image loaded in memory which structure is a standard > bitmap structure (BITMAP Info Header). > > I want to display this bitmap in a GDKimage, which routine should I call? > > Is this correct: > > > gdkPix = >

Re: Dynamic creation of GtkMenuBar from GModule

2007-01-30 Thread Ed Catmur
On Tue, 2007-01-30 at 10:12 +0100, Alessandro Oliva wrote: > is it possible to access the variabile of a main program from a dynamic > module ? > > example: > > a menu is created in the main program, a function in one dynamic module > (created with GModule) > call: > > menuitem_test = gtk_men

Re: How to detect the presence of scrollbar on scrolled window.

2007-01-03 Thread Ed Catmur
amol wrote: > Does anyone know how to find out whether a vertical scrollbar is present > on scolled window or not. > I need to detect its presence at runtime. > below is the code which i tried to find out.but it is not working as > expected. > line 3 is always returning false.irrespective of vscrol

Re: Enable/Disable a button and mouse clicks

2007-01-03 Thread Ed Catmur
Gabriele Greco wrote: > I've found that if I disable a button after a click on it > (gtk_widget_set_sensitive(button, FALSE)), and then enable it back after > a timed event or something else occurs (...set_sensitive(button, TRUE) > ), I'm unable to click on the button with the mouse pointer unle

Re: How to set application icon

2006-11-23 Thread Ed Catmur
Carlo Agrusti writes: > [EMAIL PROTECTED] ha scritto lo scorso 23/11/2006 12:25: >>gtk_window_set_default_icon_name("foobar"); >> >> just before gtk_main() and I dropped some png in >> /usr/share/icons/hicolor/48x48/apps/foobar/foobar.png -- but with no >> results. The worse part is that I'

Re: Change an image on a button

2006-11-15 Thread Ed Catmur
Tristan Van Berkom writes: > Guillaume Charhon wrote: >> Thanks, but how can I "ref it or sink it" ? >> > Every widget in gtk+ is an object: > http://developer.gnome.org/doc/API/2.0/gobject/gobject-The-Base-Object-Typ > e.html#GObject Specifically, a GInitiallyUnowned; see http://developer.gno

Re: Change an image on a button

2006-11-15 Thread Ed Catmur
handling for the usual case. If you want to reuse ImageOne you need to ref or sink it yourself. Ed Catmur ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: using gtk in non-gtk apps

2006-09-20 Thread Ed Catmur
On Wed, 2006-09-20 at 11:46 -0400, T wrote: > I haven't seen any documentation or discussion in whether gtk can work > with non-gtk widgets/windows in same application. Is this possible? You need to combine the event loops. Gtk+ uses the GLib event loop, while Motif uses the Xt event loop. The w