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 o

GdkKeymap default for Display problem

2018-12-09 Thread Richard Shann
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 mi

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

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: 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 (folder)?

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

Change shape of GtkScale with CSS for GTK < 3.20 and > 3.20

2018-05-02 Thread Cyril Richard
Hi, I am trying to change the shape of a GTKScale. To do it I use a CSS sheet. The following CSS code gives something's good, like in attachment. .midtone-scale { background-image: -gtk-gradient(linear, left top, right top, from(black), to(shade(white, 0.95))); padding: 5px; } .m

How to caught signal from the popup list of a GtkEntryCompletion

2018-04-16 Thread Cyril Richard
, in order to navigate in the completion list with the two arrows and to validate with entry keys. I would like something equivalent to popup-shown from GtkComboBox I guess. In order to know in my function "key-press-event" if the popup is shown or not to deal with it. Cheers, Cyr

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 > > "(treevi

g_log_set_fatal_mask() not working for me.

2017-12-17 Thread Richard Shann
n 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 gratef

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 Gtk 3.20

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 wrote: > > >> But I'd strongly recommend you use CSS classes instead of styling the > >> bare element name. > >> > >> CSS selectors in GTK+ work exactl

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 wrote: > > On Sun, 2017-05-07 at 19:52 +, Emmanuele Bassi wrote: > >> > >> On Sun, 7 May 2017 at 19:53, Richard Shann > >> wrote: > >> > >>

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 > wrote: > > On Sun, 2017-05-07 at 17:54 +0100, Emmanuele Bassi wrote: > > On 7 May 2017 at 16:52, Richard Shann > wrote: > >

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 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 syntax > > > > "

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

2017-05-07 Thread Richard Shann
vent_box_new (); GtkWidget *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_ad

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

Trouble setting the value of a GtkAdjustment

2017-04-24 Thread Richard Shann
t ("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>&l

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

2017-04-22 Thread Richard Shann
); const gchar *type = 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),

Re: How to change GTK+3 label color dynamically

2017-03-16 Thread Richard Shann
ar *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: caret-color (and caret-width?)

2017-01-28 Thread Richard Shann
> From: Colomban Wendling > To: gtk-app-devel-list@gnome.org > Subject: Re: caret-color (and caret-width?) > Message-ID: <6524684c-f52e-ec20-0906-b63224766...@herbesfolles.org> > Content-Type: text/plain; charset=windows-1252 > > Hi, > > Le 26/01/2017 ? 16:57,

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

caret-color (and caret-width?)

2017-01-26 Thread Richard Shann
color: 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-ap

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 any i

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

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 wrote: > > On Sat, 2016-12-31 at 15:44 +, Emmanuele Bassi wrote: > >> Hi; > >> > >> > >> Deprecations will only impact you i

Re: gtk_dialog_get_action_area() deprecation

2016-12-31 Thread Richard Shann
ome reason that this macro is not simply put into a header). Richard ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: gtk_dialog_get_action_area() deprecation

2016-12-31 Thread Richard Shann
ning the design 17 years in to this project, unfortunately. For now, I see that I can get at the action area via action_area = gtk_widget_get_parent (cancelbutton); which will be ok unless the GtkDialog widget gets some new internal implementation. Perhaps this will be useful to other developers

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 gtk-app

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

Re: GTK menus on Ubuntu

2016-10-14 Thread Richard Shann
st" approach -- that is, apply this mechanism only to programs > that have been properly tested as working well under it. In the case > of my application the main menus are set up using the GtkUIManager and > GtkAction APIs, and the trouble (or one trouble) with uni

Re:How to get objecttype

2016-09-11 Thread Richard Shann
m. > > > > 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 __

Workaround for too-fast tooltips

2016-01-29 Thread Richard Shann
ry 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

gtk_image_new_from_file fails on Windows for SVG

2015-12-22 Thread Richard Shann
ng rgb color parsing, so avoided that syntax, but I still can't get the images to load on Windows. The Gtk version being built (and run) against is 3.6.5 Any suggestions what might be causing the trouble in LilyPond's output? Richard ___ gtk-a

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 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 that > > You can only s

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
tips on its menu items - perhaps they were forced to abandon them when the Gtk developers decided to make them pop up uncontrollably fast as you move down a menu... I've worked around this "feature" in Denemo now by allowing people to press the f1 key while hovering on a menu item to bri

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 wrote: > > > On Wed, 2015-11-18 at 23:41 +0100, Johan Vromans wrote: > > &

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 wrote: > > On Wed, 2015-11-18 at 23:41 +0100, Johan Vromans wrote: > >> On Wed, 18 Nov 2015 18:49:52 + > >> Richard Shann wrote: > >&g

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 wrote: > > > I've pushed a fix that turns off tooltips on menus while leaving them on > > everything else (for GTK version >=3.10). > > Can you te

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 wrote: > > >> > But in the longer term we are coming up to a crunch - the people > >> > developing Gtk are clearly only interested in a narro

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 wrote: > > > I've tracked this down, in the latest manual for gtk3: > > https://developer.gnome.org/gtk3/stable/GtkSettings.html#GtkSetting

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 wrote: > > > One of the time settings available in the preferences sets the browse > > timeout, choosing a value for this (and, possibly, re-starting the > >

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 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

Re: GtkFrame has no frame border drawn?

2015-08-10 Thread Richard Shann
people I guess will have 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 wrote: > > I've recently noticed that the GtkFrames in my applicat

GtkFrame has no frame border drawn?

2015-08-09 Thread Richard Shann
nning 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 gt

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 Generi

A simple choice dialog won't work...

2015-05-07 Thread Richard Shann
TK3 on a Debian stable installation. Richard ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Toolbar tool button icons for Windows

2014-12-31 Thread Richard Gipps
-application-x-executable None of the standard icons are part of the list. How do I access the standard tool button icons in Windows. I am using Windows 8 with the GTK bundle for Windows gtk+-bundle_3.6.4-20130921_win32.zip from the official GTK web site. Any ideas? Richard

Re: Application for diagram rendering based on GTK+ 3

2014-12-12 Thread Richard Gipps
list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list Sounds like you are looking for a Canvas for GTK. Take a look at GooCanvas: https://wiki.gnome.org/Projects/GooCanvas I use it for drawing electrical schematics and it works well. Ri

GtkTextView background color when not focused

2014-04-22 Thread Richard Shann
lor); 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

Re: Help replacing GtkDrawingArea with GtkLayout

2014-03-12 Thread Richard Shann
mask 0x%x\n", > gdk_window_get_events (win)); > > g_signal_connect (layout, "configure-event", > G_CALLBACK (configure_event), NULL); > > gtk_main (); > > return 0; > } > When I compile the version you have given

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 +0000, 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

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 > > > > To: gtk-app-devel-list@gnome.org > > > &g

Re: Help replacing GtkDrawingArea with GtkLayout

2014-03-09 Thread Richard Shann
27;t receive. BTW why do you have two NULL bytes at the end of the property name (AFAIK only one is needed)? Richard ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

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 > 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 > > hav

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 +0000, Richard Shann wrote: > > I have constructed the following minimal example, > > Yes indeed, > > https://developer.gnome.org/gtk3/stable/GtkWidget.html#gtk-widget-set-events >

Re:Help replacing GtkDrawingArea with GtkLayout

2014-03-03 Thread Richard Shann
quot;, G_CALLBACK (configure_event), NULL); gtk_main (); return 0; } Richard Shann > From: Richard Shann > To: gtk-app-devel-list@gnome.org > Subject: Help replacing GtkDrawingArea with GtkLayout > Message-ID: <1393771664.4221.117.ca...@debianbox.loc> >

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

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

2013-10-11 Thread Richard Shann
le 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

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-

Location for gspawn_win32_helper.exe in a static build.

2013-02-13 Thread Richard Shann
valid 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.gnom

Re: Re: DLL Hell on Windows..

2012-08-05 Thread Richard Shann
ading headers). > Who can give me libatk 2.4.0 prebuild for Windows (x86)? I don't know if it would help, but the package http://www.denemo.org/downloads/denemo-0.9.5rc5.exe installs the gtk dlls including that one, not sure which version. So you could

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: Scroll windows does use all of the content area

2012-03-29 Thread Richard Gipps
TER); License_wnd_scroll = gtk_scrolled_window_new(NULL,NULL); content_area = gtk_dialog_get_content_area(GTK_DIALOG(License_wnd)); gtk_container_add(GTK_CONTAINER(content_area),License_wnd_scroll); Should I be setting an additonal property now

Scroll windows does use all of the content area

2012-03-28 Thread Richard Gipps
log_get_content_area(GTK_DIALOG(License_wnd)); gtk_container_add(GTK_CONTAINER(content_area),License_wnd_scroll); Should I be setting an additonal property now to make the scroll window fill up the "action area"? Richard. ___ gtk-app-devel-list mailing li

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 +0000 > From: Richard Shann > To: g

Signals that do not get emitted

2011-11-20 Thread Richard Shann
widget demo code which I wrote to test out. Richard Shann #include #include #include 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 (file); g_ob

Re: Custom font for application

2011-07-25 Thread Richard Shann
ory(gchar *fontpath) { #ifdef G_OS_WIN32 AddFontResource(fontpath); #else FcConfigAppFontAddDir(NULL, fontpath); #endif } if the font isn't a system one. Creating a font = fontforge, of course. Richard > On Mon, 2011-07-25 at 12:00 +, gtk-app-devel-list-requ...@gnome.org > wrote:

Re: Custom font for application

2011-07-25 Thread Richard Shann
widget labels 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

Printing a .png using GtkPrint

2009-11-17 Thread Richard Shann
t out, but the second prevents draw_page being 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

Giving GtkFileChooser different backend functions.

2009-05-20 Thread Richard Shann
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

Re: Gio library on Debian Lenny

2009-05-16 Thread Richard Shann
.gnetlibrary.org/ > it has support for http protocol object (GConnHttp) and also based on > GLib. Thanks for this link - I didn't know about this. If possible I will go with gio as it would seem to be under more active development, though if it is not actually yet wor

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 itsel

Gio library on Debian Lenny

2009-05-15 Thread Richard Shann
me/...) should it be working for http? Richard ___ 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
creates it (i.e. in the program "doit"). It is also guaranteed to be closed by the main of that program returning, that is as part of the exit. The other program is just finding out if the file is locked by trying to open it, so it doesn't matter what it does with it. The test

Re: g_spawn and files left locked on windows.

2009-04-28 Thread Richard Shann
nds very odd and in fact impossible. Are you confusing file > protection with locking? Thank you for the quick and helpful reply. Having contstructed the minimal example, everything worked fine. For those listening in who need to create a glib standalone minimal example. I append

g_spawn and files left locked on windows.

2009-04-27 Thread Richard Shann
ug 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: GdkBitmap from black & white .png file

2009-02-05 Thread Richard Shann
k/stable/gdk-Pixbufs.html#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

GdkBitmap from black & white .png file

2009-01-31 Thread Richard Shann
he application 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 mailin

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

Re: svg pixbuf loader on Windows

2008-07-05 Thread Richard Shann
remembered all the dependencies because windows only tells you about the first one it hasn't got, and since I don't connect to the internet with windows I then have to re-boot into linux to get it :-) The new build of Denemo is going up now. Thanks Richard Shann

Re: svg pixbuf loader on Windows

2008-07-05 Thread Richard Shann
tion (libpixbufloader-gif.dll while the svg one was just svg_loader.dll), but perhaps this is because it doesn't belong in the GTK+ stack. Thanks again for your help Richard Shann ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

svg pixbuf loader on Windows

2008-07-05 Thread Richard Shann
this should be different from loaders for other stuff (jpg, png ...) and where if anywhere the loader can be obtained. Any ideas? Richard Shann ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-

insert-at-cursor signal in GtkTextView

2008-04-12 Thread Richard Shann
press-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/listinf

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:

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 gtk-app-

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

2008-02-07 Thread Richard Shann
nemo:10714): GLib-GObject-WARNING **: IA__g_object_set_valist: object class `GtkSettings' has no property named `gtk-can-change-accels' The versions are glib 2.12.4 gtk 2.8.20 and the docs for http://library.gnome.org/devel/gtk/2.8/ say there should be such a property. Any i

Re: Problems to compile gtk with jhbuild + imendio patchs

2007-12-20 Thread Richard Hult
that was added recently and we haven't had time to make that build for OS X yet. It should be fixed in a couple of days. Regards, Richard -- Imendio AB, http://www.imendio.com/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org h

Setting the default values for a class

2007-11-03 Thread Richard Shann
has 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? Ri

rc file only works outside gnome

2007-10-15 Thread Richard Kettlewell
My GTK+ application uses colors in its user interface for various purposes, and calls gtk_rc_parse_string() at startup to set some defaults. This works fine on my Mac and under KDE, but if I run it in a Gnome session (under Debian etch), none of the colors appear. I infer that they have been over

Menu_item on menu_bar

2007-05-23 Thread Luckett, Richard R
l. Thanks, Richard. menu_bar = gtk_menu_bar_new (); gtk_box_pack_start (GTK_BOX(vbox),menu_bar,FALSE,FALSE,0); gtk_widget_show (menu_bar); display_time_item = gtk_menu_item_new_with_label ("Station Status"); gtk_menu_shell_append (GTK_MENU_SHELL(menu_bar),display_time_item); g_signal_conne

mouse wheel scroll in scroll window

2007-02-24 Thread Richard Gipps
ms to 'take' the scroll event. How can I take the scroll event when the control button is pressed and leave it when the mouse wheel is used without the control key? Richard Gipps. ___ gtk-app-devel-list mailing list gtk-app-devel-list

GTK Man pages

2006-12-01 Thread Richard
Has anyone created man pages from the GTK+ 2.0 API? Using emacs as my editor its very inconvenient to have to use HTML documentation with no ability to jump directly to a functions API documentation. ___ gtk-app-devel-list mailing list gtk-app-devel-list

Re: g_signal_connect_swapped

2006-11-27 Thread Richard Riley
"Matt Hoosier" <[EMAIL PROTECTED]> writes: > On 11/25/06, Richard <[EMAIL PROTECTED]> wrote: >> >> Could someone explain the reason for this function >> >> "g_signal_connect_swapped" >> >> I have read the manua

g_signal_connect_swapped

2006-11-26 Thread Richard
Could someone explain the reason for this function "g_signal_connect_swapped" I have read the manual here: http://www.gtk.org/tutorial/x159.html where it says: , | g_signal_connect_swapped() is the same as g_signal_connect() except that | the instance on which the signal is emitted and da

Re: problem displaying rgb images on window

2006-08-17 Thread Richard Boaz
making and displaying your image). you also use this while loop construct, for example, when wanting to update a progress meter while doing work in the background (that's being metered). ta, richard On Aug 15, 2006, at 1:59 PM, Daniel Haude wrote: > On Wed, 26 Jul 2006 06:41:38 +0200,

Re: problem displaying rgb images on window

2006-07-30 Thread Richard Boaz
gtk_main_iteration(); } // end while g_object_unref(pixbuf); pixmap=NULL; } in this manner, a single call to makeDrawing() from anywhere (internal to the program, or as a result of a user request) will end up doing what you want. richard > Hi, > I am writing an application using GTK+ (ver

Re: What's worry with the "entry" widget? It makes my application so ugly!

2006-07-16 Thread Richard Boaz
hi, if you want fine control over the size of your entry widgets, the following routines may be of help: gtk_entry_set_max_length() gtk_entry_set_width_chars() richard On Jul 16, 2006, at 9:39 AM, chao yeaj wrote: > Hello everyone > First ,I am sorry for my poor Englisth ! > &g

Re: key press events and gtk_dialog_new_with_buttons()

2006-01-12 Thread Richard Gipps
e. Thanks for your help and patience - problem solved. Richard. At 21:29 11/01/06, you wrote: On Wed, Jan 11, 2006 at 06:54:46PM +1100, Richard Gipps wrote: > I applied this function to the three entries but it only works on one of > them (the first entry I apply it to). Note that I hav

  1   2   >