Re: how to hide close button in gtk dialog

2005-08-09 Thread Gus Koppel
Yogesh M wrote: > found it, sometimes it is neccessary to avoid > confusion. > > for example in a dialog i have a cancel button, now if > the window show a close button, it is a confusion that > whether the window closes or the cancel activates or both. It's common convention that title bar clos

set current worlking directory to executable path

2005-08-09 Thread Yogesh M
I am using Gtk in windows(as well as linux). I want to set the environment path to executable path so i can load icons present in the executable path. I will be happy if it works both on linux and windows. __ Do You Yahoo!? Tired of spam? Yahoo! M

Pango docs

2005-08-09 Thread Russell Shaw
Hi, I compiled pango. How do i turn the stuff in pango/docs/ in to some kind of manual? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: set current worlking directory to executable path

2005-08-09 Thread Tor Lillqvist
Yogesh M writes: > I am using Gtk in windows(as well as linux). I want to set the > environment path to executable path so i can load icons present in > the executable path. I will be happy if it works both on linux and > windows. On Linux, do a readlink on /proc/self/exe (if it exists), and g

Re: how to hide close button in gtk dialog

2005-08-09 Thread Calum Benson
On Tue, 2005-08-09 at 09:56 +0200, Gus Koppel wrote: > It's common convention that title bar close buttons of windows do a > cancel-close. Especially if inside the window there are both "Cancel" > and "OK" buttons as well. It may be convention, but it still confuses people. The HIG would love to

GtkSpinbutton up/down buttons remain depressed

2005-08-09 Thread Neoklis
Hi all, I am trying to write a gtk2-based gui for an app that visualizes antenna properties for different frequencies. The user changes freq by clicking the up/down buttons of a GtkSpinbutton that holds the current value of the frequency. I use the value_changed signal to read the new freq and

Bayer Pattern images in Pixbuf or Pixmaps

2005-08-09 Thread Michal Porzuczek
Hi I was wondering if Pixmaps or Pixbufs support Bayer Pattern data and if not if there is a simple conversion technique to get a Bayer Pattern image into an RGB or other image format that could be used properly by a Pixbuf or Pixmap. Thanks a lot, Michal

extracting a portion of a GdkPixmap

2005-08-09 Thread Boncek, John
I have a GdkPixmap. I need to programmatically extract a new GdkPixmap from this image based on x- and y-coordinates, plus width and height. The x, y, width, and height parameters will vary too much at runtime to store all the copies needed. Conceptually this seems simple. But from among the en

Re: extracting a portion of a GdkPixmap

2005-08-09 Thread John Cupitt
On 8/9/05, Boncek, John <[EMAIL PROTECTED]> wrote: > I have a GdkPixmap. I need to programmatically extract a new GdkPixmap > from this image based on x- and y-coordinates, plus width and height. The > x, y, width, and height parameters will vary too much at runtime to store > all the copies need

Re: extracting a portion of a GdkPixmap

2005-08-09 Thread Brian J. Tarricone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Boncek, John wrote: > I have a GdkPixmap. I need to programmatically extract a new GdkPixmap > from this image based on x- and y-coordinates, plus width and height. The > x, y, width, and height parameters will vary too much at runtime to store > all

How to filter the font selection dialog in GTK-2.x

2005-08-09 Thread Saperion
gtk_font_selection_dialog_set_filter and gtk_font_selection_set_filter do not exist in 2.x I want to filter the fonts shown in the dialog to fixed pitch fonts only. I searched the archive and the question has been asked before but never answered. Lets see what happens this time. Norman Sap

RE: extracting a portion of a GdkPixmap

2005-08-09 Thread Boncek, John
Thanks to those who replied. gdk_draw_drawable is working. I know you have to unref certain kinds of objects. Do you have to unref a GdkPixmap when finished with it? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian J. Tarricone Sent: Tuesday, Augus

Re: Bayer Pattern images in Pixbuf or Pixmaps

2005-08-09 Thread Stefan Kost
it would be helpful if you tell us what the heck a 'bayer pattern' is ... Michal Porzuczek wrote: Hi I was wondering if Pixmaps or Pixbufs support Bayer Pattern data and if not if there is a simple conversion technique to get a Bayer Pattern image into an RGB or other image format that could be

Re: Bayer Pattern images in Pixbuf or Pixmaps

2005-08-09 Thread Tor Lillqvist
Stefan Kost writes: > it would be helpful if you tell us what the heck a 'bayer pattern' is ... See for instance http://www.cambridgeincolour.com/tutorials/sensors.htm . That was the first Google hit when searching the words "bayer array" (without the quotes). > > I was wondering if Pixmaps or

Color Initialization

2005-08-09 Thread MEA-MikeFriedrichs
Lists, OS: win2k/XP Using Unix/Linux you can use an .rc to initialize parameters, like a default color set, anytime GTK+ is used. What is the approach to initialize a default color set when using win2k/XP without adding code to every application? Thanks, MikeF ___

Re: extracting a portion of a GdkPixmap

2005-08-09 Thread Michal Porzuczek
On 8/9/05, Boncek, John <[EMAIL PROTECTED]> wrote: > Thanks to those who replied. gdk_draw_drawable is working. I know you > have to unref certain kinds of objects. Do you have to unref a GdkPixmap > when finished with it? Yes you should ___ gtk-app-d

Color Initialization

2005-08-09 Thread Tor Lillqvist
MEA-MikeFriedrichs writes: > Using Unix/Linux you can use an .rc to initialize parameters, You mean .gtkrc-2.0? > like a default color set, anytime GTK+ is used. What is the approach to > initialize a default color set when using win2k/XP without adding code to > every application? Th