Re: locking widgit sizes

2009-04-07 Thread Tristan Van Berkom
On Mon, Apr 6, 2009 at 12:23 AM, mick wrote: > I'm using glade 2.12 to build an interface for a GTK based chat client and > having trouble locking the size of buttons, text entry, etc. widgits. > > I've tried setting the height of the container, the height of the text entry & > the height & width

Simulate a key press event?

2009-04-07 Thread Yu Feng
Dear list, Could anyone help me to redirect a key press event from another application's window to a GtkWidget? My current solution (which works with a lot of warnings) is 1 Create a Gdk Foreign Window on the XID of the to be grabbed window. 2 Add a gdk filter on the foreign gdk window, 3 Grab t

Weird problem with type hint Dock and configure-event.

2009-04-07 Thread Magicloud Magiclouds
Hi, Recently, I found that, if I inherit Gtk::Window class, and set the type hint to dock in initialize, the configure-event could be triggered correctly. But, if I directly use Gtk::Window class, new it, set the type hint to dock, then the configure-event would not be triggered at all. Why it

Re: locking widgit sizes

2009-04-07 Thread Yu Feng
For a reasonable size try gtk_box_pack_start() with expand = false and fill = false. Is seems to me that the problem your were facing is because you had expand = true and fill = true for the packed child button. If you use gtk_widget_set_size_request, please make sure the UI is still sane after ch

Re: locking widgit sizes

2009-04-07 Thread Ardhan Madras
> When GTK3 restores the code generator I'll look at updating. C source is a > lot easier to manage than thousands of lines of XML No, Glade will not back to generate user code because it is not glade's purpose, there are libglade or GtkBuilder to working with glade's xml file. > Buttons that ju

Re: How do I unsubscribe??

2009-04-07 Thread Guy Rouillier
John Emmas wrote: How do I unsubscribe from this list? I went to this web page:- http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list Correct site, listed at the bottom of every email message. which contains a section where new users can subscribe. However, that section doesn't allow

Re: Speeding Up libglade

2009-04-07 Thread Tristan Van Berkom
On Tue, Apr 7, 2009 at 1:07 AM, arne wrote: > Hello, I am not sure if this solution will save time, > If I understood everything right, the xml-parser of libglade must parse in > both cases. > > but isn't it possible to store the output of glade_xml_new() to a file and > just load it to memory at

Re: Sensitive child in insensitive parent?

2009-04-07 Thread Larry Reaves
On Tue, 2009-04-07 at 16:39 +0200, Christoph Schmeding wrote: > Hello, > > I have a "child" widget, which is packed together with a lot of > "siblings" into a "parent" container. > Now I want to set the parent with all the siblings insensitive, but > keeping my "special child" sensitive. > > Ca

Sensitive child in insensitive parent?

2009-04-07 Thread Christoph Schmeding
Hello, I have a "child" widget, which is packed together with a lot of "siblings" into a "parent" container. Now I want to set the parent with all the siblings insensitive, but keeping my "special child" sensitive. Calling gtk_widget_set_sensitive(parent, FALSE); gtk_widget_set_sensitive(chil

Re: slowness in getting events

2009-04-07 Thread Efraim Yawitz
On Tue, Apr 7, 2009 at 6:05 AM, Dov Grobgeld wrote: > Since hex characters only has an alphabet of 16 characters, you can draw > these once into separate pixbufs, and then use gdk_pixbuf_copy_area() to > draw the prerendered characters to the screen. If you have the memory you > can e.g. create 2

Re: GtkTextView drag and drop problems

2009-04-07 Thread Tor Lillqvist
> When dragging the Firefox contents over "Clipboard Spy" tool, I notice that > data formats include "CF_TEXT" and "text/html". OK, so this is on Windows, presumably, as you talk about CF_TEXT? You should have said so already in the beginning of your message. Cross-application drag and drop is n

GtkTextView drag and drop problems

2009-04-07 Thread Miroslav Rajcic
I am trying to allow GtkTextView widget accepting drop from Firefox, both dropping the URL from address bar, and selected text from some page. I am stuck, so I could use some tips. I've initialized my text view as a drop target with: gtk_drag_dest_add_text_targets(GTK_WIDGET(textview1)); gtk_d

How do I unsubscribe??

2009-04-07 Thread John Emmas
How do I unsubscribe from this list? I went to this web page:- http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list which contains a section where new users can subscribe. However, that section doesn't allow me to unsubscribe. Further down the page there's an option for unsubscribing - b