Re: text entry color problem

2002-08-20 Thread vyadav

   
hi...
i did like it...i am using gtk 1.2
 pMf is undeclared...what it is ??

 thanx in advance..
  

> >   
> > 
> Hi,
> we use 
> 
> gtk_widget_modify_base( GTK_WIDGET(pMf->textW),   GTK_STATE_NORMAL,
>   color);
> bernd
> -- 
> Bernd Demian <[EMAIL PROTECTED]>
> CSC Ploenzke
> 
> ___
> gtk-list mailing list
> [EMAIL PROTECTED]
> http://mail.gnome.org/mailman/listinfo/gtk-list
> 
> 


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: text entry color problem....

2002-08-20 Thread Bernd Demian

Am Mit, 2002-08-21 um 08.12 schrieb [EMAIL PROTECTED]:
>   hi...
> 
> i want to change the white background of text entry,
> if i change the background color of it then only outline of this
> widget becomes colored...if i change foreground color of it then only text 
> in this gets colored...so how the white background can be changed??
>   please help if anybody has tried it...
>i have written the code like it...
> 
> gdk_color_parse ("yellow", &color);
> rc_style = gtk_rc_style_new ();
> rc_style->bg[GTK_STATE_NORMAL] = color;
> rc_style->fg[GTK_STATE_NORMAL]=color;
> rc_style->color_flags[GTK_STATE_NORMAL] |= GTK_RC_BG;
> rc_style->color_flags[GTK_STATE_NORMAL] |=GTK_RC_FG;
> gtk_widget_modify_style (entry, rc_style);
>  
>   thanx in advance..
>   
> 
Hi,
we use 

gtk_widget_modify_base( GTK_WIDGET(pMf->textW), GTK_STATE_NORMAL,
color);
bernd
-- 
Bernd Demian <[EMAIL PROTECTED]>
CSC Ploenzke

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



text entry color problem....

2002-08-20 Thread vyadav


  hi...

i want to change the white background of text entry,
if i change the background color of it then only outline of this
widget becomes colored...if i change foreground color of it then only text 
in this gets colored...so how the white background can be changed??
  please help if anybody has tried it...
   i have written the code like it...

gdk_color_parse ("yellow", &color);
rc_style = gtk_rc_style_new ();
rc_style->bg[GTK_STATE_NORMAL] = color;
rc_style->fg[GTK_STATE_NORMAL]=color;
rc_style->color_flags[GTK_STATE_NORMAL] |= GTK_RC_BG;
rc_style->color_flags[GTK_STATE_NORMAL] |=GTK_RC_FG;
gtk_widget_modify_style (entry, rc_style);
 
  thanx in advance..
  




  
  
  
  

  
  
  



 
  


 
  




  

 


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



entry color

2002-08-20 Thread vyadav


how the color of widget "entry" can change??

thanx..


  




  
  
  
  

  
  
  



 
  


 
  




  

 


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: glib-2.0.6

2002-08-20 Thread Naofumi Yasufuku

Hi,

Personally I do the following instructions to compile and install glib-2.0.6
on IRIX.

 1. install GNU gettext and libiconv to /usr/local 
(libdir is /usr/local/lib32)

 2. set LD_LIBRARY_PATH
(because rld may complain that there is no -lintl and -liconv)

$ setenv LD_LIBRARY_PATH "/usr/local/lib32:${LD_LIBRARY_PATH}"

 3. run configure and gmake like this

$ cd glib-2.0.6
$ env CPPFLAGS='-I/usr/local/include' \
  LDFLAGS='-L/usr/local/lib32' \
  ./configure --prefix=/usr/local/gtk \
  --libdir=/usr/local/gtk/lib32 \
  --with-libiconv=gnu

$ gmake

 4. install

$ su
$ setenv LD_LIBRARY_PATH "/usr/local/lib32:${LD_LIBRARY_PATH}"
$ gmake install

It works well.

Regards,
--Naofumi

At Tue, 20 Aug 2002 15:21:09 +0200,
Nadir T. Mrabet <[EMAIL PROTECTED]> wrote:
> 
> I am trying to compile glib-2.0.6 on a SGI O2 R1 under IRIX 6.3.
> I use for that :
> setenv CFLAGS -O2 ./configure.
> pkg-config is installed, as is GNU gettext.
> 
> The 'configure' outcome is fine till it stops at the following message error
> signaling the lack of gettext support, although it is installed.
> 
> -./configure output
> 
>...
> 
> checking for LC_MESSAGES... yes
> checking libintl.h usability... yes
> checking libintl.h presence... yes
> checking for libintl.h... yes
> checking for dgettext in libc... no
> checking for bindtextdomain in -lintl... no
> checking if -liconv is needed to use gettext...
> checking for dcgettext in -lintl... no
> configure: error:
> *** You must have either have gettext support in your C library, or use the
> *** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
> 
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



problem reading a non-english file

2002-08-20 Thread Ruben Porras

The following pice (obviously it has other widgets, but I think they
aren't relevant) of code works right with an english file, but when the
file has caracters as "ñ" fails sayin the error

(gtklilo:11289): Gtk-CRITICAL **: file gtktextbuffer.c: line 532
(gtk_text_buffer_insert_at_cursor): assertion `text != NULL' failed


GtkWidget *view_en;
GIOChannel *manpage_en;
GtkTextBuffer *buffer_en;

view_en = gtk_text_view_new();
buffer_en = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view_en));

g_io_channel_read_to_end(manpage_en, &cadena_en, NULL, NULL);   
gtk_text_buffer_insert_at_cursor(buffer_en, cadena_en,-1);
-- 
The chains are broken and the door is open wide
Our eyes adjusting to the light that was denied
And the voices ringing out now
Sing of freedom
And bring a sense of wonder

http://www.es.debian.org/intro/about.es.html



signature.asc
Description: Esta parte del mensaje esta firmada digitalmente


Trivial problem with gtk-pixbuf and copy area ?

2002-08-20 Thread jean-marc Harang

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi All,

I'm a new suscriber on the list, from Toulouse (France) :-) and i begin 
learned gtk some years ago.

I convert a app for use of gdk-pixbuf instead of imlib and I don't understand 
how to render an area of a pixbuf into an another pixbuf, with transparent 
regions... I try gdk_pixbuf_copy_area, without success. 

gdk_pixbuf_composite make the job, but it's very slow...

So I look for  gdk_pixbuf_render_to_drawable_alpha but with a pixbuf as 
destination.

I think I don't understand or miss something essential and so need a little 
help for my app...

Thanks,
- -- 
A+
jmh

PS :  Sorry for my poor english (i was a bad student in the past, and now i 
work for embedded software :-) ... )
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9YsWFYilIC5+/QnYRAhZNAJ0R0AyTDKmBfErMvaHiX1awrBExhACgll1v
jH5u+TFL2FUfjZ/ha2984z8=
=HGrI
-END PGP SIGNATURE-
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: GtkComboBox: How to be notified of selection

2002-08-20 Thread Lars Clausen

On Tue, 20 Aug 2002, John Cupitt wrote:
> Lars Clausen wrote:
>> On 02 Aug 2002, Lars Clausen wrote:
>> 
>>>I'm using a GtkComboBox in Dia for zoom selection.  I can't quite get it
>>>to behave the way I'd like.  It ought to be that when the user selects
>>>an item from the drop-down list (making the drop-down disappear), the
>>>zoom amount should be updated.  However, I haven't found a signal that
>>>will tell me that the user made his or her final selection.
>>>"select-child" and "selection-changed" from the GtkList is called while
>>>the mouse is dragged over the items.  "unmap", "hide" and "unrealize"
>>>don't get called.  I don't want the user to have to press Enter after
>>>selecting from the menu, that's all.  What should I do?
>> 
>> 
>> In the end, I dropped the ComboBox and changed to combined Entry and
> Button
>> with menu-popup.  Works just the way the ComboBox should have.
>> 
>> -Lars
>> 
> 
> Hi Lars, this is a bit late, but I got around this by catching "hide" on 
> the combo's popup window:
> 
>popwin = GTK_COMBO (fred)->popwin;
>gtk_signal_connect (GTK_OBJECT (popwin), "hide",
>GTK_SIGNAL_FUNC (selected),
>(gpointer) xx);

The problem with that is that you're signalled when the menu disappears,
whether or not the user selected an item.  With the popup menu, I am only
notified when an item is actually selected.  

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| Hårdgrim of Numenor
"I do not agree with a word that you say, but I   |
will defend to the death your right to say it."   | Where are we going, and
--Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



glib 2.0.6 configure - fix

2002-08-20 Thread Wes Connell

I've been having troubles getting configure to recognize libraries/includes 
that reside in /usr/local.

By adding CFLAGS, CPPFLAGS, LDFLAGS environment variables to the command line
I've been able to get configure to recognize the libs/includes (such as iconv 
and gettext). 

If you're having the same types of troubles, this may work:

./configure CFLAGS="-I/usr/local/include" CPPFLAGS="-I/usr/local/include" 
LDFLAGS="-L/usr/local/lib"

I'm still trying to figure out if it is a problem with the configure script or
with my ld configuration. Other configure scripts work fine.

Hope this helps some. :)

-- 
Wes!
[EMAIL PROTECTED]
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: glib-2.0.6

2002-08-20 Thread Valdis . Kletnieks

On Tue, 20 Aug 2002 15:21:09 +0200, "Nadir T. Mrabet" 
<[EMAIL PROTECTED]>  said:

> I am trying to compile glib-2.0.6 on a SGI O2 R1 under IRIX 6.3.
> I use for that :
> setenv CFLAGS -O2 ./configure.
> pkg-config is installed, as is GNU gettext.
> 
> The 'configure' outcome is fine till it stops at the following message error
> signaling the lack of gettext support, although it is installed.

> checking for dcgettext in -lintl... no
> configure: error:
> *** You must have either have gettext support in your C library, or use the
> *** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html

And the corresponding messages in 'config.log' say what?  There should be
a nice detailed error report from your compiler in there.
-- 
Valdis Kletnieks
Computer Systems Senior Engineer
Virginia Tech




msg10553/pgp0.pgp
Description: PGP signature


glib-2.0.6

2002-08-20 Thread Nadir T. Mrabet

Hi,

I am trying to compile glib-2.0.6 on a SGI O2 R1 under IRIX 6.3.
I use for that :
setenv CFLAGS -O2 ./configure.
pkg-config is installed, as is GNU gettext.

The 'configure' outcome is fine till it stops at the following message error
signaling the lack of gettext support, although it is installed.

-./configure output
...

checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for dgettext in libc... no
checking for bindtextdomain in -lintl... no
checking if -liconv is needed to use gettext...
checking for dcgettext in -lintl... no
configure: error:
*** You must have either have gettext support in your C library, or use the
*** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html


Any help please.
Thanks,
Nadir Mrabet



begin:vcard 
n:Mrabet;Nadir
tel;fax:+33 (0)3.83.68.32.79
tel;work:+33 (0)3.83.68.32.73
x-mozilla-html:FALSE
org:UHP - Nancy I, School of Medicine;EPI INSERM 0014 & URM/IFREMER 20
version:2.1
email;internet:[EMAIL PROTECTED]
title:Professor of Biochemistry
adr;quoted-printable:;;Laboratoire de Pathologie Cellulaire et=0D=0AMol=E9culaire en Nutrition - Groupe de Bio-informatique Mol=E9culaire et Structurale;Vandoeuvre-lès-Nancy CEDEX;;54505;France
fn:Nadir T. Mrabet
end:vcard



Re: 2 (simple?) questions

2002-08-20 Thread John . Cupitt

Krzysztof Magrel wrote:
> I've got Segmentation Fault :_(
> My function to change active widget looks like:
> 
> void
> przejdz (char *element, GtkWidget * mw)
> {
> // Change active widget to widget with name element
>   GtkWidget *w;
>   if ((w = lookup_widget (mw, element)) == NULL)
> return;
>   gtk_widget_grab_focus (w);
>   return;
> }
> 
> and for example:
> 
> przejdz("entry3",main_window);
> 
> make 1 or 2 seconds without reaction (coursor doesn't) change it's
position
> (program freezes) and after this time window closes with Segmentation
Fault
> message.

Something else is broken :-( maybe you're trying to warp the focus to a 
widget that's not been built properly yet?

This works for me:

--
#include 

int
main (int argc, char *argv[])
{
   GtkWidget *window;
   GtkWidget *vbox;
   GtkWidget *button1;
   GtkWidget *button2;

   gtk_init (&argc, &argv);

   window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
   gtk_window_set_policy (GTK_WINDOW (window), FALSE, TRUE, FALSE);

   vbox = gtk_vbox_new (FALSE, 0);
   gtk_container_add (GTK_CONTAINER (window), vbox);

   button1 = gtk_button_new_with_label ("foo");
   gtk_box_pack_start (GTK_BOX (vbox), button1, TRUE, TRUE, 0);
   button2 = gtk_button_new_with_label ("bar");
   gtk_box_pack_start (GTK_BOX (vbox), button2, TRUE, TRUE, 0);

   gtk_signal_connect_object (GTK_OBJECT (button1), "clicked",
  GTK_SIGNAL_FUNC (gtk_widget_grab_focus),
  GTK_OBJECT (button2));
   gtk_signal_connect_object (GTK_OBJECT (button2), "clicked",
  GTK_SIGNAL_FUNC (gtk_widget_grab_focus),
  GTK_OBJECT (button1));

   gtk_widget_show_all (window);

   gtk_main ();

   return 0;
}
--

John



== 
Fabric of Vision 
Dress and Drapery in Painting 

19 June - 8 September 2002 

For information and tickets: 
http://www.nationalgallery.org.uk/exhibitions/fabric/
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: Pixmap performance

2002-08-20 Thread John . Cupitt

Deekshit Mantampady wrote:
>  In a window I am having (say) 100 pixmap images each of resolution
> 100x100.  I will be dragging each of them frequently. I am having  a
celerom
> 300A PC with 128 MB RAM. What will be the performance in terms of speed,
memory
> and flickering.
> 
> The description given in "Memory Management" section of Gdk-Pixbuf API
reference
> was not satisfying.
> 
> I wanted to clarify all my doubts before I actually start., so that I can
choose
> a better design.

100 x 100 x 100 x 4 bytes == about 4MB, which should be OK. You just 
need to be careful when you do the compositing and painting. You should 
be able to make a little test program in an hour or so if you have any 
doubts.

John



== 
Fabric of Vision 
Dress and Drapery in Painting 

19 June - 8 September 2002 

For information and tickets: 
http://www.nationalgallery.org.uk/exhibitions/fabric/
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: Pixmap performance

2002-08-20 Thread Deekshit Mantampady

Here is one more requirement,

 In a window I am having (say) 100 pixmap images each of resolution
100x100.  I will be dragging each of them frequently. I am having  a celerom
300A PC with 128 MB RAM. What will be the performance in terms of speed, memory
and flickering.

The description given in "Memory Management" section of Gdk-Pixbuf API reference
was not satisfying.

I wanted to clarify all my doubts before I actually start., so that I can choose
a better design.


Deekshit M


"Cupitt, John" wrote:

> Deekshit Mantampady wrote:
> >I have a small doubt regarding pixmap. I have a pixmap with
> resolution of
> >
> > 1x1 pixels. How fast the image will be rendered ? Assuming I
> have a
> > scrolled window of size 100x100. How about the scrolled
> performace(Will it be
> > smooth)..? If this is not the efficient way to display large images,
> is there
> > any better alternative for the same.
>
> Hi Deekshit, my app displays large images.
>
> http://www.vips.ecs.soton.ac.uk/
>
> I mmap() the image file and then for each expose event render just the
> exposed section from disc to the display. It's quite fast and smooth.
>
> I did my own code, but I think the new gdk-pixbuf library in gtk2 will
> render sections of images. The trick (if there is one) is just to not
> ever deal with the whole thing at once.

That is a better one.

>
>
> http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/index.html
>
> John



**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***



RE: 2 (simple?) questions

2002-08-20 Thread Krzysztof Magrel



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of [EMAIL PROTECTED]
> Sent: Tuesday, August 20, 2002 8:09 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Re: 2 (simple?) questions
>
>
> Krzysztof Magrel wrote:
> >>>2. How can I change active widget? Tab key only can change coursor
> >>>position
> >>>to the next widget. I want to change active widget from
> >>
> >>source level. (It
> >>
> >>>depends what user of program will do). I know that it is
> >>
> >>not possible for
> >>
> >>>some widgets (ie.labels, etc).
> >>
> >
> > I use gtk-1.2. I tried to find, but niether gtk_widget_grab_focus or
> > gtk_widget_activate doesnt work for me :(
> > And for 1st question i have no Idea :_(
>
> Hi, gtk_widget_grab_focus() works for me, what problem were
> you having
> with it?
I've got Segmentation Fault :_(
My function to change active widget looks like:

void
przejdz (char *element, GtkWidget * mw)
{
// Change active widget to widget with name element
  GtkWidget *w;
  if ((w = lookup_widget (mw, element)) == NULL)
return;
  gtk_widget_grab_focus (w);
  return;
}

and for example:

przejdz("entry3",main_window);

make 1 or 2 seconds without reaction (coursor doesn't) change it's position
(program freezes) and after this time window closes with Segmentation Fault
message.


>
> There are a bunch of freeze/thaw functions in gtk+-1.2, but
> they don't
> work very well and have all been removed for gtk2 (I think). gtk2 is
> much more sensible about painting the screen and you don't
> need this trick.
>
> John
>
>
>
> ==
> Fabric of Vision
> Dress and Drapery in Painting
>
> 19 June - 8 September 2002
>
> For information and tickets:
> http://www.nationalgallery.org.uk/exhibitions/fabric/
> ___
> gtk-list mailing list
> [EMAIL PROTECTED]
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
> Zgodz sie, co Ci szkodzi... >>> http://link.interia.pl/f163b
>
>

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



question: colors, visuals, please help to understand

2002-08-20 Thread Olexiy Avramchenko

Hello,

   I need to allocate colors in PseudoColor and change their values
in runtime (gtk+-2.0). GDK allows me to allocate a writeable colors
in colormap via gdk_colormap_alloc_colors. But the problem is all
functions I've found are deprecated: gdk_colors_store,
gdk_color_change, gdk_colormap_change.

   This (as I think) means that there will be no support for writeable
colors in future. It's not important for the True/DirectColor but in
the PseudoColor one of the most important features (ability to change
entire screen/window look after colormap change only) will be missing.

   Q: if I'm wrong, please tell me, is there another way (with 
non-deprecated
function) to change the writeable color value ?
   Q: if I'm right (and there is no another way and this is a bug) should
I report to bugzilla ?
   Q: if I'm right (and there is no another way and this is a feature) 
is gtk
really going to the TrueColor-only world?

I'm a deeply sorry if this a stupid or silly question, but I've made two 
posts and
got no answer.

Olexiy


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: Pixmap performance

2002-08-20 Thread John . Cupitt

Deekshit Mantampady wrote:
>I have a small doubt regarding pixmap. I have a pixmap with
resolution of
> 
> 1x1 pixels. How fast the image will be rendered ? Assuming I have
a
> scrolled window of size 100x100. How about the scrolled performace(Will it
be
> smooth)..? If this is not the efficient way to display large images, is
there
> any better alternative for the same.

Hi Deekshit, my app displays large images.

http://www.vips.ecs.soton.ac.uk/

I mmap() the image file and then for each expose event render just the 
exposed section from disc to the display. It's quite fast and smooth.

I did my own code, but I think the new gdk-pixbuf library in gtk2 will 
render sections of images. The trick (if there is one) is just to not 
ever deal with the whole thing at once.

http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/index.html

John



== 
Fabric of Vision 
Dress and Drapery in Painting 

19 June - 8 September 2002 

For information and tickets: 
http://www.nationalgallery.org.uk/exhibitions/fabric/
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Pixmap performance

2002-08-20 Thread Deekshit Mantampady


Hi  All,

   I have a small doubt regarding pixmap. I have a pixmap with resolution of

1x1 pixels. How fast the image will be rendered ? Assuming I have a
scrolled window of size 100x100. How about the scrolled performace(Will it be
smooth)..? If this is not the efficient way to display large images, is there
any better alternative for the same.



Regards
Deekshit M





**Disclaimer

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***



Re: GtkComboBox: How to be notified of selection

2002-08-20 Thread John . Cupitt

Lars Clausen wrote:
> On 02 Aug 2002, Lars Clausen wrote:
> 
>>I'm using a GtkComboBox in Dia for zoom selection.  I can't quite get it
>>to behave the way I'd like.  It ought to be that when the user selects an
>>item from the drop-down list (making the drop-down disappear), the zoom
>>amount should be updated.  However, I haven't found a signal that will
>>tell me that the user made his or her final selection.  "select-child"
>>and "selection-changed" from the GtkList is called while the mouse is
>>dragged over the items.  "unmap", "hide" and "unrealize" don't get
>>called.  I don't want the user to have to press Enter after selecting
>>from the menu, that's all.  What should I do?
> 
> 
> In the end, I dropped the ComboBox and changed to combined Entry and
Button
> with menu-popup.  Works just the way the ComboBox should have.
> 
> -Lars
> 

Hi Lars, this is a bit late, but I got around this by catching "hide" on 
the combo's popup window:

   popwin = GTK_COMBO (fred)->popwin;
   gtk_signal_connect (GTK_OBJECT (popwin), "hide",
   GTK_SIGNAL_FUNC (selected),
   (gpointer) xx);

works in gtlk1.2 anyway

John



== 
Fabric of Vision 
Dress and Drapery in Painting 

19 June - 8 September 2002 

For information and tickets: 
http://www.nationalgallery.org.uk/exhibitions/fabric/
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: 2 (simple?) questions

2002-08-20 Thread John . Cupitt

Krzysztof Magrel wrote:
>>>2. How can I change active widget? Tab key only can change coursor
>>>position
>>>to the next widget. I want to change active widget from
>>
>>source level. (It
>>
>>>depends what user of program will do). I know that it is
>>
>>not possible for
>>
>>>some widgets (ie.labels, etc).
>>
> 
> I use gtk-1.2. I tried to find, but niether gtk_widget_grab_focus or
> gtk_widget_activate doesnt work for me :(
> And for 1st question i have no Idea :_(

Hi, gtk_widget_grab_focus() works for me, what problem were you having 
with it?

There are a bunch of freeze/thaw functions in gtk+-1.2, but they don't 
work very well and have all been removed for gtk2 (I think). gtk2 is 
much more sensible about painting the screen and you don't need this trick.

John



== 
Fabric of Vision 
Dress and Drapery in Painting 

19 June - 8 September 2002 

For information and tickets: 
http://www.nationalgallery.org.uk/exhibitions/fabric/
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: Zoom-In/Out of image

2002-08-20 Thread John . Cupitt

gdk-pixbuf has functions for scaling images

http://developer.gnome.org/doc/API/2.0/gdk-pixbuf/gdk-pixbuf-scaling.html


Subhankar Chakraborty wrote:
> I have a drawing area on which I have to render an image. I am using 
> GdkRGB images. And rendering using gdk_draw_rgb_image ().
>  
> Could anyone please tell me if it is possible to Zoom into/out of images 
> in GTK. If yes, then how ?





== 
Fabric of Vision 
Dress and Drapery in Painting 

19 June - 8 September 2002 

For information and tickets: 
http://www.nationalgallery.org.uk/exhibitions/fabric/
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



Re: button with icon...

2002-08-20 Thread John . Cupitt

Have you read the gtk tutorial? This is very easy:

http://www.gtk.org/tutorial/ch-buttonwidget.html

Gourav wrote:
> Hi
> I am also working on the same for my project but it seems that you can't
set
> pixmap on button for that you have to make your own widget with something
> like event box.
> I am trying to make it possible with above idea you can also try and
please
> let me know if you got success and if i got success then i can send you
the
> idea for the same if you want it.
> Bye
> Amit
> - Original Message -
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, August 09, 2002 3:41 PM
> Subject: button with icon...
> 
> 
> 
>>
>>hi all..
>>   how can we make a button with icon as a circle on it..
>> thanks.in advance...
>>



== 
Fabric of Vision 
Dress and Drapery in Painting 

19 June - 8 September 2002 

For information and tickets: 
http://www.nationalgallery.org.uk/exhibitions/fabric/
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list