Re: GtkEntry font in rc file

2006-04-18 Thread Andreas Stricker
All I want to do is change the font of a named GtkEntry widget in a resource file. It used to work in gtk1.2. I have spent hours with various combinations of "widget *.name.*" etc. to no avail. Does anyone know how to do this in gtk2 ? You didn't describe exactly what you did. What name ha

event logger on fc4 - i386

2006-04-18 Thread rachit goel
hi , i am new to linux. but has some experience on programming gtk apps. i would like to do the following things on on my linux workstations 1. get which window is active at any given time. That is need a notification when a window ,thread , and process bewcomes active, gets focu

event logger on fc4 - i386

2006-04-18 Thread rachit goel
hi , i am new to linux. but has some experience on programming gtk apps. i would like to do the following things on on my linux workstations 1. get which window is active at any given time. That is need a notification when a window ,thread , and process bewcomes active, gets focus

event logger on fc4 - i386

2006-04-18 Thread rachit goel
hi , i am new to linux. but has some experience on programming gtk apps. i would like to do the following things on on my linux workstations 1. get which window is active at any given time. That is need a notification when a window ,thread , and process bewcomes active, gets focus

problem: gtk_image gives critical error

2006-04-18 Thread Deependra Shekhawat
Hello friends, This is my code: struct splash { GtkWidget *splash_image; }; void func1(void) { GtkWidget *img; struct splash p; img=gtk_image_new(); p.splash_image=img; g_signal_connect(G_OBJECT(button1), "clic

Re: problem: gtk_image gives critical error

2006-04-18 Thread David Necas (Yeti)
On Tue, Apr 18, 2006 at 03:05:51AM -0700, Deependra Shekhawat wrote: > Hello friends, > This is my code: > > struct splash > { > GtkWidget *splash_image; > }; > void func1(void) > { > GtkWidget *img; > struct splash p; This structure is created on stack and exists only until the

Pango font metric discrepency

2006-04-18 Thread nerdy
Hello, I would like to know why there is a difference in the font metrics between simillar fonts in windows and linux. For example for arial font of size 34, the ascent, descent and char width has values of 32, 7 and 9 respectively in windows MFC . But when using gtk pango, the values are 43,

Re: problem: gtk_image gives critical error

2006-04-18 Thread Deependra Shekhawat
Dear, When I print the address of p in the funcl it prints a address. In the callback function it also prints the same for ptr. Then what's the problem. Also I use structures to pass data all the time to the callback function then there's no error but with this image widget there seems any probl

RE: problem: gtk_image gives critical error

2006-04-18 Thread Sailaxmi korada
void on_butt_clicked(GtkButton *button,gpointer data) { struct splash *ptr; ptr= malloc(sizeof(splash)); ptr = data; } g_signal_connect(G_OBJECT(button1), "clicked", G_CALLBACK(on_butt_clicked), (gp

RE: problem: gtk_image gives critical error

2006-04-18 Thread Deependra Shekhawat
Hello, It doesn't work. The error is still there. Regards --- Sailaxmi korada <[EMAIL PROTECTED]> wrote: > > void on_butt_clicked(GtkButton *button,gpointer > data) > { > struct splash *ptr; > ptr= malloc(sizeof(splash)); > ptr = data; > } > g_signal_connect(G_OBJECT(butt

Re: problem: gtk_image gives critical error

2006-04-18 Thread David Necas (Yeti)
On Tue, Apr 18, 2006 at 03:42:43AM -0700, Deependra Shekhawat wrote: > When I print the address of p in the funcl it prints a > > address. > In the callback function it also prints the same for > ptr. > Then what's the problem. The address does not change, but the part of stack it points to is o

Re: problem: gtk_image gives critical error

2006-04-18 Thread Andreas Stricker
When I print the address of p in the funcl it prints a address. In the callback function it also prints the same for ptr. Then what's the problem. Whether the address keeps the same or not, it points to an invalid position in memory. This is quite basic C skill. Also I use structures to pas

Re: problem: gtk_image gives critical error

2006-04-18 Thread Deependra Shekhawat
Hello, I am not such a experienced programmer. I didn't get you. How do I allocate the structures in heap. And My othersp program worked very well with structures in callback (i didn't used heaps). Regards --- "David Necas (Yeti)" <[EMAIL PROTECTED]> wrote: > On Tue, Apr 18, 2006 at 03:42:43AM

Re: problem: gtk_image gives critical error

2006-04-18 Thread Deependra Shekhawat
Hello, Thanks alot ! I used g_new() and allocated memory using heap. This I did in funcl then passed the address to callback also and in the callback also I used heap. It worked for me ! Anyway I learnt alot from here ! Regards --- "David Necas (Yeti)" <[EMAIL PROTECTED]> wrote: > On Tue, Apr 1

Auto resizing of children?

2006-04-18 Thread Leon Ross
Hello, Here is my dilema. I am using a scrolled window to contain multiple label and combo box entry. The number of pairs is based on the users message selection. If there are alot of them and you have to scroll then the combo box is the size it should be. If there is three (the minimun number of

List of functions available against gtk/glib version(s)?

2006-04-18 Thread Justin Clift
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, Just tried compiling an app on Solaris 10, that I've been developing on Linux. A _bunch_ of errors ensured, mainly due to my using glib/gtk functions that are in the (newer) versions installed on my Linux box. Looking through the html docs f

List of functions available against gtk/glib version(s)?

2006-04-18 Thread Fernando Apesteguía
Look in your gtk headers to know what is available and what is not. At least I do this. Best regards! -- Forwarded message -- From: Justin Clift <[EMAIL PROTECTED]> Date: 18-abr-2006 14:07 Subject: List of functions available against gtk/glib version(s)? To: GTK App Dev Mailing Li

Re: List of functions available against gtk/glib version(s)?

2006-04-18 Thread Justin Clift
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fernando Apesteguía wrote: > Look in your gtk headers to know what is available and what is not. > At least I do this. Yeah. I was hoping for something a bit more efficient. :) Regards and best wishes, Justin Clift > Best regards! -BEGIN PG

Re: List of functions available against gtk/glib version(s)?

2006-04-18 Thread Daniel Atallah
On 4/18/06, Justin Clift <[EMAIL PROTECTED]> wrote: > Does anyone have, or know of, any kind of comprehensive list of which > functions are/aren't available for a specific version of GLib/GTK? I use the API docs for this, for example, at http://developer.gnome.org/doc/API/2.0/glib/index.html there

Re: Crashes with GTK 2.8.12 and above

2006-04-18 Thread Enrico Tröger
On Wed, 12 Apr 2006 22:38:34 +0100, Chris Vine <[EMAIL PROTECTED]> wrote: > On Tuesday 11 April 2006 22:08, 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 ins

Re: sidebars with gtk ?

2006-04-18 Thread Stefan Kost
Hi Kal, I would suggest to look at the GtkExpander and pack the sideback into the expander and the expander to the left. Then it can be hidden and shown by the user. Stefan Am Montag, den 17.04.2006, 22:46 -0700 schrieb Muzaffer Kal: > Hi, > I am working with this app http://home.nc.rr.com/gtkwa

Re: Pango font metric discrepency

2006-04-18 Thread Behdad Esfahbod
On Tue, 18 Apr 2006, nerdy wrote: > Hello, > > I would like to know why there is a difference in the font > metrics between simillar fonts in windows and linux. For > example for arial font of size 34, the ascent, descent and char > width has values of 32, 7 and 9 respectively in windows MFC . > B

Re: Compiling problems in W98

2006-04-18 Thread Joakim Majander
Joakim Majander kirjoitti 18.04.2006 kello 00:18: > I'm developing a native w32 application on CygWin. So far I've used > XP but, > I would like to compile on W98 as well. > > I just installed CygWin and GTK 2.4.7 developement stuff from > http://www.gimp.org/~tml/gimp/win32/downloads.html > > C

Split-pane Qs

2006-04-18 Thread Joshua A. Andler
Hi fellow gtk hackers! :) I have 2 questions that are related. I'll explain the intended use and then ask the questions. In Inkscape we're putting color swatches in the main UI. We would like for the swatch area to be re-sizable (if a condition can be met), and without writing a bunch of new c