Loading Images

2005-05-06 Thread Vishnu Kumar
Hello Can anyone provide me a simple sample code on how to load images using GdkPixmap bcos I find the reference on the GdkPixmaps very hard to follow Thanks ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

gtk_file_chooser_dialog_new

2005-05-06 Thread isil light
I'm new to gtk and I seem to have a problem using this dialog: window = gtk_file_chooser_dialog_new ( .. ); gtk_dialog_run ( .. ); filename = gtk_file_chooser_get_filename ( .. ); gtk_widget_destroy ( window ); When the user selects a file you get these on stderr: failed to read() from server

widget with focus

2005-05-06 Thread Giovanni Manenti
I need to know what I have to do to find the widget that has the focus. Hi Giovanni ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: gtk and hicolor theme

2005-05-06 Thread Matthias Clasen
On Thu, 2005-05-05 at 21:06 -0400, Allin Cottrell wrote: The freedesktop.org URL is spurious (flakiness of wiki?), but that's a minor issue. The more substantial issue is that I don't feel that my gtk app should depend on the installation of gnome themes. Yes, linking to stuff on

problem in saving a pixmap to file

2005-05-06 Thread harshavardhanreddy mandeepala
hi, i used the gdk_pixbuf_save() function to store a pixbuf to file.before that i converted pixmap to pixbuf. but after using gdk_pixbuf_save also the image is not loading to file. so help me to solve this problem. thanking you. m.harshavardhan reddy

Size of a GtkWidget

2005-05-06 Thread Daniel Pekelharing
Hi all, This is probably a stupid question, but how do I get the exact size of a GtkWidget (in pixels)? In all the documentation, I can find only functions for retrieving the requested size or the default size, all of which have warnings of not being necessary correct Thanks -- Daniel

Re: Size of a GtkWidget

2005-05-06 Thread Claudio Saavedra V.
On Fri, 2005-05-06 at 16:14 +0200, Daniel Pekelharing wrote: Hi all, This is probably a stupid question, but how do I get the exact size of a GtkWidget (in pixels)? Maybe gdk_drawable_get_size () can work. In all the documentation, I can find only functions for retrieving the requested

GtkTreeView X GtkCTree

2005-05-06 Thread André Pedralho
Hi all, I'm updating my app code that used to use a GtkCtree implementation... So, how I said, I'm updating it and GtkCtree is deprecated. The solution finded was use GtkTreeView, GtkTreeModel, GtkTreeStore and GtkTreeSignal to do almost everything we used to do with GtkCTree... After a great

problem in saving a pixmap to file

2005-05-06 Thread harshavardhan reddy
hi, i used the gdk_pixbuf_save() function to store a pixbuf to file.before that i converted pixmap to pixbuf. but after using gdk_pixbuf_save also the image is not loading to file. so help me to solve this problem. thanking you. m.harshavardhan reddy

Re: gtk_notebook_remove_page

2005-05-06 Thread Antonio Gomes
someone some days ago sent this link aiming to explain details about On 5/6/05, isil light [EMAIL PROTECTED] wrote: Hello - yes another newbie question ( sorry ) 1) create some widgets 2) gtk_notebook_append_page 3) gtk_notebook_set_current_page 4) user closes tab 5)

Re: gtk_notebook_remove_page

2005-05-06 Thread Antonio Gomes
Hi someone some days ago sent this link aiming to explain details about mapping ... it's very helpfull .. take a look at the widget cycle life section . it explains your question in details http://developer.gnome.org/doc/GGAD/z57.html regards On 5/6/05, isil light [EMAIL PROTECTED] wrote:

Re: Size of a GtkWidget

2005-05-06 Thread Olexiy Avramchenko
Daniel Pekelharing wrote: Hi all, This is probably a stupid question, but how do I get the exact size of a GtkWidget (in pixels)? Hello Use allocation field of GtkWidget structure. Olexiy ___ gtk-app-devel-list mailing list

file saving problem from pixmap.

2005-05-06 Thread harshavardhanreddy mandeepala
hi, i used the gdk_pixbuf_save() function to store a pixbuf to file.before that i converted pixmap to pixbuf. but after using gdk_pixbuf_save also the image is not loading to file.i am using gdk programming on linux federoracore 3. so help me to solve this problem. thanking you. m.harshavardhan

RE: file saving problem from pixmap.

2005-05-06 Thread Boncek, John
See this. http://catb.org/~esr/faqs/smart-questions.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of harshavardhanreddy mandeepala Sent: Friday, May 06, 2005 9:42 AM To: gtk-app-devel-list@gnome.org Subject: file saving problem from pixmap. hi, i

Re: Loading Images

2005-05-06 Thread Dehua Zhao
You can use GdkPixbuf with function gdk_pixbuf_new_from_file(). On Fri, 6 May 2005, Vishnu Kumar wrote: Hello Can anyone provide me a simple sample code on how to load images using GdkPixmap bcos I find the reference on the GdkPixmaps very hard to follow Thanks

Re: widget with focus

2005-05-06 Thread Paul Pogonyshev
Giovanni Manenti wrote: I need to know what I have to do to find the widget that has the focus. Use gtk_window_get_focus (your_top_level_window); This will give you the focused widget in that window. Paul ___ gtk-app-devel-list mailing list

Re: gtk_file_selection_new vs gtk_file_chooser_dialog_new

2005-05-06 Thread Paul Santa Maria
Have you considered trying gtk_file_selection_new() instead? --- [EMAIL PROTECTED] wrote: -- Message: 7 Date: Fri, 6 May 2005 08:48:26 -0400 (EDT) From: isil light [EMAIL PROTECTED] Subject: gtk_file_chooser_dialog_new To: gtk-app-devel-list@gnome.org

Re: Size of a GtkWidget

2005-05-06 Thread Daniel Pekelharing
On Fri, 2005-05-06 at 17:27 +0300, Olexiy Avramchenko wrote: Hello Use allocation field of GtkWidget structure. Olexiy Thanks - this works fine! ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Simple way to display colour on button

2005-05-06 Thread Daniel Pekelharing
Hi all, In my app I use a colour selection dialog to pick a colour. I'd like the button that you have to press to pop up the dialog to show the current colour. Is there any easy way of setting the colour of a button? Thanks -- Daniel Pekelharing ___

Re: Simple way to display colour on button

2005-05-06 Thread Matthias Clasen
On Fri, 2005-05-06 at 19:21 +0200, Daniel Pekelharing wrote: Hi all, In my app I use a colour selection dialog to pick a colour. I'd like the button that you have to press to pop up the dialog to show the current colour. Is there any easy way of setting the colour of a button? Thanks

Re: Simple way to display colour on button

2005-05-06 Thread Daniel Pekelharing
On Fri, 2005-05-06 at 13:28 -0400, Matthias Clasen wrote: In GTK+ 2.6, you can use GtkColorButton. Cool! Thanks! I checked it out GtkColorButton is perfect! ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: problem in saving a pixmap to file

2005-05-06 Thread abhi rocks
hi Could you be a little more specific. It would be helpfull if you could send a snippet of your code. Thank You Abhishek Samuel --- harshavardhanreddy mandeepala [EMAIL PROTECTED] wrote: hi, i used the gdk_pixbuf_save() function to store a pixbuf to file.before that i converted pixmap to