Re: Gtk+3 application Internationalization

2016-04-15 Thread A. da Mek
How is localisation done in the new system? In the same way you localize your application's strings For simple programs, I do not bother to do my own localization, because most of needed words are already available in localization files of GTK and its components. Thus I define: #define

Re: Getting a pointer to a dialog's 'Cancel' button

2011-05-04 Thread A. da Mek
how do I obtain a pointer to the dialog's 'Cancel' button so that I can connect a signal handler to it? I think that you can also connect to the response signal of the dialog and check the response ID. I looked for functions like gtk_dialog_get_child() or gtk_window_get_child_with_id() or

Re: gtk3: FileChooser schema not found

2011-04-13 Thread A. da Mek
I downloaded the mingw32-gtk3-3.0.6-1.6.noarch.rpm and everthing would work fine, except that there is this unfortunate affair with Glib-GIO-ERROR **: Settings schema 'org.gtk.Settings.FileChooser' is not installed Shall I copy the org.gtk.Settings.FileChooser.gschema.xml to some other

Nobody ever used GTK_STOCK_FILE?

2010-01-12 Thread Pavel A. da Mek
I wonder why GTK_STOCK_COLOR_PICKER GTK_STOCK_DIALOG_AUTHENTICATION GTK_STOCK_DIRECTORY GTK_STOCK_DND GTK_STOCK_DND_MULTIPLE GTK_STOCK_FILE GTK_STOCK_MISSING_IMAGE are not included in the array GtkStockItem builtin_items in the source file gtkstock.c How they are expected to be used when they

simple internalisation (was: Nobody ever used GTK_STOCK_FILE?)

2010-01-12 Thread Pavel A. da Mek
For example, having File stock item doesn't make much sense, since files usually carry their own name and this is what should be displayed. Most programs have the File menu item in the tool bar. To create menu items from stock items is a simple way to present translated labels for all

Re: Close GTK Main window

2009-09-24 Thread Pavel A. da Mek
Is it possible to close a GTK main window through the code? gtk_widget_destroy (mainWindow); The application can continue running after the window is destroyed, if you simply omit the usual g_signal_connect (G_OBJECT (mainWindow), destroy, G_CALLBACK (gtk_main_quit), NULL); P.A.

Re: cairo context for pixbuf

2009-03-26 Thread Pavel A. da Mek
- Original Message - Subject: Re: goocanvas vs crcanvas,which better? Is there standard facility for creating cairo context for pixbuf? Like gdk_cairo_create() for drawables. pixels = gdk_pixbuf_get_pixels (pixbuf); width = gdk_pixbuf_get_width (pixbuf); height =

Re: Toolbar text makes toolbar very, very wide

2009-01-07 Thread Pavel A. da Mek
When I turn on toolbar button labels Text Below Items (System Preference Appearance Interface), the toolbar gets much, much wider than it seems it should. There's lots of wasted space and it makes the toolbar for the app I'm working on almost useless on smaller screens. Does anyone have

Re: gtktextview with gdkpixbuf saving into file

2008-11-28 Thread Pavel A. da Mek
anyone know a way to save a gtktextview/gtktextbuffer with embedded gdkpixbuf into a file. A correction to the suggested solution: In the procedure void open_gtb (GtkTextView *textView, const gchar *srcFileName) delete the call: gtk_text_buffer_deserialize_set_can_create_tags ( buffer,

Re: Building and packaging for Windows

2007-10-31 Thread Pavel A. da Mek
Can someone share ideas about how to compile a GTK application for Windows and package it so it includes GTK and its dependencies? To develop GTK applications under Windows I am using Dev-C++ which includes Mingw compiler http://sourceforge.net/projects/dev-cpp/ GTK is usually already

Re: Building and packaging for Windows

2007-10-31 Thread Pavel A. da Mek
GTK is usually already installed with GIMP; Presumably not everyone is interested in installing GIMP just to get a copy of GTK+. Is there a better choice of bitmap graphic editor than GIMP? (I am just curious, not starting flamewar :-) Of course, there may be some people who are not at all

serial ports

2007-05-14 Thread Pavel A. da Mek
When I want to use serial ports, shall I write separate code for Windows and for Linux, or is there some library function which would allow to do it in the platform independent way? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org