umang gupta wants to chat

2008-12-18 Thread umang gupta
---

umang gupta wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-c3d03a4e24-bac53fd783-3fc1009d2fdc890c
You'll need to click this link to be able to chat with umang gupta.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with umang gupta, visit:
http://mail.google.com/mail/a-c3d03a4e24-bac53fd783-2b21a1d38b

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into conversations
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

Gmail and Google Talk are still in beta. We're working hard to add new features
and make improvements, so we might also ask for your comments and suggestions
periodically. We appreciate your help in making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: status bars with multiples part

2008-12-18 Thread David Grundberg
Add labels as children to the statusbar. You'll have to to it in code, 
since glade won't allow it for some reason. Peek inside the gtk source 
to see how to set the proper Gtk Style name for the added labels. 
(something with frame IIRC)


From: Luiz Rafael Culik Guimaraes l...@xharbour.com.br

Dear Friends

is possible to create an statusbar in gtk with multiples parts?

example
part 1 show the filename, part 2 show row number, part 3 show col number, 
part 4 show ins/CAPS status on/off


Regards
Luiz 

  


___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: gtk_fixed_move called from size-allocated event freezes the GUI

2008-12-18 Thread Giuseppe Torelli
On Wed, Dec 17, 2008 at 9:53 AM, Giuseppe Torelli colossu...@gmail.com wrote:
 I have a gtk fixed widget with a viewport as a child. I connected the
 size-allocated signal to the gtk fixed widget:

Ok, I solved by using a gtk_alignment instead of gtk_fixed as
suggested on www.gtkforums.com ;)

-- 
Colossus
Imagination, a simple and lightweight DVD slide show maker -
http://imagination.sf.net
Xarchiver, a Linux GTK+2 only archive manager - http://xarchiver.xfce.org
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


getwindowRect

2008-12-18 Thread Luiz Rafael Culik Guimaraes

Dear Friends

is their any function or way in gtk to emulate GetWindowRect() and return 
the widget top/left/bottom/right position?


Regards
Luiz 


___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Accessing PixBuf pixels

2008-12-18 Thread Dov Grobgeld
It is almost correct except the fact that the rows of a pixbuf may be
padded. You are therefore supposed to use gdk_pixbuf_get_rowstride(pixbuf)
to get the distance between the rows.

Here is e.g. an example of vertically flip an image:

   guint8 *buf = gdk_pixbuf_get_pixels(img);
   gint w = gdk_pixbuf_get_width(img);
   gint h = gdk_pixbuf_get_height(img);
   gint rs = gdk_pixbuf_get_rowstride(img);
   gint row_idx, col_idx;

   for (row_idx=0; row_idxh/2; row_idx++)
 {
   guint8 *ptr1 = buf+rs * row_idx;
   guint8 *ptr2 = buf+rs * (h-row_idx-1);

   for (col_idx=0; col_idxw; col_idx++)
 {
   guint8 tmp_r = *ptr1;
   guint8 tmp_g = *(ptr1+1);
   guint8 tmp_b = *(ptr1+2);
   guint8 tmp_alpha = *(ptr1+3);
   *ptr1++ = *ptr2;
   *ptr1++ = *(ptr2+1);
   *ptr1++ = *(ptr2+2);
   *ptr1++ = *(ptr2+3);
   *ptr2++ = tmp_r;
   *ptr2++ = tmp_g;
   *ptr2++ = tmp_b;
   *ptr2++ = tmp_alpha;
 }
 }

Hope this helps.

Regads,

2008/12/18 Luka Napotnik luka.napot...@gmail.com

 Hello. I have some difficulties with manipulation of pixels in the
 GdkPixbuf data buffer. I use the following loop to iterate thought
 each pixel:

 ---
 n_channels = gdk_pixbuf_get_n_channels(pixbuf);
 guchar *pixel;
 guchar *data = gdk_pixbuf_get_pixels(pixbuf);

 for (i = 0; i  width*height; i++) {
pixel = buffer + i * n_channels;

pixel[0] = 100; /* Red channel */
pixel[1] = 100; /* Green channel */
pixel[2] = 100; /* Blue channel */
pixel[3] = 100; /* Alpha channel */
 }
 ---

 Is this the right way to handle a RGBA buffer?

 Greets,
 Luka
 ___
 gtk-app-devel-list mailing list
 gtk-app-devel-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: gdk-pixbuf

2008-12-18 Thread Dov Grobgeld
Just loop over the pixels and calculate a gray level through a linear
combination of R, G, and B. For example ppmtopgm uses:

grey = .299 r + .587 g + .114 b

Then assign the resulting gray to the red, green, and blue components, and
voila! You've got yourself a gray scale image.

See my previous post for an example of how to loop over a GdkPixbuf.

Regards,
Dov

2008/12/18 frederico schardong frede@gmail.com

  I need some API, which has the power to transform any RGB image to
 grayscale (8-bit) and I can map the image, creating a vast array[height in
 pixels][width in pixels] in which each cell has a value from 0 to 255,
 corresponding to the values of the pixels.

 With gdk-pixbuf can I do that?
 ___
 gtk-app-devel-list mailing list
 gtk-app-devel-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list