Re: Creating GObject/GTK bindings for language

2010-03-02 Thread Brian J. Tarricone
On 03/01/2010 10:07 PM, Tristin Celestin wrote: I apologize for being so terse. I was grasping at straws, trying to think of a specific question regarding GTK binding to get me started. There have been plenty of bindings to scripting languages in the past, so I thought asking about them in

buttons in GtkMenus, and GtkUIManager

2010-02-23 Thread Brian J. Tarricone
So I have a bit of a weird request. I'm creating a menu based on several merged UI descriptions at runtime, using GtkUIManager. This part works great. The problem is that our user experience guys want a sort of toggle-button-like radio selector at the top of the menu (this will be for a

Re: glib *nix signals

2010-02-06 Thread Brian J. Tarricone
On 02/04/2010 11:11 AM, Thomas Stover wrote: I'm looking for some notes / advise on catching SIGTERM in a glib main loop based program. Mainly on linux, but other kernels would be nice. This article: http://www.linuxjournal.com/article/2121 for instance, recommends masking all signals

Re: How To Enable X Root Window PropertyNotify Event (property-notify-event signal?) In GTK+?

2010-01-06 Thread Brian J. Tarricone
On 01/05/2010 01:36 PM, Daniel Yek wrote: I want to receive X's PropertyNotify event for _NET_WORKAREA and _NET_CURRENT_DESKTOP root window properties. How can I enable them? Can they be received as property-notify-event signal? Or do I need to use lower level event interface? I usually

Re: Creating an aggregating GtkContainer

2009-11-18 Thread Brian J. Tarricone
On Wed, Nov 18, 2009 at 10:35, Per Hermansson hermansson@bredband.net wrote: My question is if someone knows a good way to implement this. I've tested with estimating the widgets size and if the sum of all children is larger then the container the next sub-container is used. One problem

using doxygen to document gobject/gtk classes?

2009-11-16 Thread Brian J. Tarricone
Hi all, I'm in a situation where I'd like to use doxygen (and not gtk-doc) to document some GObject-derived classes. Does anyone have any experience with this and knows of any tricks to use to make the output more useful? I found one link via google[1] that referred to this, but it didn't have

Re: GIO will link with -pthread soon

2009-11-12 Thread Brian J. Tarricone
On 11/11/2009 08:10 PM, Ryan Lortie wrote: libdbus links against libpthread. Hmm: $ ldd /usr/lib/libdbus-1.so.3.4.0 linux-vdso.so.1 = (0x7fff8ebff000) libc.so.6 = /lib/libc.so.6 (0x00350100) /lib64/ld-linux-x86-64.so.2 (0x0034ffa0) Although: $ nm

Re: Are Out-of-Tree Widgets Second-Class Citizens?

2009-10-02 Thread Brian J. Tarricone
On 10/02/2009 07:17 AM, Allin Cottrell wrote: On Thu, 1 Oct 2009, Cody Russell wrote: On Mon, 2009-09-28 at 15:12 -0400, Morten Welinder wrote: This is a consequence of the halfway G_SEALing that was done. Insofar G_SEAL is a good idea, it should apply to GTK+ itself, i.e., GtkLabel has

Re: Are Out-of-Tree Widgets Second-Class Citizens?

2009-10-02 Thread Brian J. Tarricone
On 10/02/2009 12:27 PM, Paul Davis wrote: On Fri, Oct 2, 2009 at 1:53 PM, Brian J. Tarricone bj...@cornell.edu wrote: On 10/02/2009 07:17 AM, Allin Cottrell wrote: These two responses (Cody's and Brian's) don't jive. Any more clarification available? Thanks. Sure they do... Cody said apps

Re: Error in gthread.h?

2009-09-30 Thread Brian J. Tarricone
On 09/30/2009 04:57 PM, John Coppens wrote: On Wed, 30 Sep 2009 16:38:10 -0700 Brian J. Tarricone bj...@cornell.edu wrote: That's odd. Are you sure you don't have mixed versions of glib installed somehow? I was convinced that I hadn't, because I installed both from Slackware 13.0 (32

Re: Are Out-of-Tree Widgets Second-Class Citizens?

2009-09-28 Thread Brian J. Tarricone
On 09/28/2009 06:11 PM, Allin Cottrell wrote: I'm not sure if the solution Morten advocates -- namely, applying the GSEAL principle internally -- is the best one, although maybe it is. It's not even necessary. Gtk can access struct members directly if desired (for performance reasons, or

Re: libeggdbus v. libdbus-glib

2009-09-24 Thread Brian J. Tarricone
On 09/22/2009 02:59 PM, Denys Vlasenko wrote: I looked into the code just now. I wanted to check, maybe I'm really horribly wrong? Maybe it's a beautifully tight, slim and efficient code after all? This is an example I found in about 2 minutes: [...] These DBUS_TYPE_BYTE_AS_STRING are

Re: Idle Function Not Getting Called

2009-09-04 Thread Brian J. Tarricone
On 09/04/2009 08:12 PM, Marshall Lake wrote: What stops an idle function from being executed? ... pending events, right? I have a situation where an idle function does NOT get called with the following code: g_idle_add ((GSourceFunc) idlefunc, NULL); Well, that works fine for me,

Re: Webkit-gtk and MacOSX

2009-08-26 Thread Brian J. Tarricone
On 08/25/2009 06:04 PM, John Ralls wrote: Thank you both for hashing this out for me. I'll persevere with getting Webkit-Gtk to build with quartz, then. I'm not sure I agree that it's not that big: WebKit.framework clocks in at 78M. Presumably WebKit.framework includes WebCore. Would it be

Re: widget_class-event not working

2009-08-21 Thread Brian J. Tarricone
On 08/20/2009 10:27 PM, Patrick M. Rutkowski wrote: I've written a test case that anybody can compile and run: http://www.rutski89.com/static/event_test.c It contains the following line of code in the any_event() function: printf(IT WORKS!\n); That currently does not get printed. If

Re: widget_class-event not working

2009-08-20 Thread Brian J. Tarricone
On 08/20/2009 05:36 PM, Patrick M. Rutkowski wrote: I've got the following code: http://www.rutski89.com/static/gtkevent.cpp I do indeed do this: widget_class-event = any_event_r but then any_event_r() never subsequently get's called, and I'm certain that the widget_class-event =

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

2009-07-31 Thread Brian J. Tarricone
On 07/31/2009 05:48 AM, Mikkel Kamstrup Erlandsen wrote: From the looks of it, it should be straight forward to write GZip{In,Out}putStream classes based on zlib I'd say call it GCompressed{In,Out}putStream and have it either auto-detect the compression type, or have a param in the API to

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

2009-07-31 Thread Brian J. Tarricone
On 07/31/2009 01:59 PM, Mikkel Kamstrup Erlandsen wrote: 2009/7/31 Brian J. Tarriconebj...@cornell.edu: On 07/31/2009 05:48 AM, Mikkel Kamstrup Erlandsen wrote: From the looks of it, it should be straight forward to write GZip{In,Out}putStream classes based on zlib I'd say call it

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

2009-07-31 Thread Brian J. Tarricone
On 07/31/2009 01:17 PM, Alberto Ruiz wrote: 2009/7/31 Brian J. Tarriconebj...@cornell.edu: On 07/31/2009 05:48 AM, Mikkel Kamstrup Erlandsen wrote: From the looks of it, it should be straight forward to write GZip{In,Out}putStream classes based on zlib I'd say call it

Re: Widget realization with respect to current theme

2009-07-21 Thread Brian J. Tarricone
On Tue, Jul 21, 2009 at 17:57, Brian Tietzsdbti...@yahoo.com wrote: I noticed that if I create a GtkButton, call gtk_widget_show for the button, then call gtk_widget_size_request, it returns a guesstimate.  With my current theme selection, this turns out to be a few pixels too small. If I

Re: GTK clipboard on OS X

2009-07-19 Thread Brian J. Tarricone
On 07/19/2009 05:48 PM, Allin Cottrell wrote: GtkTargetEntry rtf_targets[] = { { application/rtf, 0, TARGET_RTF }, { application/x-rtf, 0, TARGET_RTF }, { text/rtf, 0, TARGET_RTF }, { text/richtext, 0, TARGET_RTF }, { STRING,0, TARGET_STRING

Re: client-side-windows merged

2009-07-12 Thread Brian J. Tarricone
On 07/12/2009 01:02 PM, Frederic Peters wrote: Alexander Larsson wrote: The client-side-windows branch has now been merged into master. The http://git.gnome.org/cgit/gtk+/commit/?id=0b586a5a change to gdkdrawable.h: @@ -100,6 +100,7 @@ struct _GdkDrawableClass void (*draw_drawable)

Re: GTK on Macintosh OSX

2009-07-11 Thread Brian J. Tarricone
On 2009/07/11 11:14, John Ralls wrote: I'm concerned, though, about how committed the gtk development team is to completing and maintaining the internal parts. There are some serious holes (pasting and drag-and-drop don't work, just as a particularly egregious example). Richard told me that he

Re: g_spawn_async_with_pipes() ssh based IPC

2009-07-10 Thread Brian J. Tarricone
On 2009/07/09 13:25, Michael Cronenworth wrote: SSH is great for remote terminal sessions, but not much more. I think the sshfs guys might beg to differ with you on that one. As would anyone who uses subversion or git (etc.) over ssh. Or anyone who's tunneled various protocols using ssh's

Re: usb plug/unplug notifications

2009-07-10 Thread Brian J. Tarricone
On 2009/07/09 15:38, Garth's KidStuff wrote: Hi All, I'd like to know how to intercept usb events. Right now, I'm polling for changes, but that isn't the right way to handle device discovery. Is there a way to get a notification when something happens in the usb world? Not really on-topic

Re: g_spawn_async_with_pipes() ssh based IPC

2009-07-09 Thread Brian J. Tarricone
On 2009/07/09 13:25, Michael Cronenworth wrote: SSH is great for remote terminal sessions, but not much more. I think the sshfs guys might beg to differ with you on that one. As would anyone who uses subversion or git (etc.) over ssh. Or anyone who's tunneled various protocols using ssh's

Re: Bringing a GtkWindow to the current desktop with libwnck

2009-07-03 Thread Brian J. Tarricone
On 2009/07/02 23:27, Jim George wrote: I tried to get around this using libwnck. I call wnck_window_get(GDK_WINDOW_XID(main_window-window)), but the WnckWindow returned is always NULL. The X window ID seems to make sense (it's a large integer), so what am I doing wrong? Try this: WnckScreen

Re: glib uses wrong prefix for base-2 units

2009-06-04 Thread Brian J. Tarricone
On 06/03/2009 05:36 PM, Paul LeoNerd Evans wrote: Yes; we messed up 30 years ago and said k when we meant Ki. Oops. Sorry about that. Well, no, 30 years ago there was no Ki. So people did the logical thing and picked the prefix that represented the correct *magnitude* of the value. Lets

Re: glib uses wrong prefix for base-2 units

2009-06-03 Thread Brian J. Tarricone
Benjamin Drung wrote: Hello, g_format_size_for_display uses the wrong prefixes for units that are counted in power of two. The SI defines following prefixes: k = 1000 M = 1000 k G = 1000 M ... Please use the IEC standard for binary prefixes: Ki = 1024 Mi = 1024 Ki Gi = 1024 Mi ... Oh god,

Re: Stop alt-spacebar window menu

2009-05-28 Thread Brian J. Tarricone
On 05/28/2009 11:51 AM, Bill Farmer wrote: The reason for wanting to capture the alt-spacebar combination is because the keyboard is being played as a musical instrument using the function keys on one side, and the control, alt, and spacebar on the other side. So, every time the user presses

Re: Stop alt-spacebar window menu

2009-05-27 Thread Brian J. Tarricone
Bill Farmer wrote: I am porting a native windows application to linux gtk. I want to stop the alt-spacebar key combination popping up the application window menu. This can be done in windows by capturing the WM_SYSCHAR message. After searching though the gtk documentation and sources, the only

Re: Stop alt-spacebar window menu

2009-05-27 Thread Brian J. Tarricone
On 05/27/2009 09:45 PM, Emmanuel Rodriguez wrote: On Wed, May 27, 2009 at 9:04 PM, Brian J. Tarriconebj...@cornell.eduwrote: Bill Farmer wrote: I am porting a native windows application to linux gtk. I want to stop the alt-spacebar key combination popping up the application window menu. This

Re: global menubars in GTK+

2009-05-25 Thread Brian J. Tarricone
On 05/25/2009 09:22 AM, Yu Feng wrote: On Mon, 2009-05-25 at 20:17 +0800, Davyd Madeley wrote: OTOH, if GTK+ had API for this, a backend could be written to power the gnome2-globalmenu applet from this API. However, the reason why GGM is using GtkWidgets in favor of GtkActions is that there

Re: global menubars in GTK+

2009-05-25 Thread Brian J. Tarricone
On 05/25/2009 02:04 AM, Nemes Sorin wrote: global menu bar from Usability point of view ... I am a designer interested in Man - Machine interaction. Regarding global menu in Gnome, I spent a 2 weeks using globalmenubar being curious to find in which mode my workflow will be affected (Speed ?

Re: Native file chooser dialog on Windows

2009-05-15 Thread Brian J. Tarricone
Cody Russell wrote: On Fri, 2009-05-15 at 13:51 -0400, David Cantin wrote: I don't known about this, but from an usability point of view, using native dialog should help applications users because they can use skills they have learned while they were using others applications.. Those details

Re: glist manipulation and reference count

2009-05-14 Thread Brian J. Tarricone
[Note that your question is probably more appropriate for gtk-app-devel-list or gtk-list; this list is for the development *of* glib/gtk itself, not about developing apps that *use* glib/gtk.] On 05/14/2009 08:47 PM, walty wrote: However, one thing that surprised me is that, when I do

Re: GVariant for prez!

2009-05-07 Thread Brian J. Tarricone
On Thu, 7 May 2009 23:32:05 -0400 Matthias Clasen wrote: - Find a more suitable name for GVariant, maybe. Havoc had 'GBinaryValue' earlier... GSerializedValue? A bit long... GFlatValue? GComplexValue? (eh.) -brian ___ gtk-devel-list

Re: Problems using/understanding drag-and-drop.

2009-04-30 Thread Brian J. Tarricone
sledge hammer wrote: In my app I want the user to drag-n-drop files from nautilus, then the application should open them. I am using as Targets: 1. STRING 2. text/plain You probably want to also (or maybe instead) handle text/uri-list. 2. spaces in the filename are represented as %20

Re: GLib plans for the next cycle

2009-04-21 Thread Brian J. Tarricone
Alexander Larsson wrote: On Mon, 2009-04-20 at 18:45 -0400, Allin Cottrell wrote: On Mon, 20 Apr 2009, Alexander Larsson wrote: gvfs needs a session bus, not a system bus, so you're falling back to a non-gvfs system. Thus no http support. OK, I suppose I can get this working on my own

Re: gtk_widget_get_allocation

2009-04-17 Thread Brian J. Tarricone
Cody Russell wrote: On Thu, 2008-09-25 at 02:02 +0200, Christian Dywan wrote: * gtk_widget_get_allocation Removed in 2.14.1 The prototype of this function was not agreed upon among the core developers. So the decision was deferred to the next Gtk version. It had to be removed

Re: Cross-compiling GLib 2.18 with arm-linux.

2009-03-31 Thread Brian J. Tarricone
On Fri, 27 Mar 2009 13:00:52 +0200 Felipe Contreras wrote: 2009/3/23 John Peterson j0...@comcast.net: Hello – I’m not sure I’ve got the right mailing list for this question, but I thought I’d try. I have downloaded glib-2.18.0 on Linux FC4, and am trying to cross-compile with an

Re: Background color problem

2009-03-16 Thread Brian J. Tarricone
Vlad Volodin wrote: The canvas is white, and it doesn't have some kind of transparency. So, as I thought, I decided to fill it's background with color, got from it's GtkStyle. After some experiments I realized, that widgets (main window, container and GtkClutterEmbed) don't have needed color:

Re: fsync in glib/gio

2009-03-14 Thread Brian J. Tarricone
On Sat, 14 Mar 2009 13:16:45 +0100 Alexander Larsson wrote: On Fri, 2009-03-13 at 14:34 -0700, Brian J. Tarricone wrote: I think you are conflating two issues. No, I don't think I am. I think I'm just replying to a subset of the email that's slightly off topic. Or rather, the fact that I'm

Re: fsync in glib/gio

2009-03-14 Thread Brian J. Tarricone
On Sat, 14 Mar 2009 20:10:32 -0400 Morten Welinder wrote: This is crazy. People are actually advocating that thousands upon thousands of applications need to be changed. If they're behaving incorrectly, yes. But I don't think most of them are. The only case where *not* doing an fsync()

Re: fsync in glib/gio

2009-03-13 Thread Brian J. Tarricone
Sven Neumann wrote: It seems wrong to work around broken file-systems on the application level. That only takes away pressure from the file-system developers to address the problem properly. How is the file system broken? Read the man page for write(). If you want to guarantee that file

Re: fsync in glib/gio

2009-03-13 Thread Brian J. Tarricone
Alexander Larsson wrote: On Fri, 2009-03-13 at 11:11 -0700, Brian J. Tarricone wrote: Sven Neumann wrote: It seems wrong to work around broken file-systems on the application level. That only takes away pressure from the file-system developers to address the problem properly. How

Re: GObject Introspection as part of the GNOME platform

2009-03-11 Thread Brian J. Tarricone
Johan Dahlin wrote: In my opinion, supporting cross-compilation shouldn't be a blocker for integration into glib proper. It's more of a 'nice feature' to support. As long as that means glib will still cross-compile, just the introspection stuff gets disabled, I'm ok with that. Otherwise...

Re: DBus IDL (Was Re: GLib plans for the next cycle)

2009-03-03 Thread Brian J. Tarricone
On Tue, 03 Mar 2009 10:55:33 +0100 Alexander Larsson wrote: On Mon, 2009-03-02 at 22:26 +, Rob Taylor wrote: Brian J. Tarricone wrote: Whether or not the object is local (in-process) or not is irrelevant. Whether or not the method call is sync or async is also irrelevant. It's

Re: DBus IDL (Was Re: GLib plans for the next cycle)

2009-03-02 Thread Brian J. Tarricone
Mark Doffman wrote: I understand that there is no difference on-the-wire between a function-call and message passing. The difference is in peoples perceptions and expectations. When I read CORBA IDL and see: int AFunction (int, int); Because of the connotations provided to me by years of

Re: examples/list.c

2009-01-22 Thread Brian J. Tarricone
Hi Deron, Please don't reply to me directly. The entire list should be able to benefit from this discussion. Deron Kazmaier wrote: I'm sure he know that, but is it available or not? I would think it should still be functional otherwise it would not be binary compatible with existing

Re: examples/list.c

2009-01-21 Thread Brian J. Tarricone
Don't use GtkList or GtkTree. They've been deprecated for... I dunno... 7 or 8 years now, and are unmaintained. You should be using GtkTreeView in conjunction with a GtkTreeStore or GtkListStore. -brian Dave Luttinen wrote: 2nd post. I'm just getting warmed up g. Compile with

Re: Bikeshedding the invisible-char

2009-01-19 Thread Brian J. Tarricone
Federico Mena Quintero wrote: openSUSE has a patch that changes the invisible-char to ● (Unicode 0x25CF BLACK CIRCLE). What happens when the current font is missing that character? Will it try to find another font that has it, or will there be a manual fallback that uses '*' instead? The

Re: gparamspecs.c param_double_validate() doesn't support NaN/Inf?

2009-01-10 Thread Brian J. Tarricone
On Sat, 10 Jan 2009 13:42:31 +0200 Andrew W. Nosenko wrote: First at all, could you provide any real-world example, where min/max restriction on GParamSpec could be usefull? The reason is simple: when validation fails, the application has no way to know about it and, therefore, to do

Re: Top-level include files

2008-12-17 Thread Brian J. Tarricone
Cosimo Cecchi wrote: On Wed, 2008-12-17 at 09:17 -0500, Morten Welinder wrote: So: what header files are meant to be included by applications? Where is this information documented? AFAIK it's not clearly documented anywhere, but in addition to the toplevel headers, you should always include

Re: win32: get notified when gtk+ app gets killed?

2008-12-08 Thread Brian J. Tarricone
Brian J. Tarricone wrote: [EMAIL PROTECTED] wrote: For non-console apps, MSDN says I need to set up a WindowProc callback to catch WM_QUERYENDSESSION messages. But to register it, it seems I need hWnd from the main window which is somewhere hidden by gtk+... That's odd -- on X11, you can

Re: gtk_entry question (example from faq)

2008-12-06 Thread Brian J. Tarricone
On Sun, 07 Dec 2008 04:06:55 +0300 Vasiliy G Tolstov wrote: I'm try to use exmaple from faq http://library.gnome.org/devel/gtk-faq/stable/x842.html But then i'm try to compile - i see this error... How can i add to entry ability to insert only digits? window.cpp:214: error: invalid

Re: Fixing EMail Addresses in GLib/Gtk+ bugzilla components

2008-10-30 Thread Brian J. Tarricone
Johan Dahlin wrote: b) We *always* use a @gnome.bugs alias as the Default Assignee for all Gtk+ components, using a standard, for instance: [EMAIL PROTECTED] Then what happens when someone takes the bug and assigns it to him/herself? Not allowing that seems pretty annoying...

Re: handling of keyboard under darwin (quartz)

2008-10-30 Thread Brian J. Tarricone
Arnaud Charlet wrote: Hello, The current code in gdk/quartz/gdkkeys-quartz.c uses a deprecated (since 10.5) API to handle keyboard layout on darwin, which is not available to x86-64 applications. Here is a possible patch that uses the new TIS API. Is the TIS API available in 10.4? If not,

Re: Theming API hackfest: last call

2008-10-15 Thread Brian J. Tarricone
On Wed, 15 Oct 2008 13:48:47 +0200 Robert Staudinger wrote: Relatedly I am thinking of a sane way to import styling into CSS blocks to aid widget mimicking. Imagine you want to mimick a GtkButton with your own wonderful implementation FooButton, but unrelated in the GType hierarchy (not

Re: g_utf8_validate() and NUL characters

2008-10-07 Thread Brian J. Tarricone
Behdad Esfahbod wrote: Havoc Pennington wrote: On Mon, Oct 6, 2008 at 4:42 PM, coda [EMAIL PROTECTED] wrote: Is there any reason not to support NUL/U+ in strings? The point of not allowing nul in g_utf8_validate() I think is that nul is not valid text. It may be valid unicode in some

Re: Minutes of the GTK+ Team Meeting - 2008-09-23

2008-09-25 Thread Brian J. Tarricone
Alexander Larsson wrote: On Thu, 2008-09-25 at 11:38 -0500, Mike Kestner wrote: If the motivation for removing the types is that, things aren't as beautiful as they could be then that argument doesn't really outweigh the pain of porting existing code. Especially when the cost of supporting

Re: quarks

2008-09-01 Thread Brian J. Tarricone
On Mon, 01 Sep 2008 02:20:35 -0300 Martin (OpenGeoMap) wrote: Someone knows like quarks works in glib. I can not find the source code, only the header. Itś suppose we don need free the string inside a static string of a quarks. But how is that???. Where is the string saved?. The

Re: [semi-OT] dependencies libraries

2008-08-31 Thread Brian J. Tarricone
On Sun, 31 Aug 2008 10:41:42 +0200 Andrea Zagli wrote: how can i do to know the exact libraries versions which my applications depends on? for example: if i develop with gtk 2.12 (but i can do the same reasoning with any other library) how can i do to know if i used (or not) new

natural size for widgets packed in a GtkScrolledWindow

2008-08-25 Thread Brian J. Tarricone
Hi all, This may be related to the natural-size stuff I saw floating on gtk-devel-list a couple months ago, so maybe my answer is just wait for the next major gtk release, but here goes... Consider a dialog just with a scrolled window in it, and, inside the scrolled window, some widget that

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

2008-08-15 Thread Brian J. Tarricone
On Fri, 15 Aug 2008 10:58:59 +0300 Tor Lillqvist wrote: The documentation for g_thread_init() says (in the stable branch): You must call g_thread_init() before executing any other GLib functions in a threaded GLib program. [..] The real use case reported on gtk-list looked much more

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

2008-08-15 Thread Brian J. Tarricone
Havoc Pennington wrote: If the init function does have arguments, then you end up with a requirement that all libraries and modules calling it must call it with the same args ... which isn't possible ... so init functions with arguments are broken unless the *app* and never a library will

Re: dynamic memory for everything?

2008-08-01 Thread Brian J. Tarricone
On Thu, 31 Jul 2008 16:31:31 +0200 Martin (OPENGeoMap) wrote: Hi http://library.gnome.org/devel/glib/2.17/glib-Date-and-Time-Functions.html#GDate I have a doubt about how they are working all classes in the glib. Is it always uses dynamic memory for everything? GDate*

Re: GHashTable and const

2008-07-03 Thread Brian J. Tarricone
BJörn Lindqvist wrote: On Thu, Jul 3, 2008 at 3:49 PM, Alberto Mardegan [EMAIL PROTECTED] wrote: ext Havoc Pennington wrote: Whether you agree or not, the GLib types don't use const in their API, so if you try to use const yourself on these types you're just signing up for pain. It won't work

Re: Steps to get to GTK+ 3.0

2008-06-04 Thread Brian J. Tarricone
Jean-Yves Lefort wrote: On Wed, 04 Jun 2008 15:18:45 -0400 Paul Davis [EMAIL PROTECTED] wrote: On Wed, 2008-06-04 at 20:57 +0200, Jean-Yves Lefort wrote: Rather than calling my suggestions silly, why don't you actually try to explain how the non-preprocessed, dynamic-only GLib property

Re: Creating a non-focused window

2008-05-23 Thread Brian J. Tarricone
On Thu, 22 May 2008 17:26:15 -0700 Tom Machinski wrote: Hi, I wrote a simple GTK+ application that displays a popup window. The problem is that whenever the window is displayed, it immediately gets (steals) the focus. I would like to prevent that from happening: i.e., the window should

Re: Creating a non-focused window

2008-05-23 Thread Brian J. Tarricone
Tom Machinski wrote: On Thu, May 22, 2008 at 11:52 PM, Brian J. Tarricone [EMAIL PROTECTED] wrote: gtk_window_set_focus_on_map() (or presumably window.set_focus_on_map(False) in... whatever langauges you're using). Thanks Brian, aniket. Unfortunately, this solution does not work

Re: Creating a non-focused window

2008-05-23 Thread Brian J. Tarricone
Tom Machinski wrote: On Fri, May 23, 2008 at 9:52 AM, Brian J. Tarricone [EMAIL PROTECTED] wrote: Well, it works here, using straight C. I don't really know Python, so I can't really say why it wouldn't work there. Thanks a lot Brian. Could you perchance paste the code you used

Re: How do I disable automatic drag and drop between GtkEntry widgets?

2008-05-16 Thread Brian J. Tarricone
On Fri, 16 May 2008 16:12:50 -0400 [EMAIL PROTECTED] wrote: I'm using mwm and libglade if that makes a difference. Is this automatic drag and drop something that libglade sets up for me by chance? Why would you want to do this? People accustomed to how entry widgets behave will likely be

Re: destroing data attached to a type (qdata)

2008-05-12 Thread Brian J. Tarricone
Stefan Kost wrote: hi, I have an interface, where I share some data between the instances. the data is created on first access. Now I also would like to release it when the last instance goes. problem 1: base_finalize() is not called for static types I thought that I could do some

Re: [PATCH] Use autopoint for GLib

2008-05-06 Thread Brian J. Tarricone
Bastien Nocera wrote: On Tue, 2008-05-06 at 19:41 -0400, Havoc Pennington wrote: Hi, On Tue, May 6, 2008 at 4:15 PM, Felipe Contreras [EMAIL PROTECTED] wrote: Is there any reason? I don't know. If I had to guess, it probably wasn't seen as worth maintaining. After all none of the other

Re: GFile issue: undefined reference to `g_file_new_for_path'

2008-05-04 Thread Brian J. Tarricone
On Sun, 4 May 2008 07:34:30 -0400 A. Walton wrote: On Sun, May 4, 2008 at 7:15 AM, Soulivanh Anothay [EMAIL PROTECTED] wrote: Hello everybody, I have just manually installed the newer version of GLib 2.16.3 , I have checked the installation by issuing this command: pkg-config

temporary gtkrc file parsing aka 'sub-themes'

2008-04-18 Thread Brian J. Tarricone
Hey all, I have an app that draws some windows in a special way, and I'm letting it be easily themed separately (rather, on top of) gtk's theming. I'm just using normal gtkrc files for the theming, and calling gtk_rc_parse() when the user changes the theme. The problem is this: if the new

Re: Print preview widget

2008-04-16 Thread Brian J. Tarricone
Ghee Teo wrote: Cody Russell wrote: I was thinking that it would be nice if there was an integrated print preview widget in GTK+, that would be available cross-platform and wanted to check with people here before I commit much time to this. Right now we're spawning another process to do this,

cairo_path_t to GdkRegion?

2008-04-14 Thread Brian J. Tarricone
Hi all, I'm writing a semi-transparent window widget that uses cairo for drawing. I'm using an ARGB window, and the window itself isn't necessarily rectangular (sometimes it'll have rounded corners of arbitrary radius, and other non-regular shapes are possible). Since I'm using cairo to do the

Re: cairo_path_t to GdkRegion?

2008-04-14 Thread Brian J. Tarricone
On Mon, 14 Apr 2008 02:38:27 -0700 Brian J. Tarricone wrote: Anybody know of a way to munge a cairo_path_t into at least an approximate GdkRegion (i.e. suitable for gdk_window_shape_combine_region())? Or is there a better way to do this? Figured out something, in case anyone's interested

Re: gtk/gdk equivalent of XGetWMName?

2008-04-10 Thread Brian J. Tarricone
Xavier Toth wrote: Is there a Gtk/Gdk equivalent of XGetWMName? Yep: http://library.gnome.org/devel/gdk/stable/gdk-X-Window-System-Interaction.html#gdk-x11-screen-get-window-manager-name Not sure how reliable that is, though -- I was told once that it'll still return the old value (or just

Re: GtkWindow from X window id

2008-04-10 Thread Brian J. Tarricone
Xavier Toth wrote: Is it possible to retrieve a GtkWindow using the native X window id? Something like this might work: GdkWindow *window = gdk_window_lookup(xid); GtkWidget *widget = gdk_window_get_user_data(window); Of course that only works if 'xid' corresponds to a GtkWindow that you

Re: [Bug?] GtkStatusIcon bad default size when used with GtkIconFactory

2008-04-02 Thread Brian J. Tarricone
Milan wrote: I'm trying to use the GtkIconFactory system to set the icon used by GtkStatusIcon. Once I've created the GtkIconSet for my icons (I have SVg and PNG versions of the same icon), I use gtk_status_icon_set_from_stock. Everything goes right, except that the created icon is 20x20 px

Re: identify unused functions?

2008-03-31 Thread Brian J. Tarricone
G Hasse wrote: On Sun, Mar 30, 2008 at 10:25:05PM +0300, Stefan Kost wrote: Hi, Undefined and unused is not the same. There is NO way to clerify all unused functions in a program. You could call functions by their addresses and those addresses could be calculated in runtime. So you don't

Re: Moving Open with to the platform

2008-03-19 Thread Brian J. Tarricone
Alexander Larsson wrote: I think having a dbus api for nautilus is an excellent idea. Suitable operations include things like: * list open windows and locations * open a window * reload windows showing a location * modify selection in a window * modify nautilus metadata like notes and

Re: gtktextview render hint-rules effect

2008-03-18 Thread Brian J. Tarricone
majid wrote: thanks, but my questions was about GTK_TEXT_VIEW widget.! Oh, jeez. I should learn how to read! I use this function to set rules hint property to a TREE_VIEW object. gtk_tree_view_set_rules_hint (GtkTreeView *tree_view, gboolean setting); but wath about a TEXT_VIEW? how can

Re: Move to LGPL3

2008-03-18 Thread Brian J. Tarricone
Lieven van der Heide wrote: Ok, according to the matrix on http://www.fsf.org/licensing/licenses/gpl-faq.html#AllCompatibility it's indeed not allowed, although I don't really understand why. Mathias pointed out exactly why. It's not that linking GPLv2-only to LGPLv3 violates the LGPLv3

Re: Move to LGPL3

2008-03-18 Thread Brian J. Tarricone
Alexander Shaduri wrote: Hi all, Having studied the FSF licenses and their restrictions, I think it would be reasonable to re-license GTK+ under the LGPLv3 (or later) + GPLv2 linking exception (or, alternatively, simply multi-license it under LGPLv3 / GPLv2). Hmm, there's a nifty idea.

Re: Move to LGPL3

2008-03-18 Thread Brian J. Tarricone
Yevgen Muntyan wrote: Alexander Shaduri wrote: Hi all, Having studied the FSF licenses and their restrictions, I think it would be reasonable to re-license GTK+ under the LGPLv3 (or later) + GPLv2 linking exception (or, alternatively, simply multi-license it under LGPLv3 / GPLv2).

Re: Move to LGPL3

2008-03-18 Thread Brian J. Tarricone
Hubert Figuiere wrote: On Tue, 2008-03-18 at 16:03 -0700, Brian J. Tarricone wrote: You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. [...] (If a newer version than version 2 of the ordinary GNU General Public

Re: gtktextview render hint-rules effect

2008-03-17 Thread Brian J. Tarricone
Damien Caliste wrote: Hello, Le 17/03/2008, mbrz [EMAIL PROTECTED] a écrit : How can I realise a hint-rules effect like gtktreeview to have lines rendered with alternating row colors on my gtktextview widget ? You can do this: g_object_set(G_OBJECT(treeView), rules-hint, TRUE, NULL);

Re: gdk_pixbuf_composite() issue

2008-03-17 Thread Brian J. Tarricone
Michael wrote: I've got a pixbuf, created with gdk_pixbuf_new() (let's call it combined_pixbufs), with a width/height large enough to accommodate two pixbufs side-by-side. I then have two smaller pixbufs: pixbuf_one and pixbuf_two. I'm trying to use gdk_pixbuf_composite() to combine them

Re: Problem with references

2008-03-14 Thread Brian J. Tarricone
On Fri, 14 Mar 2008 09:41:22 +0100 Gabriele Greco wrote: After some headache with my gtk C++ classes I've found with a small test program this fact about the gobject references: Sorry, not sure what you're trying to do. Are you trying to do something with gtkmm? Or are you creating your own

Re: GtkBuilder bug?

2008-02-27 Thread Brian J. Tarricone
Pavel Syomin wrote: Hi, all! I had been experimenting with GtkBuilder using Gtk+ 2.12.5 from Fedora 8. I have found, that if there is reference to unknown type in UI-file, then application crashes. Is it a GtkBuilder bug? Test program: [snip] Gtk-ERROR **: Invalid type: Unknown

Re: GTK+ Website Review - Final Draft

2008-01-28 Thread Brian J. Tarricone
Michael L Torrie (sorta) wrote: I'm always amused by people who have big, hires screens and want to maximize windows. In my opinion, on a 20 wide screen, I want layouts to be narrow enough to be in a nice tall window that's narrow enough to allow easy reading. It's funny that you use the

Re: thread support in Windows: problem

2008-01-24 Thread Brian J. Tarricone
[EMAIL PROTECTED] wrote: Write wrapper functions for any gtk operation you'd like to execute from threads in a way that the thread calls a glib's idle function which does the real gtk work. Additionally (!) you need to lock gtk/gdk access by the gds_threads_enter/leave functions -- since

Re: Can I use gtk_widget_unref() to releasetthe object created by gtk_invisible_new()?

2008-01-11 Thread Brian J. Tarricone
(This is a bit better suited to gtk-app-devel-list, but...) Brian Lu wrote: Thanks a lot for your explanation. But look at following snippet from firefox latest code base: void InitWidget() { mWidget = gtk_invisible_new(); gtk_object_ref(GTK_OBJECT(mWidget));

Re: Whats the purpose of libegg

2008-01-06 Thread Brian J. Tarricone
On Sun, 6 Jan 2008 11:00:59 +0800 Bin Chen wrote: I searched the internet for libegg and found some tips but still can't got whats libegg working for? Is it another useful widget lib? After I check out the libegg and catch the README: - All features are intended to end up in a stable

Re: Multi-threaded UI Freezes on GDK Call

2007-12-18 Thread Brian J. Tarricone
Michael McCann wrote: Michael R. Head wrote: Does your special function take time to do its job? If so, then that would be why. For example: ... while(1) { gdk_threads_enter(); sleep(1) gdk_threads_leave(); sleep(10) }; ... you'd freeze your app for a second every 10 seconds. Ahh,

Re: Multi-threaded UI Freezes on GDK Call

2007-12-18 Thread Brian J. Tarricone
Michael McCann wrote: Brian J. Tarricone wrote: Don't use gdk in the CPU-intensive function: Unfortunately, the GDK calls _are_ what is CPU-intensive. I believe the gdk_pixbuf_get_from_drawable() call is the most intensive. None of my regular code is CPU-intensive. How large

  1   2   >