Setting the default values for a class

2007-11-03 Thread Richard Shann
a function static void gtk_label_class_init (GtkLabelClass *class) which is not called within the file, even though it is static. Short of some preprocesser magic, I can't see how this could ever get called. Is there a way to set the class defaults? Richard Shann

Re: gtk-can-change-accels property absent in gtk 2.8.20?

2008-02-07 Thread Richard Shann
Hi Torsten, Thanks for this - curiously I get (denemo:16377): Gtk-CRITICAL **: gtk_settings_set_long_property: assertion `origin != NULL' failed with your code. I'll dig into this. Richard ___ gtk-app-devel-list mailing list

Re: gtk-can-change-accels property absent in gtk 2.8.20?

2008-02-08 Thread Richard Shann
Well, I've passed in a constant string gtk_settings_set_long_property(settings, gtk-can-change-accels, TRUE, .gtkrc:0); and the code has started working - thank you very much! Richard Shann On Fri, 2008-02-08 at 00:19 +0100, Torsten Reuss wrote: On Feb 7, 2008 10:28 PM, Richard

insert-at-cursor signal in GtkTextView

2008-04-12 Thread Richard Shann
-event is working fine, but that leaves you with a lot more work since you have to decide whether a character would be inserted... Richard Shann ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk

Is there a way to invert gtk_ui_manager_get_path()

2008-08-23 Thread Richard Shann
there in some future invocation of the program). Richard Shann ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

GdkBitmap from black white .png file

2009-01-31 Thread Richard Shann
to let the user select a (small) rectangular area in the .png image for use in as the GdkBitmap *mask in the above code. Anyone with a wider view on this stuff? Help would be much appreciated! Richard Shann ___ gtk-app-devel-list mailing list gtk-app

Re: GdkBitmap from black white .png file

2009-02-05 Thread Richard Shann
#gdk-pixbuf-render-threshold-alpha Thank you for this - I have now taken the this approach - adding an alpha channel to a pixbuf created from the .png and then going to xbm format and finally to the GdkBitmap. Richard Shann ___ gtk-app-devel-list mailing

g_spawn and files left locked on windows.

2009-04-27 Thread Richard Shann
in lilypond, or could there be something about the way I invoke it? Richard Shann ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: g_spawn and files left locked on windows.

2009-04-28 Thread Richard Shann
On Mon, 2009-04-27 at 12:52 +0300, Tor Lillqvist wrote: My application invokes the lilypond program using the g_spawn... functions. This works fine on linux, but on windows the files created by lilypond are left locked when lilypond has exited. That sounds very odd and in fact impossible.

Re: g_spawn and files left locked on windows.

2009-04-28 Thread Richard Shann
know if this have the 'locking effect'), and you may interest using a GIOChannel for file operations. --- ajhwb --- richard.sh...@virgin.net wrote: From: Richard Shann richard.sh...@virgin.net To: gtk-app-devel-list@gnome.org Subject: Re: g_spawn and files left locked on windows

Gio library on Debian Lenny

2009-05-15 Thread Richard Shann
Does anyone know if the gio library is working for getting files from the internet in the latest Debian Lenny distribution, x86? I have tried the following code: GError *err = NULL; GFile * file=g_file_new_for_uri (http://www.rshann.plus.com/denemo.html;); GFileInputStream *stream =

Re: Gio library on Debian Lenny

2009-05-15 Thread Richard Shann
On Fri, 2009-05-15 at 19:12 +0300, Paul Pogonyshev wrote: Richard Shann wrote: Does anyone know if the gio library is working for getting files from the internet in the latest Debian Lenny distribution, x86? You probably need GVFS package. GIO itself doesn't contain any implementations

Re: Gio library on Debian Lenny

2009-05-16 Thread Richard Shann
On Sat, 2009-05-16 at 12:00 +, gtk-app-devel-list-requ...@gnome.org wrote: To: richard.sh...@virgin.net Cc: gtk-app-devel-list@gnome.org Message-ID: 20090516022833.415b5...@resin14.mta.everyone.net Content-Type: text/plain; charset=UTF-8 Have you try GNet? http://www.gnetlibrary.org/

Giving GtkFileChooser different backend functions.

2009-05-20 Thread Richard Shann
it was wanting the list of files/directories I would be a happy bunny. Preferably some hooks in the backend but even at the cost of having to monitor version changes... can it be done in a few lines of code? Richard Shann ___ gtk-app-devel-list mailing list

Printing a .png using GtkPrint

2009-11-17 Thread Richard Shann
called ad infinitum. Anyone have a working example? I am using Debian Lenny standard standard packages. Richard Shann ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Custom font for application

2011-07-25 Thread Richard Shann
and other text which it would normally render in some default or use preferred font? Richard Shann http://www.denemo.org ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Custom font for application

2011-07-25 Thread Richard Shann
to switch fonts using markup, but instead use just one font for both regular text and music symbols. So I too need to know, how do you tell a gtk application to use a specific font for all the widget labels and other text which it would normally render in some default or use preferred font? Richard

Signals that do not get emitted

2011-11-20 Thread Richard Shann
widget demo code which I wrote to test out. Richard Shann #include stdio.h #include gtk/gtk.h #include evince-view.h evince_print() { GError *err = NULL; GFile *file; gchar *filename = test.pdf; file = g_file_new_for_commandline_arg (filename); gchar *uri = g_file_get_uri

Re: Signals that do not get emitted

2011-11-21 Thread Richard Shann
on the GtkPrintOperation widget start to work again. I don't know if that is documented anywhere. Richard Shann On Mon, 2011-11-21 at 12:00 +, gtk-app-devel-list-requ...@gnome.org wrote: Message: 4 Date: Sun, 20 Nov 2011 16:13:57 + From: Richard Shann richard.sh...@virgin.net To: gtk

Cursor not visible in GtkTextView

2012-05-28 Thread Richard Shann
window in a GtkVbox in a GtkFrame in a GtkNotebook in a GtkWindow. If, instead I put it directly in a top level window the cursor shows. The Gtk version 2.20.1, does anyone have any insights into this problem? Richard Shann ___ gtk-app-devel-list

Re: Re: DLL Hell on Windows..

2012-08-05 Thread Richard Shann
. Richard Shann ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Location for gspawn_win32_helper.exe in a static build.

2013-02-13 Thread Richard Shann
argument) Anyone know where it should be/if there are environment variables that can be set to help glib here? As it is we cannot spawn processes. Richard Shann ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org

Re: Location for gspawn_win32_helper.exe in a static build.

2013-02-14 Thread Richard Shann
Location for gspawn_win32_helper.exe in a static build. It turns out there are two helper programs, and it was calling the other one gspawn_win32_helper-console.exe which was not installed. Richard Shann ___ gtk-app-devel-list mailing list gtk-app

gdk-pixbuf-query-loaders on Windows does nothing.

2013-10-11 Thread Richard Shann
of times, but otherwise there is no sign of it doing anything. Does anyone have any idea what might be wrong? (I should add that the program runs fine - apart from not loading .svg files for which a loader is present - making extensive use of gtk) Richard Shann

Help replacing GtkDrawingArea with GtkLayout

2014-03-02 Thread Richard Shann
GtkDrawingArea to GtkLayout would be much appreciated. Richard Shann ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re:Help replacing GtkDrawingArea with GtkLayout

2014-03-03 Thread Richard Shann
(); return 0; } Richard Shann From: Richard Shann rich...@rshann.plus.com To: gtk-app-devel-list@gnome.org Subject: Help replacing GtkDrawingArea with GtkLayout Message-ID: 1393771664.4221.117.ca...@debianbox.loc Content-Type: text/plain; charset=UTF-8 I want to replace the existing

Re: Re:Help replacing GtkDrawingArea with GtkLayout

2014-03-03 Thread Richard Shann
On Mon, 2014-03-03 at 16:49 +0100, Stefan Salewski wrote: On Mon, 2014-03-03 at 15:17 +, Richard Shann wrote: I have constructed the following minimal example, Yes indeed, https://developer.gnome.org/gtk3/stable/GtkWidget.html#gtk-widget-set-events This function must be called

Re: Re:Help replacing GtkDrawingArea with GtkLayout

2014-03-03 Thread Richard Shann
On Mon, 2014-03-03 at 16:38 +0001, Bernhard Schuster wrote: On Mon, Mar 3, 2014 at 5:26 PM, Richard Shann rich...@rshann.plus.com wrote: On Mon, 2014-03-03 at 16:49 +0100, Stefan Salewski wrote: On Mon, 2014-03-03 at 15:17 +, Richard Shann wrote: I have constructed

Re: Help replacing GtkDrawingArea with GtkLayout

2014-03-09 Thread Richard Shann
From: Jo?l Kr?hemann j...@weedlight.ch To: gtk-app-devel-list@gnome.org Subject: Re: Help replacing GtkDrawingArea with GtkLayout Message-ID: 1394327737.3369.3.camel@debian Content-Type: text/plain; charset=us-ascii Hi, Didn't before but may be check the following:

Re: Help replacing GtkDrawingArea with GtkLayout

2014-03-10 Thread Richard Shann
On Mon, 2014-03-10 at 09:29 +0100, Joël Krähemann wrote: On Mon, 2014-03-10 at 09:26 +0100, Joël Krähemann wrote: On Sun, 2014-03-09 at 14:03 +, Richard Shann wrote: From: Jo?l Kr?hemann j...@weedlight.ch To: gtk-app-devel-list@gnome.org Subject: Re: Help replacing

Re: Help replacing GtkDrawingArea with GtkLayout

2014-03-11 Thread Richard Shann
On Tue, 2014-03-11 at 13:18 +0100, Joël Krähemann wrote: On Tue, 2014-03-11 at 08:12 +, Richard Shann wrote: On Tue, 2014-03-11 at 04:43 +0100, Joël Krähemann wrote: On Mon, 2014-03-10 at 09:52 +, Richard Shann wrote: On Mon, 2014-03-10 at 09:29 +0100, Joël Krähemann wrote

Re: Help replacing GtkDrawingArea with GtkLayout

2014-03-12 Thread Richard Shann
On Tue, 2014-03-11 at 21:43 +0100, Joël Krähemann wrote: [...] Please consider the documentation of gtk_widget_set_app_paintable() don't believe GtkLayout can do your job. You could try id with a GtkDrawingArea with a cairo surface. I do some drawing in C take a look at

GtkTextView background color when not focused

2014-04-22 Thread Richard Shann
); and the like are not doing it, because presumably these would affect the border of the text. I would prefer not to have to insert and remove tags from the text on the focus signal - is there any way to achieve this otherwise? Richard Shann ___ gtk-app-devel-list

A simple choice dialog won't work...

2015-05-07 Thread Richard Shann
I wanted to pop up two buttons for the user to choose between two options (primary and secondary), returning true or false depending which was chosen. I tried this gboolean choose_option (gchar *title, gchar * primary, gchar * secondary) { GtkWidget *dialog; dialog =

Re: A simple choice dialog won't work...

2015-05-07 Thread Richard Shann
On Thu, 2015-05-07 at 16:21 +0200, Stefan Salewski wrote: On Thu, 2015-05-07 at 13:02 +0100, Richard Shann wrote: From https://developer.gnome.org/gtk3/stable/GtkDialog.html GTK_RESPONSE_REJECT Generic response id, not used by GTK+ dialogs GTK_RESPONSE_ACCEPT Generic response id, not used

Re: GtkFrame has no frame border drawn?

2015-08-11 Thread Richard Shann
On Mon, 2015-08-10 at 15:05 +0100, Emmanuele Bassi wrote: Hi; On 10 August 2015 at 14:51, Richard Shann rich...@rshann.plus.com wrote: Having invested effort in this it is exasperating to discover that GTK+ chooses a default theme that cripples one of the widgets - by failing to draw

GtkFrame has no frame border drawn?

2015-08-09 Thread Richard Shann
against GTK version 3.4.2 on 64-bit Debian Wheezy. The same application built for Windows using GTK 3.6.5 *does* show a line around frames, albeit rather indistinct... Is this a known bug? Richard Shann ___ gtk-app-devel-list mailing list gtk-app

Re: GtkFrame has no frame border drawn?

2015-08-10 Thread Richard Shann
even more recent versions. So I can treat this as a closed issue. Thank you for help Richard Shann Ciao, Emmanuele. On 9 August 2015 at 17:07, Richard Shann rich...@rshann.plus.com wrote: I've recently noticed that the GtkFrames in my application have lost the line drawn around

Re: [Denemo-devel] Tooltips - what am I doing wrong?

2015-11-18 Thread Richard Shann
On Wed, 2015-11-18 at 12:27 +, Emmanuele Bassi wrote: > Hi; > > On 18 November 2015 at 11:16, Richard Shann <rich...@rshann.plus.com> wrote: > > > I've tracked this down, in the latest manual for gtk3: > > https://developer.gnome.org/gtk3/stable/GtkSettings

Re: [Denemo-devel] Tooltips - what am I doing wrong?

2015-11-18 Thread Richard Shann
On Wed, 2015-11-18 at 17:15 +, Emmanuele Bassi wrote: > Hi; > > On 18 November 2015 at 16:55, Richard Shann <rich...@rshann.plus.com> wrote: > > >> > But in the longer term we are coming up to a crunch - the people > >> > developing Gtk are clearly

Re: Which toplevel window is on top?

2015-12-21 Thread Richard Shann
On Sun, 2015-12-20 at 19:22 +, Emmanuele Bassi wrote: > Hi; > > On 20 December 2015 at 18:01, Richard Shann <rich...@rshann.plus.com> wrote: > > I would like to know which of the top-level windows in my application is > > on top. Is there a way of doing this? I see

gtk_image_new_from_file fails on Windows for SVG

2015-12-22 Thread Richard Shann
For a long time now I have been working around gtk_image_new_from_file () not working on windows trying to load SVG images. Instead I have used pb = rsvg_pixbuf_from_file (filename, ); and then gtk_image_new_from_pixbuf (pb) and this works for some SVG images. However, even this is failing

Which toplevel window is on top?

2015-12-20 Thread Richard Shann
for my (simpler) question? Richard Shann ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: [Denemo-devel] Tooltips - what am I doing wrong?

2015-11-28 Thread Richard Shann
On Sat, 2015-11-28 at 12:00 +, gtk-app-devel-list-requ...@gnome.org wrote: > Date: Fri, 27 Nov 2015 20:42:25 +0100 (CET) > From: Lucas Levrel > To: gtk-app-devel-list@gnome.org > Subject: Re: [Denemo-devel] Tooltips - what am I doing wrong? > Message-ID:

Re: [Denemo-devel] Tooltips - what am I doing wrong?

2015-11-18 Thread Richard Shann
On Wed, 2015-11-18 at 10:35 +0100, Johan Vromans wrote: > On Wed, 18 Nov 2015 07:59:38 + > Richard Shann <rich...@rshann.plus.com> wrote: > > > One of the time settings available in the preferences sets the browse > > timeout, choosing a value for this

Re: [Denemo-devel] Tooltips - what am I doing wrong?

2015-11-19 Thread Richard Shann
On Wed, 2015-11-18 at 23:41 +0100, Johan Vromans wrote: > On Wed, 18 Nov 2015 18:49:52 + > Richard Shann <rich...@rshann.plus.com> wrote: > > > I've pushed a fix that turns off tooltips on menus while leaving them on > > everything else (for GTK version >=3.10).

Re: [Denemo-devel] Tooltips - what am I doing wrong?

2015-11-19 Thread Richard Shann
On Thu, 2015-11-19 at 13:33 +, Richard Shann wrote: > On Thu, 2015-11-19 at 12:01 +, Emmanuele Bassi wrote: > > Hi; > > > > On 19 November 2015 at 09:53, Richard Shann <rich...@rshann.plus.com> wrote: > > > On Wed, 2015-11-18 at 23:41 +0100, Johan Vroma

Re: [Denemo-devel] Tooltips - what am I doing wrong?

2015-11-19 Thread Richard Shann
On Thu, 2015-11-19 at 12:01 +, Emmanuele Bassi wrote: > Hi; > > On 19 November 2015 at 09:53, Richard Shann <rich...@rshann.plus.com> wrote: > > On Wed, 2015-11-18 at 23:41 +0100, Johan Vromans wrote: > >> On Wed, 18 Nov 2015 18:49:52 + > >> Richar

Workaround for too-fast tooltips

2016-01-29 Thread Richard Shann
re very difficult to throw off; the tooltip time out is no longer controllable. Richard Shann ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

caret-color (and caret-width?)

2017-01-26 Thread Richard Shann
: rgb(200,128,0);}"; gcp= gtk_css_provider_new(); gtk_css_provider_load_from_data(gcp, str, -1, 0); gtk_style_context_add_provider(gsc, GTK_STYLE_PROVIDER(gcp), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); working nicely). Richard Shann ___ gtk-app-dev

Re: caret-color (and caret-width?)

2017-01-28 Thread Richard Shann
t; Hi, > > Le 26/01/2017 ? 16:57, Richard Shann a ?crit : > > I see at > > > > https://developer.gnome.org/gtk3/stable/chap-css-properties.html > > > > that there is a caret-color property. Is it possible to change the > > thickness of the text caret? >

Re: gtk_dialog_get_action_area() deprecation

2017-01-28 Thread Richard Shann
Widget:cursor-color has been deprecated since version 3.20 and should not be used in newly-written code. Use the caret-color CSS property indicates that these "Style Properties" are not the CSS properties that can be altered for the widget concerned. So where are they documented, on a

Re:How to get objecttype

2016-09-11 Thread Richard Shann
s into the program. > > > > Is there a way to get the objecttype ? > > If it's a gtk-combo we do this, if it's a gtk-entry we do that in the > > program and so on... In GNU-Denemo I use g_type_name (G_TYPE_FROM_INSTANCE (widget)) Richard Shann ___

Re: GTK menus on Ubuntu

2016-10-14 Thread Richard Shann
> Message: 1 > Date: Thu, 13 Oct 2016 09:49:53 -0400 (EDT) > From: Allin Cottrell > To: Jason Benjamin > Cc: gtk-app-devel-list@gnome.org > Subject: Re: GTK menus on Ubuntu > Message-ID: >

gtk_key_snooper deprecation

2016-12-17 Thread Richard Shann
Can anyone suggest a way forward? Richard Shann ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

pango_scan_string() deprecation

2017-01-05 Thread Richard Shann
I see that pango_scan_string() is deprecated since version 1.38 but the documentation doesn't indicate what it should be replaced with - anyone got any ideas? Richard Shann ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https

Re: pango_scan_string() deprecation

2017-01-05 Thread Richard Shann
On Thu, 2017-01-05 at 17:02 +0100, infirit wrote: > Op 01/05/2017 om 03:39 PM schreef Richard Shann: > > I see that pango_scan_string() is deprecated since version 1.38 > > but the documentation doesn't indicate what it should be replaced with - > > anyone got a

Re: gtk_dialog_get_action_area() deprecation

2016-12-31 Thread Richard Shann
his deprecation. Richard > > Best, > Gergely > > > On Sat, Dec 31, 2016, 10:39 Richard Shann <rich...@rshann.plus.com> > wrote: > > The documentation for gtk_dialog_get_action_area() suggests > using > gtk_dialog_add_but

gtk_dialog_get_action_area() deprecation

2016-12-31 Thread Richard Shann
The documentation for gtk_dialog_get_action_area() suggests using gtk_dialog_add_button() etc. However, my application is storing a GtkBox in that area - is there a way to do this, going forward? Richard ___ gtk-app-devel-list mailing list

Re: gtk_dialog_get_action_area() deprecation

2017-01-01 Thread Richard Shann
On Sat, 2016-12-31 at 20:10 +, Emmanuele Bassi wrote: > Hi; > > On 31 December 2016 at 16:03, Richard Shann <rich...@rshann.plus.com> wrote: > > On Sat, 2016-12-31 at 15:44 +, Emmanuele Bassi wrote: > >> Hi; > >> > >> > >> Depreca

Re: How to change GTK+3 label color dynamically

2017-03-16 Thread Richard Shann
g_type_name (G_TYPE_FROM_INSTANCE (w)); gchar *str = g_strdup_printf ("%s {background-color: %s;}", type, color); gcp= gtk_css_provider_new(); gtk_css_provider_load_from_data(gcp, str, -1, 0); g_free (str); gtk_style_context_add_provider(gsc, GTK_STYLE_PROVIDER(gcp), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); } I don't know if there is a memory leak here though... HTH Richard Shann ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: gtk-app-devel-list Digest, Vol 156, Issue 16

2017-04-22 Thread Richard Shann
= gtk_css_provider_new(); gtk_css_provider_load_from_data(gcp, str, -1, 0); g_free (str); gtk_style_context_add_provider(gsc, GTK_STYLE_PROVIDER(gcp), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); } HTH Richard Shann ___ gtk-app-devel-list mailing

Trouble setting the value of a GtkAdjustment

2017-04-24 Thread Richard Shann
("value %p is %f\n", ADJ, gtk_adjustment_get_value (ADJ)); 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8&g

Re: Trouble setting the value of a GtkAdjustment

2017-04-25 Thread Richard Shann
On Mon, 2017-04-24 at 14:48 -0400, cecas...@aol.com wrote: > > Hi Richard, > > It looks like how you add containers makes a difference in this case. > Also the window placement might have to be adjusted after the window > is shown. Here is a try at it. Thank you very much - it seems you are

Re: How to find CSS style syntax changes between Gtk 3.12 and Gtk 3.22

2017-05-13 Thread Richard Shann
On Wed, 2017-05-10 at 18:34 +0100, Emmanuele Bassi wrote: > On 2017-05-08 at 13:57, Richard Shann wrote: > > On Mon, 2017-05-08 at 12:28 +0100, Emmanuele Bassi wrote: > > > > > But I will have to wait for > > > > Debian to catch up with

Re: How to find CSS style syntax changes between Gtk 3.12 and Gtk 3.22

2017-05-07 Thread Richard Shann
On Sun, 2017-05-07 at 17:54 +0100, Emmanuele Bassi wrote: > On 7 May 2017 at 16:52, Richard Shann <rich...@rshann.plus.com> wrote: > > I have a test program that pops up a label with a customized > background > > and foreground color. This works in 3.12 using the

Re: How to find CSS style syntax changes between Gtk 3.12 and Gtk 3.22

2017-05-07 Thread Richard Shann
On Sun, 2017-05-07 at 19:52 +, Emmanuele Bassi wrote: > > On Sun, 7 May 2017 at 19:53, Richard Shann <rich...@rshann.plus.com> > wrote: > > On Sun, 2017-05-07 at 17:54 +0100, Emmanuele Bassi wrote: > > On 7 May 2017 at 16:52, Richard Shann >

How to find CSS style syntax changes between Gtk 3.12 and Gtk 3.22

2017-05-07 Thread Richard Shann
label=gtk_label_new("Label"); set_background_color (label, "#00"); set_foreground_color (label, "#FF00FF"); gtk_widget_set_size_request(label, 400, 400); gtk_container_add (GTK_CONTAINER (eventbox), label); gtk_container_add (GTK_CONTAINER(top_

Re: How to find CSS style syntax changes between Gtk 3.12 and Gtk 3.22

2017-05-08 Thread Richard Shann
On Mon, 2017-05-08 at 08:42 +0100, Emmanuele Bassi wrote: > On 7 May 2017 at 20:57, Richard Shann <rich...@rshann.plus.com> wrote: > > On Sun, 2017-05-07 at 19:52 +, Emmanuele Bassi wrote: > >> > >> On Sun, 7 May 2017 at 19:53, Richard Shann <

Re: How to find CSS style syntax changes between Gtk 3.12 and Gtk 3.22

2017-05-08 Thread Richard Shann
On Mon, 2017-05-08 at 12:28 +0100, Emmanuele Bassi wrote: > On 8 May 2017 at 12:04, Richard Shann <rich...@rshann.plus.com> wrote: > > >> But I'd strongly recommend you use CSS classes instead of styling the > >> bare element name. > >> > >>

g_log_set_fatal_mask() not working for me.

2017-12-17 Thread Richard Shann
main the warning is not converted into a fatal error. I've tried call g_log_set_fatal_mask ("Gtk", 0x) as well, to no avail. This is with Gtk version runtime: 3.22.11, compiled against: 3.22.11 Any suggestions to track down the source of the trouble gratefully

Re: g_log_set_fatal_mask() not working for me.

2017-12-18 Thread Richard Shann
On Sun, 2017-12-17 at 17:54 -0500, cecas...@aol.com wrote: > > Hi Richard, > > This sounds similar to the problem Dino Aljević had in "Scrolled > TreeView and size allocation warnings" in this list in September? > > I can get the warning > > "(treeview4:3830): Gtk-WARNING **: Allocating size

How to get a directory from the user

2018-06-04 Thread Richard Shann
Hi, I have seen GtkFileChooser for getting a file from the user, but how to get a directory (folder)? Richard Shann ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: How to get a directory from the user

2018-06-04 Thread Richard Shann
On Mon, 2018-06-04 at 13:24 +0100, Emmanuele Bassi wrote: > > > On 4 June 2018 at 13:06, Richard Shann > wrote: > > Hi, > > > > I have seen GtkFileChooser for getting a file from the user, but > > how to > > get a directory (fol

g_log_set_fatal_mask () does not appear to be present

2018-09-09 Thread Richard Shann
I used to call g_log_set_fatal_mask () via gdb to catch the place where critical errors happen. But now I get (gdb) call g_log_set_fatal_mask ("Gtk", 0x) No symbol "g_log_set_fatal_mask" in current context. any ideas? Richard Shann ___

Re: g_log_set_fatal_mask () does not appear to be present

2018-09-26 Thread Richard Shann
> Date: Sun, 09 Sep 2018 20:21:54 +0100 > From: Richard Shann > To: gtk-app-devel-list@gnome.org > Subject: g_log_set_fatal_mask () does not appear to be present > Message-ID: <1536520914.1394.1.ca...@rshann.plus.com> > Content-Type: text/plain; charset=&qu

GdkKeymap default for Display problem

2018-12-09 Thread Richard Shann
me to look at the documentation and I see that there is nothing to suggest you can access the GdkKeymap that the GtkWidgets are using - indeed there is nothing to suggest you can create a GdkKeymap other than getting this "default for display" keymap. Is there something I've missed

Re: GdkKeymap default for Display problem

2018-12-09 Thread Richard Shann
a GdkKeymap > other than getting this "default for display" keymap. > > Is there something I've missed here? > > Richard Shann I've created a minimal example of the problem: //gcc -Wall KeyMap-test.c -o KeyMapTest `pkg-config --cflags --libs gtk+-3.0` //Tested on debian s