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

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

Re: [n00b] what's a smooth_draw_box?

2007-12-17 Thread Brian J. Tarricone
On Mon, 17 Dec 2007 18:30:57 -0800 Daniel Fetchinson wrote: Hi list, I've just started with GTK and been going through the tutorial and examples. My first small application is working all right but the following (I guess) warning keeps being written to the console: CRITICAL **:

Re: Change interface font in a GTK application at runtime without reopening windows

2007-12-12 Thread Brian J. Tarricone
Gabriele Greco wrote: A lot of users are asking me for the capability to change the font of an application runtime. I know that the correct answer should be change your gtk theme or edit the application RC file, but while this kind of answer is good with power users, normal users often

Re: memory leak in gtk

2007-11-21 Thread Brian J. Tarricone
On Wed, 21 Nov 2007 20:15:25 +0100 c f wrote: [...] I have used mtrace to check for memory leaks. In this simple application there are more than 5000 memory allocation which is not freed. See: http://www.gtk.org/faq/#AEN703 I have checked the GTK documentation and it states that gtk_exit

Re: How can I tell if a GTKWidget is realized?

2007-11-10 Thread Brian J. Tarricone
On Fri, 9 Nov 2007 14:40:53 -0600 ying lcs wrote: Can you please tell me how can I tell programmically if a GTKWidget is realized? http://library.gnome.org/devel/gtk/stable/GtkWidget.html#GTK-WIDGET-REALIZED:CAPS -brian ___

Re: gtk_ui_manager_get_accel_group reference

2007-11-09 Thread Brian J. Tarricone
On Fri, 9 Nov 2007 16:40:18 +0100 c f wrote: Hi, I'm not sure if the following problem is a bug in gtk or it is a 'feature': Running the following code: GtkUIManager *uiManager = gtk_ui_manager_new(); GtkAccelGroup *accelGroup = gtk_ui_manager_get_accel_group(uiManager);

Re: A little compiler issue

2007-11-09 Thread Brian J. Tarricone
On Fri, 09 Nov 2007 07:19:22 -0800 Alan M. Evans wrote: On Fri, 2007-11-09 at 00:04 +0100, Rafał Mużyło wrote: It's not quite gtk related, but do any of you know how to fix a problem with G_LOCK/G_UNLOCK producing strict aliasing warnings with -O2 ? I'm looking for a real solution, not

Re: Building and packaging for Windows

2007-10-30 Thread Brian J. Tarricone
Andrew Smith wrote: Hello I am the author of ISO Master ( http://littlesvr.ca/isomaster/ ). It's a reasonably simple GTK application. I'd like to make a Windows version. If possible, without porting the GUI to Win32. I managed to compile ISO Master on Windows using cygwin, but I don't

Re: Profiling GTK within an application

2007-10-29 Thread Brian J. Tarricone
Chris Rorvick wrote: My program is spending more than 50% of its userland time executing code in glib, and a vast majority of that is split evenly between two functions: g_slist_find() and g_slist_remove_all(). You should probably be using a different data structure. A linked list is not a

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

2007-08-04 Thread Brian J. Tarricone
On Sat, 04 Aug 2007 22:50:06 +0100 Chris Vine wrote: 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 alot of gtk withing my thread. Looks like it might be the way to go for me. You may be missing the

Re: Run Loop Memory Management

2007-05-29 Thread Brian J. Tarricone
On Tue, 29 May 2007 18:12:57 -0500 Dan Saul wrote: Good day, new to the list and GTK+ in general. I am formerly a Macintosh developer. Currently however I am now working on Objective C bindings for GTK+. I am currently looking at the documentation for the run loop which I have found located at

Re: Run Loop Memory Management

2007-05-29 Thread Brian J. Tarricone
Replying to myself... On Tue, 29 May 2007 16:29:12 -0700 Brian J. Tarricone wrote: Actually, you might want to poke around in gdk/quartz/ inside gtk+ SVN. I imagine autorelease pools are used in the MacOSX backend; maybe you can find some hints there as to what's best. I was curious, so I

Re: How to create a self contained GTK+ Application for Linux

2007-05-22 Thread Brian J. Tarricone
Hey Jeremy, On Wed, 23 May 2007 06:54:14 +0300 Tor Lillqvist wrote: Jeremy Roberson writes: So, I copied all of the shared libraries into a sub directory of the application directory called lib/ for testing. But GTK+ and Pango also look for various other files at run-time. It's not

Re: Bypassing Force Quit

2007-05-16 Thread Brian J. Tarricone
On Wed, 16 May 2007 14:19:19 -0400 Dan Gruhn wrote: Greetings, I am running on FedoraCore5 and I have an application that when the user clicks the X in the upper right wants to query for saving any changed data. I have currently coded this as a signal handler for the delete event which puts up

Re: libglade frustration redux

2007-02-15 Thread Brian J. Tarricone
Gerald I. Evenden wrote: 2. A side thread suggested that in order to understand the usage of a system like libglade one should study the source. I think that's pretty standard practice where any open source library/development system is concerned. Having full reference documentation,

Re: What is the proper way of markig translations of static array initializers

2007-02-05 Thread Brian J. Tarricone
Alexander Shopov wrote: The context is stripped when the string is *used*, for marking it is irrelevant whether it has context or not, so mark it normally with N_(). I am sorry but this does not work. When I mark strings simply with N_() the context information is not stripped away - in

Re: Warnings/Errors during Threaded Execution

2006-11-30 Thread Brian J. Tarricone
(Please move this discussion over to gtk-app-devel-list. gtk-devel-list is for the development of gtk itself.) Christopher Bland wrote: Brian J. Tarricone wrote: Clicking the first button fires the 'clicked' event where I make the following calls: g_thread_init(NULL); gdk_threads_init

Re: No dynamic libs of glib

2006-10-23 Thread Brian J. Tarricone
Laurent ISENEGGER wrote: I'm new in this list so i hope i'm not mistaken if i post my question here. I'm not sure that glib has its own list, so I guess here is good. I'm currently trying to integrate the GLIB 2.12.4 on a platform based on ARM. I m cross compiling with a fedora 3

Re: Using g_signal_connect in an event handler

2006-10-17 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/17/2006 5:17 AM, David Ne?as (Yeti) wrote: On Tue, Oct 17, 2006 at 01:51:47PM +0200, Lorenzo Marcon wrote: int main(int argc, char *argv[]) { ... gpointer data[5]; ... data[0] = (gpointer) gtk_entry_get_text (GTK_ENTRY

Re: Combining GTK+ and C++

2006-10-12 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/12/2006 4:26 PM, Nickolai Dobrynin wrote: Hi! Are there any well-known C++ applications that use GTK+ behind the scenes? Any links to those? For some reason, I'm having rough time wrapping GTK+ in C++ in a way that makes the life span

Re: Removing selected items from a list

2006-07-21 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 7/21/2006 2:32 PM, Christopher Backhouse wrote: I want to remove all the items in a list that the user has highlighted After discovering that I'm not allowed to use gtk_tree_selection_selected_foreach I am trying it like this GList*

Re: building a library using gtk+

2006-05-17 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 5/17/2006 11:06 AM, Dov Kruger wrote: Since originally posting this question, I've used the linker to try to create a dll. ar just assembles a number of .o files, I don't believe it resolves any symbols which is useless to me. So, I did ld

Re: Crashes with GTK 2.8.12 and above

2006-04-12 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4/11/2006 2:08 PM, Enrico Tröger wrote: Hi, I have some problems with newer GTK versions(2.8.12 and above) and my application(http://geany.uvena.de). It crashes with segmentation faults inside GTK. With GTK 2.8.10, it works at its best.

Re: Choosing a parent class

2006-04-11 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4/11/2006 2:00 PM, Andreas Kotowicz wrote: On Tue, 2006-04-11 at 17:02 -0400, Tristan Van Berkom wrote: Andreas Kotowicz wrote: [...] ok, I think I understand now. but somehow it seems that my class has some mistake in it (see attachment). I'm

Re: dealing with utf8 filenames

2006-02-22 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2/22/2006 10:47 AM, Christian Neumair wrote: Am Mittwoch, den 22.02.2006, 08:17 -0800 schrieb Alan M. Evans: On Wed, 2006-02-22 at 07:59, Christian Neumair wrote: For the sake of readability, I'd rather use the following code: char **str; /*

Re: GTK and threads

2006-02-06 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 kornelix wrote: Brian J. Tarricone wrote: You're looking at this in an overly-complicated way. Here are a few guidelines, all of which probably have appropriate documentation somewhere: ... Sadly this is the typical state of documentation

Re: GTK and threaded applications

2006-02-03 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2/3/2006 2:14 PM, kornelix wrote: I last reported that GTK was making my multi-threaded application run as multiple single threads, one after the other. It was suggested to lock only the GTK calls instead of the whole thread. I tried this. I

Re: is gtk_file_chooser_set_extra_widget redundant?

2006-01-23 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 1/23/2006 10:48 AM, Claudio Fontana wrote: Hello, --- Matthias Clasen [EMAIL PROTECTED] ha scritto: On 1/22/06, Claudio Fontana [EMAIL PROTECTED] wrote: Hello, while extending a GtkFileChooserDialog with some custom widgets using the

Re: Reference to a C++ object in GTK+ callbacks

2005-12-14 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/14/2005 11:19 AM, Stephen Pollei wrote: On 12/13/05, Daryl Lee [EMAIL PROTECTED] wrote: Are you sure that is the right style for that callback? static void rocket_cb(GtkWidget *widget, GdkEventExpose *event, gpointer data) { class

Re: WinXP and secondary screen

2005-12-09 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/9/2005 3:51 AM, [EMAIL PROTECTED] wrote: I am currently working on an application which should show some graphics on a fullscreen window in the secondary monitor. I have looked at the information on

Re: GtkButton doesn't always react on mouse clicks

2005-11-02 Thread Brian J. Tarricone
a bug on bugzilla.gnome.org (after first searching to see if it's been reported already). -brian Best, Nickolai On 11/2/05, *Brian J. Tarricone* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On 11/2/2005 12:07 PM, Nickolai Dobrynin wrote: I have a GtkButton in my

Re: Gtk Xara

2005-10-18 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/18/2005 11:28 AM, David Necas (Yeti) wrote: On Tue, Oct 18, 2005 at 02:17:57PM -0400, Matthias Clasen wrote: This whole discussion is pointless, since GTK+ is LGPL, not GPL... How does this prevent anyone from creating a derived work of

Re: How to use pixmaps in GTK+ applications?

2005-10-16 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Iago Rubio wrote: On Sun, 2005-10-16 at 15:03 +0800, 周清博 wrote: If I use them as ordinary files, how can I know the path after users' installation? What should I do in the configure.ac and Makefile.am? You should install them in a known

Re: problem with gtk_tree_view_set_fixed_height_mode()

2005-10-04 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/4/2005 5:07 AM, Stefan Kost wrote: Brian J. Tarricone schrieb: Hi all, I'm trying to use GtkTreeView's fixed height mode for a playlist that can hold thousands of items, but I'm having a bit of trouble. All I seem to get is: Gtk-CRITICAL

Re: Set position of a Paned widget to 50%

2005-09-19 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 9/18/2005 11:15 PM, Nick Johnson wrote: Hello, I need to set the initial position of a Paned widget to be 50% of the size of the widget itself. However, the Paned widget doesn't have a get_size() method, and so users must adjust this

Re: warn on deprecated

2005-08-18 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Boncek, John wrote: Is there any way to have the compiler warn on the use of deprecated GTK content? Define the macros GTK_DISABLE_DEPRECATED, GDK_DISABLE_DEPRECATED, and, optionally, G_DISABLE_DEPRECATED (if you're using glib directly...).

Re: [GtkMenu] Callback problem with popups submenus

2005-08-17 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Emmanuel saracco wrote: Hi, I have a problem with popup submenus callbacks. The following code display the popup, but the callback is not called: - GtkWidget *menu, *submenu, *item; menu = gtk_menu_new (); item =

Re: Hyperlink Widget

2005-08-05 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matthew Beckler wrote: In this application I am writing, I am going to have an About dialog box. I would like to have a clickable hyperlink label-widget that would open the user's browser to my website. I know that backend browser interfacing is

Re: mounted device list

2005-08-05 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Coppens wrote: On Fri, 5 Aug 2005 21:39:11 +0200 The Saltydog [EMAIL PROTECTED] wrote: Is there some VFS or glib function to get the list of all mounted devices with their mount points, or should I use standard GNU-C libraries?

Re: time consuming function/loop

2005-08-04 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yogesh M wrote: One of the function take long time and blocks gtk_main. I dont want to put it in thread because it contains some part of the code which draws[drawing is not allowed in thread]. is there any way i can make user to interrupt the

Re: GdkEvent -- XEvent

2005-08-02 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tristan Van Berkom wrote: Hi all, As usual, I'm trying to do something that just wasnt' meant to be done :) (otherwise when would I have any fun ?) I'm trying to write a widget that will display a netscape gecko plugin stream on linux, the

Re: pkg-config vs gnome-config

2005-08-02 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark C. Smith wrote: If this message if out of place or already answered, please point me to the right direction and I'll be more than happy to follow up there. I'm working on an app that uses gtk+-2.0 and a gdk_canvas. 'gnome-config' points to

Re: unfocussed windows

2005-07-22 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stefan Kost wrote: A second but more complex idea is to use an virtual frame-buffer like: /usr/X11R6/bin/Xvfb -ac :9 -screen 9 1024x786x16 And the setting this display as the default one before opening any window. Unfortunately this involves

Re: embedding images into icons while compiile time

2005-06-23 Thread Brian J. Tarricone
mohan kumar wrote: hi, I am using a set of png icons in my gtk applications. I keep them in a seperate images directory. whenever i run my application i need them. Is there a way to copy all the images into my executable at compile time. So i need not keep the images when i execute

Re: get size of a GTKImage

2005-06-20 Thread Brian J. Tarricone
[EMAIL PROTECTED] wrote: I am writing some app where I need to move an image around inside a GtkFixed, and I need to get it's size. I create the image from a file with gtk_image_set_from_file() Is there an easy way? I managed to get it's dimensions

Re: Questions about Overlay and multiple key-strokes

2005-05-27 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michal Porzuczek wrote: Question 2. How is it possible to perform key commands such as Ctrl+D for example. Using the key_press_event callback I tried using nested ifs like this to no avail: if (event-keyval == 65507) if (event-keyval == 65361)

Re: GNOME Indentation Style

2005-04-29 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter Bloomfield wrote: On 04/29/2005 07:50:13 AM, John (J5) Palmieri wrote: [ snip ] You should use whatever the project has chosen. If you are starting a new project the majority of GNOME programs are coded using the 8 space tab kernel