Re: what's the best way to handle variables and objects?

2006-03-17 Thread Andreas Stricker
John (J5) Palmieri wrote: Yes. It depends on your application. Some people will subclass a GObject and add the window object plus all of the other widgets as aggregates. If you are feeling more daring you can subclass your main window where your app class would inherit from GtkWindow. However

How to get the GtkTreeStore from a GtkTreeView object

2006-03-17 Thread Michele Bendazzoli
Hi all, This is the first time I write in this list, I'm a novice with GTK library and linux development enviroment so excuse me if the questions I will ask are trivial. I made a new libglade project with anjuta, I design my interface with glade and I'm at the point I'm able to open a sou

Re: Handling Unix signals in a GTK+ application

2006-03-17 Thread Freddie Unpenstein
> You are absolutely right; mutexes /are/ useless from signal > handlers. It seems the only reasonable way is to use a pipe(). How about GAsyncQueue's? They're supposed to be thread safe without the need of locking... How about within a single thread? Add a unix signal number in the signal ha

Re: How to get the GtkTreeStore from a GtkTreeView object

2006-03-17 Thread Michele Bendazzoli
Michele Bendazzoli ha scritto: Hi all, This is the first time I write in this list, I'm a novice with GTK library and linux development enviroment so excuse me if the questions I will ask are trivial. I made a new libglade project with anjuta, I design my interface with glade and I'm at

Need your help on the widget's width and height

2006-03-17 Thread yeajchao
Hello everyone I am writing my own gtk widget and i want my own widget's height and width ratio is 0.8, like this: widget->allocation.height / widget->allocation.width == 0.8 and my gtk_mywidget_size_allocate() function like this: Start of my code

Question about GdkColor

2006-03-17 Thread yeajchao
Hello all I am chinese,I am sorry for my terriblly poor English ! I have confused about GdkColor In general,the RGB color mode ,the red or green or blue's value is from 0 to 255 But ,the GdkColor ,the value is from 0 to 65535 My question is ,how to map (0--255) to (0--65

Re: Question about GdkColor

2006-03-17 Thread Eduardo M KALINOWSKI
yeajchao wrote: >Hello all > I am chinese,I am sorry for my terriblly poor English ! > > I have confused about GdkColor > > In general,the RGB color mode ,the red or green or blue's value is from 0 >to 255 >But ,the GdkColor ,the value is from 0 to 65535 > > My question is ,ho

Re: Question about GdkColor

2006-03-17 Thread Cédric Lucantis
Le Vendredi 17 Mars 2006 13:43, Eduardo M KALINOWSKI a écrit : > yeajchao wrote: > >Hello all > > I am chinese,I am sorry for my terriblly poor English ! > > > > I have confused about GdkColor > > > > In general,the RGB color mode ,the red or green or blue's value is > > from 0 to 255 >

subscribe

2006-03-17 Thread Jerome Le Saux
subscribe ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Need your help on the widget's width and height

2006-03-17 Thread Cédric Lucantis
Le Vendredi 17 Mars 2006 13:17, yeajchao a écrit : > Hello everyone > I am writing my own gtk widget > and i want my own widget's height and width ratio is 0.8, like this: > >widget->allocation.height / widget->allocation.width == 0.8 > > and my gtk_mywidget_size_allocat

Hide focus border

2006-03-17 Thread Hannes Mayr
Hello, is there a way to hide or to make invisible the dotted focus border? I'm developing an application for a small display on an embedded board and there is no mouse pointer, just a keyboard with several buttons to move the selection up and down in a treeview. If I set the selection to the

Re: Handling Unix signals in a GTK+ application

2006-03-17 Thread Tristan Van Berkom
Freddie Unpenstein wrote: You are absolutely right; mutexes /are/ useless from signal handlers. It seems the only reasonable way is to use a pipe(). How about GAsyncQueue's? They're supposed to be thread safe without the need of locking... How about within a single thread?

Theme not affecting titlebar on windows xp... help needed

2006-03-17 Thread Plummer, Jeff-P56711
I am using the C# port of GTK+ on Windows XP, and I'm trying to write an app that is skinnable. Below is my simple test code that attempts to set the theme of the window. It sets the theme for all the widgets inside the main window, but it doesn't set the theme of the main window (titlebar). Does

Re: Theme not affecting titlebar on windows xp... help needed

2006-03-17 Thread Michael L Torrie
On Fri, 2006-03-17 at 14:26 -0700, Plummer, Jeff-P56711 wrote: > I am using the C# port of GTK+ on Windows XP, and I'm trying to write an > app that is skinnable. Below is my simple test code that attempts to > set the theme of the window. It sets the theme for all the widgets > inside the main wi

RE: Theme not affecting titlebar on windows xp... help needed

2006-03-17 Thread Plummer, Jeff-P56711
An application looks strange if the inside boxes have one theme, and the outsides window has a different theme (i.e. default windows titlebar, close, minimize, maximize buttons). There has to be a way to make a windows application look like something other than a boring looking windows app. ---

Re: Theme not affecting titlebar on windows xp... help needed

2006-03-17 Thread David Necas (Yeti)
On Fri, Mar 17, 2006 at 03:37:11PM -0700, Plummer, Jeff-P56711 wrote: > An application looks strange if the inside boxes have one theme, and the > outsides window has a different theme (i.e. default windows titlebar, > close, minimize, maximize buttons). > > There has to be a way to make a windows

Re: Theme not affecting titlebar on windows xp... help needed

2006-03-17 Thread Wallace Owen
On Fri, 2006-03-17 at 15:29 -0700, Michael L Torrie wrote: > On Fri, 2006-03-17 at 14:26 -0700, Plummer, Jeff-P56711 wrote: > > I am using the C# port of GTK+ on Windows XP, and I'm trying to write an > > app that is skinnable. Below is my simple test code that attempts to > > set the theme of the

Re: Theme not affecting titlebar on windows xp... help needed

2006-03-17 Thread Michael L Torrie
On Fri, 2006-03-17 at 15:05 -0800, Wallace Owen wrote: > Maybe he remembers the cool looking themes that Enlightenment did, or > the various themes that Gnome's manager provides, confusing window > decoration themability that's the domain of window managers with the > button/label/etc. gui element

Re: Theme not affecting titlebar on windows xp... help needed

2006-03-17 Thread Michael L Torrie
On Fri, 2006-03-17 at 23:48 +0100, David Necas (Yeti) wrote: > Boring is not the word I would use, what about familiar, > consistent, predictable, or integrated? Agreed. The problem with GTK on windows always used to be it looked like a horrible, out-of-place motif app. Now with the WIMP theme t

Re: Theme not affecting titlebar on windows xp... help needed

2006-03-17 Thread Gus Koppel
"Plummer, Jeff-P56711" wrote: > An application looks strange if the inside boxes have one theme, and the > outsides window has a different theme (i.e. default windows titlebar, > close, minimize, maximize buttons). > > There has to be a way to make a windows application look like something > othe

RE: Theme not affecting titlebar on windows xp... help needed

2006-03-17 Thread Plummer, Jeff-P56711
You all are probably right. That blue titlebar is just so boring compared to my cool linux desktop. Windows can do the cool themes with tools like windowblinds, but that costs money. And I was just thinking if spicing up my apps from within the app itself. -Original Message- From: Micha

Re: Theme not affecting titlebar on windows xp... help needed

2006-03-17 Thread Michael L Torrie
On Sat, 2006-03-18 at 00:38 +0100, Gus Koppel wrote: > However, then you would have to manage all tasks the window manager > takes care of by yourself, i.e. minimizing and maximizing the window on > request and providing correct drag behaviour. For resizability of your > windows you would still hav

Re: Hide focus border

2006-03-17 Thread Justin Clift
Hannes Mayr wrote: Hello, is there a way to hide or to make invisible the dotted focus border? I'm developing an application for a small display on an embedded board and there is no mouse pointer, just a keyboard with several buttons to move the selection up and down in a treeview. If I set th

Re: Theme not affecting titlebar on windows xp... help needed

2006-03-17 Thread Amitesh Singh
Hi To do Resize ,First Make Border of Window lets say north,north-west,north-east,east,east-south,south,south-west .. add events to each widegts and connect to callback functions which do resizing .. g_signal_connect(G_OBJECT(event_no