Re: This pkg-config thing doesn't work for me

2001-04-23 Thread Lokesh Setia
> "Tomasz" == Tomasz Wegrzanowski <[EMAIL PROTECTED]> writes: HI Tomasz, I had exactly the same problem as you have. In my case, upgrading to pkg-config version 0.5.0 (available at gtk+ ftp site), solved the problem. BTW, this is what pkgconfig returns on my system: [lsetia@milkyway]$ ex

Re: Drawing lines in a gtk_layout

2001-04-23 Thread Jose Fernando Diago
On 21 Apr 2001, Havoc Pennington wrote: > > Hi, > > Drawing to a layout you have to draw to layout->bin_window and offset > by layout->xoffset and layout->yoffset. You mean that I should offset the drawing coordinates like this: gdk_draw_line(GTK_LAYOUT(widget)->bin_window, widget->style->bl

Re: Setting background color for the widget of my application

2001-04-23 Thread Havoc Pennington
Ignacio Nodal <[EMAIL PROTECTED]> writes: > Is this function the correct one to change the background color of my > widgets? > > void gtk_widget_set_style(GtkWidget *widget,GtkStyle *style); > > I mean... modifying the "GdkColor bg[5]" field in the GtkStyle > structure.. > No, should use the

Re: This pkg-config thing doesn't work for me

2001-04-23 Thread Havoc Pennington
Tomasz Wegrzanowski <[EMAIL PROTECTED]> writes: > I have stable glib and gtk on my system in /usr. > It's Debian GNU/Linux 2.3 woody i386. > > I downloaded glib and gtk+ from cvs. > I compiled and installed glib to /home/taw/local/. > I set ACLOCAL_FLAGS to '-I /home/taw/local/share/aclocal/'. >

This pkg-config thing doesn't work for me

2001-04-23 Thread Tomasz Wegrzanowski
I have stable glib and gtk on my system in /usr. It's Debian GNU/Linux 2.3 woody i386. I downloaded glib and gtk+ from cvs. I compiled and installed glib to /home/taw/local/. I set ACLOCAL_FLAGS to '-I /home/taw/local/share/aclocal/'. Now I can't ./configure gtk, as it can only see old glib. I t

Setting background color for the widget of my application

2001-04-23 Thread Ignacio Nodal
Is this function the correct one to change the background color of my widgets? void gtk_widget_set_style(GtkWidget *widget,GtkStyle *style); I mean... modifying the "GdkColor bg[5]" field in the GtkStyle structure.. Thanks in advance Ignacio Nodal _

gtk_clist_clear bug?

2001-04-23 Thread bubakka
Hello! I've got a problem. If you clutch the scrollbar and move continually, after a few (about 10) seconds you get the following message: Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width X and height 1 where X is a number that is bigger than 32000 and g

Re: Default GC's

2001-04-23 Thread Havoc Pennington
Tomas Berndtsson <[EMAIL PROTECTED]> writes: > > I couldn't find any description of the default GC's available in the > GtkStyle struct in the documentation. The ones I'm thinking of are: > > GdkGC *fg_gc[5]; > GdkGC *bg_gc[5]; > GdkGC *light_gc[5]; > GdkGC *dark_gc[5]; > GdkGC *mid_g

Re: hello

2001-04-23 Thread John Cupitt
manbinder pal wrote: > 1) if we have no of .C files for the application ,including some .h files , > how do we > compile and run the application in this case. Take a look at the tutorial: http://www.gtk.org/tutorial/sec-compiling.html > 2) the package required for this GTK+ is gtk and g

Re: Pixmap not being rewritten..

2001-04-23 Thread John Cupitt
Tim Burgess wrote: > I sat down this morning and started on my first GTK app. I've got to this > point and I'm stumped as to why the 'bar' pixmap doesn't appear over the > 'base' pixmap...I suspect it's something to do with style but why it may > be is beyond me... Hi Tim, you should do all your

Re: pixmaps and xpm-transparency

2001-04-23 Thread John Cupitt
Tobias Hintze wrote: > > On Sun, Apr 22, 2001 at 02:34:45PM +0200, Tobias Hintze wrote: > > > > > > You need to set the clip mask in the graphics context used for the > > > draw using gdk_gc_set_clip_mask and gdk_gc_set_clip_origin. > > > > yes. this one just works too. > > just one question lef

Re: force redraw on another redraw (was: pixmaps and xpm-transparency)

2001-04-23 Thread John Cupitt
Tobias Hintze wrote: > > On Sun, Apr 22, 2001 at 02:35:19AM +0200, Tobias Hintze wrote: > > On Wed, Apr 18, 2001 at 03:02:37PM +0100, John Cupitt wrote: > > > > > > > > > fixed = gtk_fixed_new(); > > > gtk_box_pack_start( GTK_BOX( hb ), fixed, FALSE, FALSE, 2 ); > > > gtk_

Default GC's

2001-04-23 Thread Tomas Berndtsson
Hi, I couldn't find any description of the default GC's available in the GtkStyle struct in the documentation. The ones I'm thinking of are: GdkGC *fg_gc[5]; GdkGC *bg_gc[5]; GdkGC *light_gc[5]; GdkGC *dark_gc[5]; GdkGC *mid_gc[5]; GdkGC *text_gc[5]; GdkGC *base_gc[5]; GdkGC *bla