Re: Spell checking in GIO

2013-10-08 Thread Andrew Cowie
On Mon, 2013-10-07 at 22:38 +0200, Sébastien Wilmet wrote: The first step is to wrap enchant For what it's worth I liked working with Enchant a few years back. It seemed to be a good abstraction. AfC Sydney ___ gtk-devel-list mailing list

Re: Glib: AM_GLIB_GNU_GETTEXT

2012-09-16 Thread Andrew Cowie
On Sat, 2012-09-15 at 13:35 -0400, Matthias Clasen wrote: If you want to use intltool, you should probably remove the GETTEXT macros. intltool is a sort-of wrapper around xgettext which interferes with gettext's own way of setting up po/. So, sorta off topic, but what should we [recommend

Re: GTK+ meetup at Guadec

2012-08-02 Thread Andrew Cowie
On Thu, 2012-08-02 at 07:21 +0200, Olav Vitters wrote: Convince chpe that it is ok to have his comments indexed and I'll gladly have Bugzilla indexed. Sorry, don't know what the context of that is (though if it's about privacy it sounds rather soft given that, robots.txt or not, the comments

Re: GTK+ meetup at Guadec

2012-07-28 Thread Andrew Cowie
On Sat, 2012-07-28 at 15:30 +0200, Matthias Clasen wrote: - We want to discuss major API proposals or wishes (eg new widgets) on this mailing list, instead of just in bugzilla. That's terrific. While I wouldn't say that bugzilla not in the public record or anything like that, the fact that it

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: RFC: Model-View-Controller

2011-11-10 Thread Andrew Cowie
On Wed, 2011-11-09 at 19:12 +0100, Benjamin Otte wrote: The first thing I want to do is to create View objects. ... In Clutter terms this is what ClutterActor is. ... The second thing I want to is create Controller objects. ... The Clutter equivalent here is ClutterAction. How about just

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: GtkApplication and argc/arv

2011-03-08 Thread Andrew Cowie
On Tue, 2011-03-08 at 12:06 +0100, Murray Cumming wrote: I would very much like some reasoning to point people at when I tell them to use GtkApplication. I will not just hand-wave and say that people say it's good. GtkApplication is the GNOME 3.0 replacement for LibUnique, right? If so, then

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: migration document missing

2011-02-10 Thread Andrew Cowie
On Thu, 2011-02-10 at 22:24 +0100, Tadej Borovšak wrote: http://library.gnome.org/devel/gtk3/unstable/gtk-migrating-2-to-3.html Any reason not to have the URLs at .../gtk/3.0/... ? AfC Sydney ___ gtk-devel-list mailing list gtk-devel-list@gnome.org

Re: migration document missing

2011-02-10 Thread Andrew Cowie
On Thu, 2011-02-10 at 19:47 -0500, Shaun McCance wrote: On Fri, 2011-02-11 at 10:00 +1100, Andrew Cowie wrote: On Thu, 2011-02-10 at 22:24 +0100, Tadej Borovšak wrote: http://library.gnome.org/devel/gtk3/unstable/gtk-migrating-2-to-3.html Any reason not to have the URLs at .../gtk

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: Add GtkRadioGroup?

2010-10-29 Thread Andrew Cowie
On Thu, 2010-10-28 at 22:38 +0200, Alexander Larsson wrote: One thing I remember being really confused about when learning gtk+ is the GSList * usage for the group in GtkRadioButton. We have added some scaffolding now that makes this somewhat better, but whats the chance of actually fixing

Re: Add GtkRadioGroup?

2010-10-29 Thread Andrew Cowie
On Fri, 2010-10-29 at 07:02 -0400, Paul Davis wrote: the RadioGroup has no real semantics or methods other than to collect a set of RadioButtons into the same group as they are created. does the java one add other functionality to the RadioGroup? Yeah., actually. Vreixo came up with the idea

Re: pixbuf-cairo_surface_t conversion

2010-09-03 Thread Andrew Cowie
On Thu, 2010-09-02 at 19:24 -0400, Havoc Pennington wrote: We deprecate get_pixels() which is the only call that can force the old-style representation to be created. If you do use get_pixels(), what's going to happen is... Deprecate¹ implies removal at either GTK 3.0 or GTK 4.0, right? So I

Re: pixbuf-cairo_surface_t conversion

2010-09-02 Thread Andrew Cowie
On Thu, 2010-09-02 at 13:29 -0400, Havoc Pennington wrote: Each pixbuf could keep a cairo_surface_t which just pointed to the pixbuf pixels and that cairo_surface_t would be used in paint() or for other compositing/scaling/etc. kind of operations. Are you thinking of the loaders populating an

Re: gtk_widget_draw()

2010-08-29 Thread Andrew Cowie
On Thu, 2010-08-26 at 15:13 -0500, Federico Mena Quintero wrote: On Thu, 2010-08-26 at 12:35 -0400, Behdad Esfahbod wrote: Just keep in mind that it's very normal for text ink to leak out of the allocation area. So even if the draw-border property is removed, we should eventually figure

Re: gtk_widget_draw()

2010-08-08 Thread Andrew Cowie
On Mon, 2010-08-09 at 02:07 +0200, Benjamin Otte wrote: So, that's a rough list of ideas I have currently. I have no idea if I get all of this done for 3.0 and in what order I'm going to tackle these problems It all sounds utterly brilliant. ++ Changing the object hierarchies is a bit of a

Type checking

2010-03-17 Thread Andrew Cowie
In a previous thread about sealing accessors and how that means more type checking, On Wed, 2010-03-17 at 17:10 +, Emmanuele Bassi wrote: this might be the kick in the arse needed to get type checking down to a minimal cost We have observed in the past that the type checking calls are

Re: Less GdkWindows in the API

2010-01-24 Thread Andrew Cowie
On Sun, 2010-01-24 at 13:13 +0100, Murray Cumming wrote: I have always disliked how GTK+'s API often leaks the concept of X windows, often called just windows, by which a GdkWindow is usually implied. That's obviously confusing to people who think of windows as top-level application windows,

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: Calling gtk code from two different threads

2009-11-12 Thread Andrew Cowie
On Tue, 2009-11-10 at 11:13 +, Raja Mukherji wrote: I have a problem No doubt. But you're on the wrong list. Use gtk-list to ask questions about developing *with* the library. This mailing list is for people hacking *on* the library.¹ where I have to call gtk code, including two

Re: Thumbnailing service project; opinions, suggestions?

2009-10-20 Thread Andrew Cowie
Mark, On Mon, 2009-10-19 at 16:32 +0200, Mark wrote: on school i study ... So this project, described in depth below... Keep in mind that contribution to an open source project doesn't have to be bounded by school projects or an institution's academic calendar; you are welcome to continue

Re: A tale of waiting

2009-06-24 Thread Andrew Cowie
On Wed, 2009-06-24 at 10:37 -0400, Matthias Clasen wrote: Yeah, doing mime type detection async in parallel to the loading has some downsides too. It is somewhat disconcerting if the icons change after the fact... Maybe when we don't know what the type is, and are finding out async, we could

Re: GTypeModule and threads

2009-06-15 Thread Andrew Cowie
On Mon, 2009-06-15 at 19:17 +0200, Jannis Pohlmann wrote: is GTypeModule supposed to be thread-safe? I don't think so. [The only thing I know about this topic comes from comments 3-5 on http://bugzilla.gnome.org/show_bug.cgi?id=534573#c3 but I certainly trust Matthias to know what he's talking

Re: cairo surface from GdkPixmap

2009-06-13 Thread Andrew Cowie
On Sat, 2009-06-13 at 19:50 -0700, Michiel de Hoon wrote: I am looking for a way to obtain a Cairo surface from a GdkPixmap. You're probably looking for gdk_cairo_create() or gdk_cairo_set_source_pixmap(), depending on what exactly you're up to.

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: Decorating scales

2009-01-06 Thread Andrew Cowie
On Tue, 2009-01-06 at 00:31 -0500, Matthias Clasen wrote: Over the Christmas vacation, I spent a day adding marks to scales. I can't speak to the implementation, but this is a lovely initiative. I've long wished for something like this. ++ As a related matter; do you think that there would be

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: g_assert() semantics is changed without announce

2008-09-25 Thread Andrew Cowie
On Thu, 2008-09-25 at 13:06 -0400, Matthias Clasen wrote: The important part of the assert semantics are: if the assertion fails, the program aborts. If you are using assertions in a way that make it important where or how the message is reported In the Java bindings we trap the log

Re: When to call g_thread_init(), again...

2008-08-15 Thread Andrew Cowie
On Fri, 2008-08-15 at 01:51 -0700, Brian J. Tarricone wrote: On Fri, 15 Aug 2008 10:58:59 +0300 Tor Lillqvist wrote: ... Should ORBit2 g_error() out if it notices that it wants to use threads but g_thread_init() has not been called, instead of calling it itself? Yes to that last bit. If

Re: When to call g_thread_init(), again...

2008-08-15 Thread Andrew Cowie
On Fri, 2008-08-15 at 19:09 +0200, Milosz Derezynski wrote: Also, is there any specific reason *not* to call g_thread_init() in glib's init routine by default anyway? Any penalties? As was pointed out, there's no GLib init routine, but from the standpoint of a prominent library that we use 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: About GTK+ 3.0 and deprecated things

2008-07-16 Thread Andrew Cowie
On Wed, 2008-07-16 at 23:03 -0400, Paul Davis wrote: if its API compatible, why a change in major version numbers? As I understand it, because: a) they're removing all the deprecated stuff, and b) the API sill start changing after 3.0 in ways that won't be compatible with 3.0 All good. AfC

Re: GTK 3.0: an app developer's view

2008-06-19 Thread Andrew Cowie
On Tue, 2008-06-17 at 10:05 +0100, Martyn Russell wrote: I just put together quickly a few lists of ALL things marked as deprecated right now. That was quite useful. We already got rid of things that caught our attention and/or have (deprecated ...) lines already in the .defs data, but this

Re: My commit to glib and gtk+ - Bug #503071

2008-05-21 Thread Andrew Cowie
On Wed, 2008-05-21 at 08:46 +0200, Jaap A. Haitsma wrote: Suggestion (Patch day) --- Would it be an idea to organize a Glib/Gtk+ patch day, say once a month That seems a reasonable idea. And more forward looking than bug day. I certainly don't have much interest in bug days

Re: proposal: substantial change to keyboard-driven action handling

2008-05-06 Thread Andrew Cowie
On Tue, 2008-05-06 at 15:31 -0400, Paul Davis wrote: I consider GtkAction to be a very suitable starting (and perhaps end) point for the kind of change I am proposing. That sounds quite sensible. We've been increasingly focused on GtkAction as the rendezvous point for concentrating GUI

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: Move to LGPL3

2008-03-15 Thread Andrew Cowie
This topic was discussed recently on foundation-list. http://mail.gnome.org/archives/foundation-list/2008-March/msg00032.html In summary, attempting to relicence the library would be, in practise, impossible. No further benefit is gained by discussing this topic further. AfC Berlin

Re: GtkBuilder bug?

2008-02-27 Thread Andrew Cowie
On Wed, 2008-02-27 at 22:20 +, Ross Burton wrote: I don't believe that any data passed to a library should result in a fatal warning, surely a GError return would be a far better option here. Isn't GError for conditions that can be reported to the *user*, and that said user can do something

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: elastic tabstops implemented for GTK

2007-09-24 Thread Andrew Cowie
On Wed, 2007-09-19 at 08:14 +0200, Nick Gravgaard wrote: http://nickgravgaard.com/elastictabstops/#gedit Nick, does convert files that use spaces for alignment mean something along the lines of when reading a file that uses spaces for alignment,

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: GtkBuildable type resolver

2007-06-09 Thread Andrew Cowie
On Thu, 2007-06-07 at 10:45 -0300, Johan Dahlin wrote: Do you have one list per binding, or one big metadata database which shared between all third party libraries? It's just one hash table. It's handled transparently (and internally) as a resource within the jar file we turn out. But no, it

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

Re: Multimedia widgets in GTK+?

2007-03-21 Thread Andrew Cowie
On Thu, 2007-03-01 at 23:14 +, Bastien Nocera wrote: On Thu, 2007-03-01 at 19:39 +, Ross Burton wrote: Isn't this gtk_range_set_fill_level() (new in GTK+ 2.12)? Yes it is. We'd still need a different looking GtkScale though, to allow for the different behaviour on left-click.

Re: gvfs status report

2007-02-20 Thread Andrew Cowie
On Fri, 2007-02-16 at 09:13 -0500, Dimi Paun wrote: On Fri, February 16, 2007 02:45, Alexander Larsson wrote: [ about new API names ] I'd like to second this -- it's the smart thing to do IMO. Other well known APIs (Java, .NET, Win32) use a similar naming pattern, and despite it's functional