Re: focus line pattern around gtk event box

2011-12-20 Thread Andrew Cowie
On Tue, 2011-12-20 at 09:25 +0100, David Nečas wrote: Using gtk_paint_focus() in the draw handler... Deprecated now, apparently; refers to http://developer.gnome.org/gtk3/3.3/GtkStyleContext.html#gtk-render-focus instead. AfC Sydney ___

Re: GTK 3 support status

2011-12-06 Thread Andrew Cowie
On Tue, 2011-12-06 at 17:47 +0900, Tristan Van Berkom wrote: gtk_widget_set_size_request() should still succeed with the expected behaviour of setting the minimum size of a widget, So, does it do so for GtkLabel? ie, is it acceptable to call it? [this thread has become a bit confusing] AfC

RE: Valgrind questions

2011-11-23 Thread Andrew Cowie
On Wed, 2011-11-23 at 18:07 +, Thomas Harty wrote: I'll see if I can narrow down exactly what's causing this... Still, looks like you're pretty close to a good suppression file. Where should we install it? /usr/share/suppression/glib.sup /usr/share/suppression/gtk.sup

Re: pango -- prevent line break?

2011-10-27 Thread Andrew Cowie
On Wed, 2011-10-19 at 16:28 -0400, Allin Cottrell wrote: I have some text I'm displaying via pango and while in general I want to allow automatic line breaks, I want to prevent line breaks from occurring in certain contexts. Specifically, what I'm trying to avoid is the breaking of

Re: Valgrind questions

2011-10-07 Thread Andrew Cowie
On Tue, 2011-09-20 at 12:48 +0100, jcup...@gmail.com wrote: Ooop, thanks. I hadn't realised but I'd not updated the version on the website for a while. I've put my current one up now and it includes a thing for g_type_add_interface_static(), as you also found. Might it be a good idea to put

Re: interested in gtk+ project development

2011-02-15 Thread Andrew Cowie
On Tue, 2011-02-15 at 20:47 -0800, Patrick Noble wrote: My names Patrick Noble, and was hoping for a few pointers... I am interested in learning about and helping out in a development project The best thing to do is get involved in a project that _uses_ GTK. Pick something on the GNOME desktop

Re: Memory leaks

2011-02-09 Thread Andrew Cowie
On Wed, 2011-02-09 at 10:44 +0200, Tor Lillqvist wrote: And anyway, this OMG GTK+ leaks memory discussion has been had several times already over the years. This parrot is dead. True. But it is a shame that there isn't a gtk_unload_no_I_mean_really_unload_honest() function that we could use -

Re: GTK Logging

2010-12-05 Thread Andrew Cowie
On Sun, 2010-12-05 at 14:41 -0500, Tim Corio wrote: I'm using g_debug(...) in my application. Is there a way to turn off all debug messages? I suppose you could call g_log_set_default_handler() and replace the default handler with a local custom one which would either ditch all logged messages

Re: Creating an aggregating GtkContainer

2009-11-18 Thread Andrew Cowie
On Wed, 2009-11-18 at 22:22 +0100, Per Hermansson wrote: The user will then probably experience some flicker as containers are repainted and widgets moved. As an aside [and not otherwise commenting on what you're trying to achieve], Evolution's preferences dialog has for years behaved somewhat

Re: How to set a window filled the whole screen when we start the window?

2009-05-25 Thread Andrew Cowie
On Mon, 2009-05-25 at 14:20 +0800, donglongchao wrote: I want to know that when I start a window,how can I set it's default size to fill the whole screen? Sounds like gtk_window_maximize() is what you want. http://library.gnome.org/devel/gtk/stable/GtkWindow.html#gtk-window-maximize AfC Sydney

Re: Status Indication GUI development using GTK++

2009-02-19 Thread Andrew Cowie
On Thu, 2009-02-19 at 02:41 -0800, Adeel Malik wrote: As I would be starting the GTK+ development on Fedora Core 6 Linux machine Since no one else said it, I'll note that FC6 is kinda getting a bit long in the tooth. If at all possible, you really want to be using the latest release of your

Re: How to use Quarks?

2009-01-04 Thread Andrew Cowie
On Sat, 2009-01-03 at 10:40 -0500, Yu Feng wrote: If you are accessing data member(g_object_set_data) frequently you could use quarks to accelerate the looking up process(g_object_set_qdata). On Sun, 2009-01-04 at 14:41 +0200, Stefan Kost wrote: If you use a hashtable with strings as keys, a

Re: programmatic screenshots?

2008-12-03 Thread Andrew Cowie
On Wed, 2008-12-03 at 12:19 +0200, Stefan Kost wrote: do you have it in a form, where you have one *.c and one *.h file with lots of static functions and one public function More or less. It's in the Java bindings as a function[1] that returns a Pixbuf, as in: pixbuf =

Re: programmatic screenshots?

2008-12-02 Thread Andrew Cowie
On Mon, 2008-12-01 at 08:51 -0800, Garth's KidStuff wrote: I'm runnign a Gtk++ app under ubuntu 8.04 and I'd liek to take a screenshot from inside the app. Any hints? We used an adaptation of the gnome-screenshot code in gnome-utils's gnome-screenshot/gnome-screenshot.c It is *very * voodoo

Re: questions on gtk_entry gtk_text_view

2008-11-30 Thread Andrew Cowie
On Sun, 2008-11-30 at 18:04 +0800, Gregory Hosler wrote: I have a gtk_entry field,and i wish to make use of gtkspell. Perhaps try SexySpellEntry from libsexy? http://www.chipx86.com/w/index.php/Libsexy#SexySpellEntry (it's a shame that the conventional way to add spell checking to a

Re: XML and treeviews

2008-07-24 Thread Andrew Cowie
On Thu, 2008-07-24 at 10:48 +0200, Gabriele Greco wrote: root o node | | | --subnode/ | -/node Couldn't you just add another row in the TreeStore for the closing tag? If root is 0 and node is 0:0, then inserting a row after node with parent root would be 0:1. AfC Sydney

Re: Screenshot of a GtkWindow

2008-07-23 Thread Andrew Cowie
On Wed, 2008-07-23 at 13:32 +0200, Gabriele Greco wrote: I need to make a screenshot of a GtkWindow from the program itself We used code from gnome-utils's gnome-screenshot/gnome-screenshot.c and gnome-screenshot/screenshot-utils.c to add a capture capability to java-gnome (we wanted window

Re: Freeze/Thaw a GtkWidget

2008-03-28 Thread Andrew Cowie
On Tue, 2008-03-25 at 22:24 -0400, Evan Charlton wrote: I'm curious how one would go about freezing (stopping UI updates) and thawing (applying and resuming UI updates) a GtkWidget, as well as any children of it. You might have some success if you use the low level mechanism:

Re: Testing keyboard state

2008-01-15 Thread Andrew Cowie
On Tue, 2008-01-15 at 20:17 +, John Franklin wrote: I've just started using GTK and Glade to develop a small app I want to determine if the Ctrl key is also pressed. GdkModifierType. When the 'key-press-event' signal or 'key-release-event' signal are emitted, the handler you hookup

Re: make a window without the title bar

2007-12-18 Thread Andrew Cowie
On Fri, 2007-12-14 at 20:52 +0800, Binary Chen wrote: I know it is a feature of window manager, but is there any portable way in GTK+ to do this? In C... gtk_window_set_decorated(GTK_WINDOW(window), FALSE); or Python... window.set_decorated(False); or Java...

Re: Date and time

2007-10-24 Thread Andrew Cowie
On Wed, 2007-10-24 at 11:19 +0200, Olivier Delhomme wrote: I'm looking for a function that will return a date and time as a gchar * in a format that is made accordingly to the user preferences. The traditional way of custom formatting dates on Unix has long been strftime(); the formatting

Re: Spontaneous background colors in treeview

2007-10-10 Thread Andrew Cowie
On Wed, 2007-10-10 at 19:45 -0600, Jeffrey Barish wrote: I believe that the manual is wrong when it says that an arrow appears. One most certainly does appear when you click on the header to sort. Do you have gtk_tree_view_column_set_headers_visible() set to true? That's where the arrow shows

Re: Xlib: unexpected async reply (sequence #####)!

2007-08-06 Thread Andrew Cowie
On Sat, 2007-08-04 at 22:07 +0800, Gregory Hosler wrote: That threads_enter/threads_leave doesn't look so bad, since I'm not doing a lot of gtk withing my thread. Looks like it might be the way to go for me. Beware that you need to ensure that you call gdk_threads_enter() before calling

Re: my summary on how to use gtk with threads

2007-05-23 Thread Andrew Cowie
On Sun, 2007-05-20 at 12:15 +0200, Felix Kater wrote: here is my short summery of how to use gtk with threads Ironically, your email rolled in Monday right after I had managed to come up with most of the same information independently. I just blogged about my own findings which are fairly close

Re: Accessing a GtkTable's children.

2007-04-07 Thread Andrew Cowie
On Fri, 2007-04-06 at 23:45 -0700, Craig Pemberton wrote: GList *children = g_list_first(parent-children); For starters, you want gtk_container_get_children() From there, you might also double check you're using the GList API properly. AfC Sydney