Re: win32 (via Wine): 'image-missing' not present in theme Adwaita

2017-03-04 Thread Norbert de Jonge
Hi Emmanuele, Thanks for your feedback. > You need to generate the icon cache on the > target machine. Assuming "target machine" in this context is the target operating system, how do I generate icon cache on Windows (Wine on Linux, in my case)? >> Note that I don't want to move the executable

Re: win32 (via Wine): 'image-missing' not present in theme Adwaita

2017-03-04 Thread Norbert de Jonge
Hi all, Recently, I wrote: = > I'm running my ported GTK+ application via Wine, and it keeps > throwing: > - > Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: > Icon 'image-missing' not present in theme Adwaita > - > > How can I get rid of this? > > I've already

Re: win32 (via Wine): 'image-missing' not present in theme Adwaita

2017-03-02 Thread Norbert de Jonge
> Also the all the *-from-stock (e.g. gtk_button_new_from_stock) > functions have been deprecated in GTK 3.10 so maybe that’s the issue? Ah, that must be it, yes. I use gtk_image_new_from_icon_name() for menu icons, and now that you mention it these indeed do not show up. So, that must be where

Re: Gtk-WARNING **: Could not find signal handler

2017-03-01 Thread Norbert de Jonge
> pi@raspberrypi:~ $ sudo apt-get install gmodule-export-2.0 As Tilo wrote, you may need to compile it yourself. A quick search seems to indicate that there is gmodule-no-export-2.0 (no export) and gmodule-2.0 (export). If this is true, you may want to look for gmodule-2.0 instead. norbert #

win32 (via Wine): 'image-missing' not present in theme Adwaita

2017-02-28 Thread Norbert de Jonge
Hi, I'm running my ported GTK+ application via Wine, and it keeps throwing: - Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Icon 'image-missing' not present in theme Adwaita - How can I get rid of this? I've already tried adding

Re: Programatically activate menu like a mouse click

2017-02-23 Thread Norbert de Jonge
> How can I trigger the menu activation (like a mouse click does) ? I would guess with: https://developer.gnome.org/gtk3/stable/GtkMenu.html#gtk-menu-popup-at-widget It's available for GTK+ 3.22 and up, so I cannot test it to verify. This should tell you your GTK+ version: $ pkg-config

Re: Weather API

2017-02-22 Thread Norbert de Jonge
> gnome-weather [...] I can i use this libraries with C? I think, in theory, the GWeather Reference Manual... https://developer.gnome.org/libgweather/stable/ ...should have information about its C functions in the Functions sections. But they are empty, e.g.:

Re: textview widget selection buffer_select_range is cleared when dialog closes (intermittently?)

2017-02-22 Thread Norbert de Jonge
> > I have a textview widget being used in an editor where an > > incremental search is performed. [...] I can't help you, but after seeing some of your functions I'm wondering... Setting the search direction (backwards, forwards), setting/toggling case sensitivity (yes, no), and moving the

Re: want to capture a mouse click in an Entry

2017-02-18 Thread Norbert de Jonge
> I have an gtk_entry [...] and i would like to capture clicks > in the entry [...] depending on what modifier keys are held You can use g_signal_connect (..., "button_press_event", G_CALLBACK (Function), NULL); Then in Function, check if (event->button.state == GDK_SHIFT_MASK) {} else {}. Also

Re: Removing entries from EntryCompletion

2017-02-12 Thread Norbert de Jonge
> Is seems to me that the easiest way for the user to > indicate to the GUI that a particular suggestion > should be removed would be via the delete button > whilst that suggestion is highlighted. As soon as you click anywhere outside the area with suggestions (matching entries), the overview of

Re: issue with drawing graph in GTK

2017-02-12 Thread Norbert de Jonge
> I am using below code for drawing two graphs from same data. > [...] > please let me know if more information is required. If the problem persists and you've been unable to find help, I suggest you create and share with us a short, self contained example program that demonstrates the graph

Re: GtkPrintOperation; request for assistance

2017-02-10 Thread Norbert de Jonge
> For a simple printing example in C this is my try at it. > > https://github.com/cecashon/OrderedSetVelociRaptor/blob/master/Misc/Csamples/print_buffer1.c Much appreciated Eric. A question about this code. When I use, for example, the gedit text editor, its File->Print... dialog includes a

Re: Identifying monitors

2017-02-09 Thread Norbert de Jonge
> I save preferences per monitor I think giving us more context might be useful. What kind of things do you save per monitor, and why? These are not things you could recreate by scaling and positioning based on detected monitor dimensions? If we're assuming monitors can be arbitrarily plugged in

Re: What does "Pango-CRITICAL **: pango_layout_get_cursor_pos: assertion 'index >= 0 && index <= layout->length' failed" mean?

2017-02-08 Thread Norbert de Jonge
> It did not solve the Problem, [...] Before I e-mailed my response I locally created a program that included the function your posted. Double clicking the bottom field threw the error you mentioned. After modifying the code as I described in my previous post, the warning on the console

Re: GtkPrintOperation; request for assistance

2017-02-08 Thread Norbert de Jonge
Hi Emmanuele, Thank you for your reply. > [...], instead of generating a massive string and then > sending it to lpr, [...] I'm slightly confused, is that a description of what my code is currently doing? If it is: I was unaware that the code is generating a massive string. My intention and

Re: What does "Pango-CRITICAL **: pango_layout_get_cursor_pos: assertion 'index >= 0 && index <= layout->length' failed" mean?

2017-02-08 Thread Norbert de Jonge
> keybuf = gtk_entry_buffer_new ("Not yet generated", 45); https://developer.gnome.org/gtk3/stable/GtkEntryBuffer.html#gtk-entry-buffer-new The second parameter of gtk_entry_buffer_new() specifies the number of characters in the string. Either change 45 to 17 or to -1. Best regards, Norbert

GtkPrintOperation; request for assistance

2017-02-06 Thread Norbert de Jonge
Hi all, Yesterday, I finished the migration of a 16+ year old GTK+ 1.2 application to GTK+ 3.18. The application is Ggradebook, the official GNU gradebook. -- Websites: http://www.norbertdejonge.nl/Ggradebook/ https://www.gnu.org/software/ggradebook/ Changelog: