GTK program (a Gimp plugin) crashes only on Windows

2012-04-25 Thread Alessandro Francesconi
Hello everyone, I'm facing a problem with the development of a plug-in for The Gimp program. I'm writing here because it uses GTK libs and, actually, the problem regards a crash of a GTK widget. The plug-in is composed of a main window and several pop-ups. One of those smaller dialogs has a Gt

GtkFileChooser + GtkFileFilter = can't select any file

2013-04-21 Thread Alessandro Francesconi
Hello everyone, I’m the developer of BIMP (http://alessandrofrancesconi.it/projects/bimp), that’s a plugin for Gimp written using the version 2.16 of GTK. Some of my users are complaing a bug when trying to select image files using the classic GtkFileChooser: the list of files into every

[GTK+2] gtk_widget_modify_bg() doesn't work on Windows

2013-06-27 Thread Alessandro Francesconi
Hello, I have a piece of code that shows a matrix of 5x5 GtkButtons. Each one must be black or white. I managed to do this with gtk_widget_modify_bg(), for example: // prepare colors GdkColor color_black, color_white; gdk_color_parse ("black", &color_black); gdk_color_parse ("white", &colo

GTK+ 2: Hide ComboBox item

2013-09-24 Thread Alessandro Francesconi
Hello, I’m using a GTK+ 2.16 ComboBox and I wondering if there is a way to set the visibility of a given element programmatically. For example, having a ComboBox with 10 elements I want to hide (so more than setting it to inactive) the 3rd element, so I need a function like gtk_combo_box_se

GTK+2 - GtkFileChooserButton shows (none) as selected folder and crashes

2013-10-18 Thread Alessandro Francesconi
Some of my application’s users declare a strange problem with a particular widget: GtkFileChooserButton. I needed to provide a way to select a single folder, so I used the widget this way: GtkWidget* button_outfolder = gtk_file_chooser_button_new(_("Select output folder"), GTK_FILE_CHOOSER_A

Working with embedded images with GResource, GdkPixbuf and GtkWidget

2018-11-11 Thread Alessandro Francesconi
Hello, I need to show some images inside my GTK+ 2.32 application so I decided to embed them using GResource compiler. I’ve prepared an XML file like this: logo.png <…..> And after “glib-compile-resources.exe --target=icons.c --generate icons.xml”, I correctly have

RE: Working with embedded images with GResource, GdkPixbuf and GtkWidget

2018-11-11 Thread Alessandro Francesconi
just following? https://developer.gnome.org/gdk-pixbuf/stable/gdk-pixbuf-File-Loading.html#gdk-pixbuf-new-from-file Bests, Joël On Sun, Nov 11, 2018 at 6:23 PM Alessandro Francesconi wrote: > > Hello, > > > > I need to show some images inside my GTK+ 2.32 application so I decided

RE: Working with embedded images with GResource, GdkPixbuf and GtkWidget

2018-11-11 Thread Alessandro Francesconi
It works! I didn’t know about gdk_pixbuf_new_from_resource() thank you. Ale From: infirit Sent: Sunday, November 11, 2018 11:11:53 PM To: Alessandro Francesconi; gtk-app-devel-list@gnome.org Subject: Re: Working with embedded images with GResource