Exporting Animated GIF's

2006-08-09 Thread Christopher Anderson
Hello there. I would like to save a series of Pixbuf's as an animated GIF. I'm wondering if I can use gdk_pixbuf_save() for this. I can't seem to find out for sure if it supports the GIF format. And even if it does, I'm not sure how to do the animation stuff. The GIMP can obviously do this, and I'v

Re: transperent color for drawing area

2005-07-19 Thread Christopher Anderson
What do you mean by transparent? What is "behind" the drawing area that you would like to show through? Chris On 7/18/05, Yogesh M <[EMAIL PROTECTED]> wrote: > when creatin a new drawing area, it starts with a > black bg. How to have a transperent background. > >

Re: g_list behavior: what am I doing wrong?

2005-07-19 Thread Christopher Anderson
Ah, I see. Thanks for showing that pitfall, I could easily have done the same thing. Cheers, Chris Anderson On 7/14/05, Allin Cottrell <[EMAIL PROTECTED]> wrote: > On Thu, 14 Jul 2005, Christopher Anderson wrote: > > > I am curious, could you explain your solution? > >

Re: variables in g_signal_connect

2005-07-19 Thread Christopher Anderson
Jeez, the question is answered already! Chris On 7/14/05, Gyözö Both <[EMAIL PROTECTED]> wrote: > use GINT_TO_POINTER: > > Horizontal_Zoom_In_clicked(GtkWidget *widget, gpointer gt) > g_signal_connect ((gpointer) Horizontal_Zoom_In, "clicked", >G_CALLBACK > (H

Re: g_list behavior: what am I doing wrong?

2005-07-14 Thread Christopher Anderson
I am curious, could you explain your solution? Thanks, Chris Anderson On 7/14/05, Allin Cottrell <[EMAIL PROTECTED]> wrote: > On Thu, 14 Jul 2005, Allin Cottrell wrote: > > > This must be something simple... > > It was, sorry. Stupidity over what g_list_next() does. > > Allin Cottrell > _

Re: variables in g_signal_connect

2005-07-14 Thread Christopher Anderson
You should use the GINT_TO_POINTER() macro on your variable. Then use GPOINTER_TO_INT() to extract the int back out of the pointer. See this: http://developer.gnome.org/doc/API/2.0/glib/glib-Type-Conversion-Macros.html#GINT-TO-POINTER:CAPS This method will work, but only for integers (since poi

Re: What's the deal with gtkglarea?

2005-07-08 Thread Christopher Anderson
Madeningly, it is not included with Fedora, or Mandrake. Fortunately, on Mandrake at least, it is easy to install with urpmi (assuming correct repositories are set up). I assume it can also easily be installed on Fedora with yum. Chris Anderson On 7/7/05, Ken Siersma <[EMAIL PROTECTED]> wrote: >

Re: [gdk] How use gdk-pixbuf...

2005-07-08 Thread Christopher Anderson
> How to get GdkDrawable from GdkPixbuf? Here's one way: 1. Create an empty pixmap: GdkPixmap *pix_work; pix_work = gdk_pixmap_new(widget->window, xsize, ysize, -1); 2. Draw your pixbuf (which I assume you have already created) onto the pixmap: gdk_draw_pixbuf(pix_work, NULL, pixbuf, 0, 0, 0,

Re: How to hide initialigation screen in FC3

2005-07-08 Thread Christopher Anderson
Hi there. No offense, but I think this question would be more appropriately asked at: www.linuxquestions.org or www.fedoraforum.org On 7/7/05, harshavardhanreddy mandeepala <[EMAIL PROTECTED]> wrote: > HI > I am using Linux Fedora Core 3. > When we swith on linux system it will show booting info

Re: GtkNotebook problem

2005-07-05 Thread Christopher Anderson
At first, I would suspect that the use of deprecated widgets could cause this problem. As it turns out, GtkClist is indeed deprecated (use GtkTreeView instead). However, GtkEntry is not deprecated, so I am surprised that it too doesn't work properly. I would go through the GTK 2.x documentation and

Re: GTK dialog ESC key problem

2005-06-30 Thread Christopher Anderson
The problem is that, as Tim said, hitting cancel emits a GTK_RESPONSE_DELETE_EVENT, not a GTK_RESPONSE_CANCEL. So with your code, if the user hits escape, your if statement will go to the "ok" part. Here's what you should use instead: switch (response) { case GTK_RESPONSE_CANCEL:

Re: How can I display the buttons in a dialog's action area vertically?

2005-06-23 Thread Christopher Anderson
The documentation says the action_area is indeed a GtkHButtonBox. I doubt that you can change this to a GtkVButtonBox, because that is not the way dialog widgets normally behave. Perhaps, instead, you could put all the choices as entries in a GtkComboBox. Then simply have the usual Ok and Cancel bu

Re: Changing the color of an image/pixbuf

2005-06-23 Thread Christopher Anderson
Does the .gif file have transparency? If not, try making the "background" areas of the image transparent, and see what happens. Chris On 6/22/05, Lola Smith <[EMAIL PROTECTED]> wrote: > Hello, > > I have a pixbuf in a file which I have to change the > color of everytime I use it. Is it even poss

Re: spanned table cell expansion

2005-06-17 Thread Christopher Anderson
Could you post a bit of code so we can get a better idea of what's going on? Chris On 6/17/05, Karl H. Beckers <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm having this effect where my table cells aren't expanding as I expect > them to. If somebody could shed some light here (perhaps provide a >

Re: Acquring RGB values from GdkPixbuf

2005-06-15 Thread Christopher Anderson
To convert to greyscale, just look through each pixel, apply the transformation you mentioned, and then set all three components to that value: value = 0.299*Red+0.587*Green+0.114*Blue; Red = value; Green = value; Blue = value; Chris On 6/15/05, Christopher Anderson <[EMAIL PROTECTED]>

Re: Acquring RGB values from GdkPixbuf

2005-06-15 Thread Christopher Anderson
if this helps Chris On 6/15/05, Michal Porzuczek <[EMAIL PROTECTED]> wrote: > On 6/15/05, Christopher Anderson <[EMAIL PROTECTED]> wrote: > > I'm wondering what would happen if you converted the image to > > grayscale and then displayed it. > >

Re: radio button size

2005-06-15 Thread Christopher Anderson
I don't think you can change the size of the actual button, as this is determined by the system you are running on. You could perhaps create your own radio button widget and write custom drawing code for it. Chris Anderson On 6/15/05, Boncek, John <[EMAIL PROTECTED]> wrote: > Yes, I can change th

Re: Acquring RGB values from GdkPixbuf

2005-06-15 Thread Christopher Anderson
Are you displaying the captured pixbuf to the screen so you can see what it looks like? If so, does it look as you would expect? Chris Anderson On 6/15/05, Michal Porzuczek <[EMAIL PROTECTED]> wrote: > Hi, > > I am getting RGB videofeed from a camera and I am storing it in a > PixBuf, from this

Re: postioning of window

2005-06-09 Thread Christopher Anderson
I beleive you can just use gtk_window_set_position () on your main window. Chris Anderson On 6/9/05, Mohit Gogia <[EMAIL PROTECTED]> wrote: > is there any way that i can position gtk window at a particular > location on the screen..like at the bottom right corner? > > > -- > ---