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 > http://www.gtk.org/api/2.6/gdk/multihea

Re: WinXP and secondary screen

2005-12-09 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/9/2005 2:15 PM, Andreas Schou Værge wrote: > "Brian J. Tarricone" <[EMAIL PROTECTED]> wrote: > >>My guess is that, on Windows, the multihead support is >>showing up >>similarly as how Xinerama works

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) >>>{ >>

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

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

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

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

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 attach

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

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* > s

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

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 (

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 distrib

Re: No dynamic libs of glib

2006-10-24 Thread Brian J. Tarricone
You could also look at config.log and find where the check for shared library support is, and see if there are any clues in the output. -brian > > thanks in advance > > laurent > > > > "Brian J. Tarricone" <[EMAIL PROTECTED]> a écrit : Laurent

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

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 awa

Re: transparent gtkwindow

2007-02-07 Thread Brian J. Tarricone
Suma H.S wrote: > thanks...shall look into that. > But, do u by any chance know how to use multiple masks for the function > gtk_widget_shape_combine_mask ()? > If I try to call this function multiple times using different mask > everytime, only the effect of the last call is seen. > I want to have

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, tutori

Re: gdk_window_at_pointer and foreign windows

2007-02-20 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 20 Feb 2007 11:37:59 + Kevin O'Riordan wrote: > Thanks for the reply. I was helping someone look at a problem they > were having with embedding a native application in the Eclipse > framework on Linux/GTK. It works fine for the most part (

Re: How to capture keystrokes when GTK menu is open?

2007-02-20 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 20 Feb 2007 22:34:38 +1100 Justin Clift wrote: > Whenever any gtk program has it's menu open, keystrokes don't seem to > be processed for anything other than what's in the menu itself. i.e. > the up, down, and enter keys work (and maybe short

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 p

Re: Bypassing Force Quit

2007-05-16 Thread Brian J. Tarricone
On Wed, 16 May 2007 20:54:34 +0200 David Nečas (Yeti) wrote: >On Wed, May 16, 2007 at 11:28:55AM -0700, Brian J. Tarricone wrote: > >> This is caused by the window manager, not gtk. It thinks the >> application isn't responding because it takes too long to return from >

Re: How to get the titles for all top level windows

2007-05-22 Thread Brian J. Tarricone
On Tue, 22 May 2007 16:33:49 -0700 Sreeram Akella wrote: >I need to develop an application that lists all top level windows along >with the corresponding titles. I tried using the method >gdk_windows_get_toplevels() to return the GList of all top level >windows on the default screen on the default

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

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

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

Re: Getting a GDK_CONFIGURE event from a GtkImage

2007-06-25 Thread Brian J. Tarricone
On Mon, 25 Jun 2007 15:13:30 -0600 Jim George wrote: >Is there some way I can obtain a GDK_CONFIGURE event from a GtkImage >widget? I tried putting the GtkImage inside a GtkEventBox and >connecting a handler to "configure-event", without success. I also >manually enabled GDK_STRUCTURE_MASK, even t

Re: Getting a GDK_CONFIGURE event from a GtkImage

2007-06-25 Thread Brian J. Tarricone
On Mon, 25 Jun 2007 17:41:51 -0600 Jim George wrote: >[...] caused an infinite loop, because I'm trying to >do the following: > >gboolean solar_cal_pixbuf_resize(GtkWidget *widget, GtkAllocation >*alloc, gpointer user_data) >{ > GtkImage *img_widget = user_data; > GdkPixbuf *pixbuf = gtk_image_g

Re: Newbie Question: How i can use glib-2.0 in my c-programm ?

2007-06-26 Thread Brian J. Tarricone
On Tue, 26 Jun 2007 23:27:25 +0200 Kai Szymanski wrote: >Hi! > >As i search the web for a util-library that i can use in my >c-programms, i found glib-2.0. So i decide to install it on my system >(debian 4.0 - libglib-2.0 and libglib-2.0-dev). When i try to use it, >i did'nt work. The Source (a si

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

Re: drawing in a not-callback-function

2007-10-02 Thread Brian J. Tarricone
Daniel Dieterle wrote: > Hi, > > i'm just beginning to collect some experience with gtk+ and glade. > > My goal is to draw regularly a circle on an other position. I think the > right way doing this, is to use a timer-function. It should be something > like this: > > gint draw_satellite( gpointe

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

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, n

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 ___ gtk-app-devel-li

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_ex

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 o

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

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

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

Re: recommended way to create a render loop with gtkglext

2007-12-21 Thread Brian J. Tarricone
Chris H wrote: > Hello, > I'm writing a GLSL shader editor and I need to be able to create a loop that > will force the gtkglext widget to constantly refresh at 60Hz or less if the > frames take too long to render. I've tried to copy the code from the > logo.cexample but it just isn't refreshing. H

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: 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: Button in Gtk

2008-02-21 Thread Brian J. Tarricone
Ajax John wrote: > > I want to know what is the difference does it make when a Button is > decleared as > GtkWidget *button; > GtkButton *button; > > I'm confused which one to used in my program. > In simple words when should I declare my button as Gtkwidget * and as > GtkButton *. There's no di

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 ow

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,

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

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 y

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 som

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 your

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 d

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 c

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 the

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

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

Re: Question aboutusing message dialog to ask confirmation

2008-05-16 Thread Brian J. Tarricone
On Fri, 16 May 2008 19:19:55 +0100 John M Collins wrote: > I want to have a "do you really want to do this" type question and I'm > trying to use a message dialog thus: > > GtkWidget *dlg = gtk_message_dialog_new(GTK_WINDOW(previous), > GTK_DIALOG_DESTROY_WITH_PARENT, > GTK_MESSAGE_QUESTION, >

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: Creating a non-focused window

2008-05-22 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

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, anik

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

Re: Windows over Windows

2008-06-15 Thread Brian J. Tarricone
On Sun, 15 Jun 2008 18:50:30 + dhk wrote: > I like the hide idea, but when I try to hide the main window nothing > happens. The basic logic I'm using to try to hide the main window > when a new window pops up after selecting from the menu in the main > window is: GtkWidget > *tlwin=gtk_widg

Re: g_signal_connect

2008-06-15 Thread Brian J. Tarricone
On Sun, 15 Jun 2008 19:40:22 +0100 Carlos Pereira wrote: > For the sake of elegance, which version people like more? > > 1) g_signal_connect (widget, "signal", > G_CALLBACK (callback), data); I think this was the "intended" use -- the first param is of type gpointer so you don't have to use a ca

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? > > > G

"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 tha

Re: `GtkNotebook' has no property named `sensistive'

2008-08-28 Thread Brian J. Tarricone
Roland Roberts wrote: I have a notebook where one of the tabs is another notebook. When the device which corresponds to that tab is disconnected, I want to make the tab insensitive. So in the callback I have something like this: g_object_set(tab_widget, "sensistive", FALSE, NULL); When I

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

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 do

Re: how can I get a backtrace from inside my program?

2008-10-31 Thread Brian J. Tarricone
Garth's KidStuff wrote: I have a large Gtk app running on Ubuntu and I'd love to be able to log stack trace information when unusual events occur. Any ideas on where to look for this? If you don't mind that it only works on Linux, with glibc and gcc, take a look at backtrace() and backtrace_

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

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, yo

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 . Compile with suppli

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 applic

Re: gtk_main nesting, and how to free/destroy widgets

2009-02-01 Thread Brian J. Tarricone
On Mon, 2 Feb 2009 17:05:40 +1000 Dan Ium wrote: > Does there always need to be at least one gtk_main active, or is it ok > to do call gtk_main after gtk_main_quit is called on the inner most > loop? And if so, do you have to call gtk_init again before you call > gtk_main after the inner most loop

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

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. Tarriconewrote: 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 wi

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 alt

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

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

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

Re: Widget realization with respect to current theme

2009-07-21 Thread Brian J. Tarricone
On Tue, Jul 21, 2009 at 17:57, Brian Tietz 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 then add it t

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

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.

Re: "widget_class->event" not working

2009-08-26 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.

Re: Anyone know how to make a GtkEntry expand to fill a cell in a table?

2009-08-26 Thread Brian J. Tarricone
On 08/26/2009 12:55 PM, Boggess Rod wrote: > Before someone suggests the GTK_EXPAND option when attaching to the > table, I tried that. It works horizontally, but not vertically. AFAICT, you can't make it expand vertically. A quick reading of the gtk source suggests that it always requests the h

Re: Threads and g_idle_add()

2009-08-26 Thread Brian J. Tarricone
On 08/26/2009 07:57 PM, Marshall Lake wrote: > I have several g_idle_add() calls from within secondary threads. Is it > okay for a secondary thread to end while an idle function it had added > is still active? Yup. All idle functions run in the main thread regardless of from while thread they'r

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

Re: Error in gthread.h?

2009-09-30 Thread Brian J. Tarricone
On 09/30/2009 04:25 PM, John Coppens wrote: > On Wed, 30 Sep 2009 16:12:50 -0700 > "Brian J. Tarricone" wrote: > >>> if (G_LIKELY ((gpointer) g_atomic_pointer_get (value_location) != >>> NULL)) return FALSE; >>> else >>> return g_o

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" wrote: > >> That's odd. Are you sure you don't have mixed versions of glib >> installed somehow? > > I was convinced that I hadn't, be

Re: Is there a general signal a-la "text-edited" for GtkEntry

2009-10-05 Thread Brian J. Tarricone
On 10/05/2009 01:34 PM, Todor Todorov wrote: > I was looking at the docs for GtkEntry in search of a general signal > which is emitted when the text in the entry changes - no matter the > reason. See GtkEditable::changed: http://library.gnome.org/devel/gtk/stable/GtkEditable.html#GtkEditable-cha

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 m

Re: Creating an aggregating GtkContainer

2009-11-18 Thread Brian J. Tarricone
On Wed, Nov 18, 2009 at 10:35, Per Hermansson 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 is that the widget's si

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 us

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 sign

  1   2   >