Re: notifications in gtk

2012-11-07 Thread Steve Frécinaux
On 11/06/2012 04:39 PM, Olav Vitters wrote: Would a Qt/KDE application be able to show notifications as well? Would this require freedesktop.org work, or is the intention to keep this limited to GNOME shell implementation? Also, what about Gnome/Gtk+-based applications on alternative desktop

Re: [introspection] struct without copy constructor

2012-01-31 Thread Steve Frécinaux
On 01/31/2012 04:22 PM, Picca Frédéric-Emmanuel wrote: so my question is 'simple' what is the recommanded way if I want to add a struct without copy constructor. You don't. If you wish to do so, then you might have two situations: - refcounted structures: then add a copy function which is

Re: [introspection] struct without copy constructor

2012-01-31 Thread Steve Frécinaux
On 01/31/2012 04:57 PM, Picca Frédéric-Emmanuel wrote: In that case the copy method should return a value, what about NULL ? You should rather return the object itself (same for the refcount case). Glib doesn't have to know what you return is actually the same instance as before. If

Re: [introspection] struct without copy constructor

2012-01-31 Thread Steve Frécinaux
On 01/31/2012 06:06 PM, Picca Frédéric-Emmanuel wrote: I tryed with the object himself but, I got a double free error, at the end. the binding do not check that object are identical (save adress) and try to free it two times. Is it a bug ? This is because you have a free function which...

Re: RFC: UI design

2012-01-09 Thread Steve Frécinaux
On 01/09/2012 06:25 PM, Benjamin Otte wrote: Keep in mind that those kiosk or other embedded applications themselves are the platform though. So for those cases, the distinction does not matter. It doesn't even matter if you have multiple applications if you still control the design of all of

Re: GMenuModel has landed

2011-12-09 Thread Steve Frécinaux
On 12/09/2011 01:00 AM, Ryan Lortie wrote: We may add other types of menus in the future. A jumplist/dock menu comes to mind. Do you plan on/Would the current Gmenu infrastructure allow something like the mockups in [1] ? Especially, menus like the Mega-menu mockup for EoG adding a dropdown

Re: RFC: glocal - automatically freeing memory when it goes out of scope

2011-11-22 Thread Steve Frécinaux
On 11/22/2011 10:24 PM, Hub Figuière wrote: On 22/11/11 01:48 AM, Emmanuele Bassi wrote: the obvious issue is: how does this interact with languages that do have a GC, and how does the API work to avoid making the life of developers for high-level languages apps and/or bindings a nightmare. if

Re: _wstat on Windows (actually stat stuff in general)

2011-09-27 Thread Steve Frécinaux
On 09/26/2011 08:59 AM, Kean Johnston wrote: Here's how I would define the GStatBuf data type: Won't you break ABI if you're changing the layout of the struct on linux/unixes? As I understand this is not an issue on Windows since everyone ships the libraries with the binary, but it is on

Re: Building multiple backends on on same system

2010-12-06 Thread Steve Frécinaux
On 12/06/2010 08:39 PM, Benjamin Otte wrote: On Mon, Dec 6, 2010 at 7:43 PM, Alexander Larssonal...@redhat.com wrote: You can of course check on the type of anything, like the display or a window. However, sometimes there might be no display availible, like if its not been opened yet. I

Re: padding cleanup

2010-08-30 Thread Steve Frécinaux
On 08/30/2010 01:02 AM, Havoc Pennington wrote: In brief it adds to GtkWidget: h-align, v-align = FILL, CENTER, START, END padding-left,padding-right,padding-top, padding-bottom = int16 A small point to keep in mind when implementing something like that is the scrollbar behaviour,

Re: [Gobject Introspection] GIRepository.gir seems incorrect

2010-08-18 Thread Steve Frécinaux
On 08/18/2010 07:32 PM, Mildred Ki'Lya wrote: Hi, I'm trying to use the GIRepository library in order to access GI information and create a compile time binding for the Lisaac language. I don't like C very much, and I'm going to use Vala. But the vala compiler complains that it can't find the

Re: Git commit message with tag

2010-08-12 Thread Steve Frécinaux
On 08/12/2010 03:34 PM, Frederic Peters wrote: Also we have been using [tags] since the Git migration, is this a new feature/bug of 'git am' ? I guess people just didn't care, but it has been there from the beginning. The rationale is simple: when you send emails to a mailing-list, it

Re: disabling GTK+ features to shrink GTK+

2010-06-15 Thread Steve Frécinaux
On 06/15/2010 01:02 AM, Alberto Ruiz wrote: 2010/6/14 Sam Thursfieldsss...@gmail.com: A more socially-minded approach would be to work on the problem of sharing a GTK+ runtime between all apps on a system. It's perhaps not an easy problem, due different requirements in versions and specific

Re: Deprecations for 3.x

2010-05-12 Thread Steve Frécinaux
On 05/12/2010 09:29 AM, Cody Russell wrote: I think it would be kind of nice to deprecate GtkStatusbar. It's one of the more useless widgets we have, imo. It basically serves two purposes: 1/ Pushing and popping text messages. This is a really terrible way to communicate information to

Re: [patch] constify g_simple_async_result_set_from_error

2009-09-02 Thread Steve Frécinaux
David Zeuthen wrote: On Wed, 2009-09-02 at 19:17 +0100, Richard Hughes wrote: In PackageKit, I have to explicitly cast in my finish function: static void pk_package_sack_merge_state_finish (PkPackageSackState *state, const GError *error) { ...

Re: [patch] constify g_simple_async_result_set_from_error

2009-09-02 Thread Steve Frécinaux
Richard Hughes wrote: 2009/9/2 Steve Frécinaux nudr...@gmail.com: I don't think it would make the ABI change... No, it won't If anything it makes the ABI more permissive, not less permissive, as const GError will accept either a GError or const GError parameter. Well this doesn't change

Re: GZip{In,Out}putStream in GIO?

2009-08-03 Thread Steve Frécinaux
Bastien Nocera wrote: I could think of at least 5 types of compressions that would be useful to have without having to use a command-line tool to decompress: - gzip for anything and everything that can come from a web server (in my case, iTunes Music Store playlist parsing, or more widely,

Re: Using By-Value Compound Getters (Re: gtk_widget_get_allocation)

2009-04-22 Thread Steve Frécinaux
Havoc Pennington wrote: Not sure we need to block merge of get_allocation() on this major other patch to change the entire guideline. Changing the entire guideline will be a giant change and giant patch anyhow, so changing get_allocation() again will be a drop in the bucket. Can't such big

Re: fsync in glib/gio

2009-03-13 Thread Steve Frécinaux
Alexander Larsson wrote: Attached is a patch that makes sure we fsync before closing in the gio file saving code and in g_file_set_contents(). Wouldn't fdatasync be sufficient in most case ? ___ gtk-devel-list mailing list gtk-devel-list@gnome.org

Re: gtk+ documentation wikified

2009-02-22 Thread Steve Frécinaux
Mathias Hasselmann wrote: Am Donnerstag, den 19.02.2009, 10:33 -0500 schrieb Dominic Lachowicz: That's hard-ish to do today. GTK+'s documentation is generated in large part by scanning comments in C code, which a program then turns into HTML. Any proposal would require a way to keep the Wiki

Re: Theme patriation

2008-10-27 Thread Steve Frécinaux
Ross Burton wrote: Adding _NET_WM_CONTEXT_TOOLBAR sounds like it should be fairly simple to do, especially with a GTK+ utility function to mark a toolbar as the main toolbar. The same can be done for menu-bar for os-x-likeness addicts. By the way, this could be solved easily using a

Re: Theme patriation

2008-10-27 Thread Steve Frécinaux
Jacob Kroon wrote: IMO decorating a window belongs in the WM, not all X applications use GTK as rendering toolkit... And all GTK users do not use metacity. But if we always stick to that kind of arguments, we can never go forward. I'd just say let's keep practical and backward compatible.

Re: GtkBuilder Public API - Last call

2007-06-14 Thread Steve Frécinaux
On Thu, 2007-06-14 at 10:41 -0300, Johan Dahlin wrote: Let's use this xml attributes for the signal tag; name: signal name handler: handler to connect the signal to after: optional, boolean if True, set flags to G_CONNECT_AFTER swapped: optional, boolean if True, set flags to

Re: GtkBuilder Public API - Last call

2007-06-13 Thread Steve Frécinaux
On Wed, 2007-06-13 at 10:48 -0400, Tristan Van Berkom wrote: object class=GtkEntry id=entry signal name=activate handler=button_clicked swapped=True/ /object Why should swapped be a property of the xml ? it looks closely tied to the code, to me, and should not be specified in the XML

Re: GtkBuilder Public API - Last call

2007-06-12 Thread Steve Frécinaux
) self.connect_signals(self.__dict__) def on_response(self, response): do_something() def on_reorder_button_click(self, button): self.reorder() ... Do you like the idea ? -- Steve Frécinaux http://tw.apinc.org

Re: GtkBuilder Public API - Last call

2007-06-12 Thread Steve Frécinaux
to add the child widget and update its properties according to what's specified in the glade file. Sorry if I'm not clear enough. -- Steve Frécinaux http://tw.apinc.org ___ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org

Re: Idea for GSoC 2007 : Shortcuts improvement

2007-03-11 Thread Steve Frécinaux
On Sun, 2007-03-11 at 16:39 -0300, Lucas Mazzardo Veloso wrote: IDEA: Improve the visual indication of keyboard shortcuts in UI. The idea looks pretty cool indeed, and reminds me what konqueror does for webpages (it adds random shortcuts to the fist hyperlinks of a page) What's harder

Re: eel - save/restore window geometry

2006-12-18 Thread Steve Frécinaux
Luca Cavalli wrote: On Mon, 2006-12-18 at 22:19 +0100, Benoît Dejean wrote: I'd like to implement window geometry save/restore in system-monitor. Is there any plan to merge soon this feature into gtk+ ? Thanks. As a side note, Sound Juicer implements this via libgconf-bridge[1], which

Re: Extra GString functions

2006-07-23 Thread Steve Frécinaux
Paul LeoNerd Evans wrote: A while ago I submitted some patches to add some extra GString functions: +GString* g_string_clone (const GString *orig); From a consistency pov, shouldn't it be g_string_copy ? ___ gtk-devel-list mailing