Re: dark theme gtk+2?

2017-03-01 Thread Emmanuele Bassi
No; GTK+ 2.x does not have support for per-application theme variants, and thus it does not have support for dark themes. Ciao, Emmanuele. On 1 March 2017 at 12:34, Rúben Rodrigues wrote: > Hi guys, > > > It's possible to make this > >

dark theme gtk+2?

2017-03-01 Thread Rúben Rodrigues
Hi guys, It's possible to make this g_object_set(gtk_settings_get_default(), "gtk-application-prefer-dark-theme", TRUE, NULL); with gtk+2.0? Thanks --- Este e-mail foi verificado em termos de vírus pelo software antivírus Avast. https://www.avast.com/antivirus

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

2017-03-01 Thread Rúben Rodrigues
Thanks everyone! I´m using eclipse, i i think that i used gmodule-export-2.0 the wrong way. Before i add gmodule-export-2.0 in Cross GCC Linker -> Libraries -> Libraries (-l), adn it gives an error, i think its because don't find this library.. Now i add `pkg-config --libs gmodule-export-2.0`

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 #

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

2017-03-01 Thread Rúben Rodrigues
Hi, I don't find this library .. pi@raspberrypi:~ $ sudo apt-get install gmodule-export-2.0 Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package gmodule-export-2.0 E: Couldn't find any package by regex 'gmodule-export-2.0' Thanks

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: Gtk-WARNING **: Could not find signal handler

2017-02-28 Thread Tilo Villwock
Well I don't know what else I could say. Either use gtk_builder_add_callback_symbol(...) to add all the symbols manually or make sure you can link against gmodule-export-2.0 which on ARM probably means you have to compile and install it yourself. If you have installed it and your linker

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

2017-02-27 Thread Rúben Rodrigues
Please help me... I lost so many hours with this error.. This should work, because the same code works in other machine.. But in raspberry pi don't.. Thanks Às 15:19 de 27/02/2017, Rúben Rodrigues escreveu: > Hi, > > I have the same problem of this topic >

Re: Error unknown type name ‘GtkSearchEntry’

2017-02-27 Thread Emmanuele Bassi
On 27 February 2017 at 16:19, Rúben Rodrigues wrote: > I tried before, but i think that is very dificult. I need to change many > things.. I never program gtk before, am i'm taking an application that > works in other older systems, and i couln't update this older systems. I

Re: Error unknown type name ‘GtkSearchEntry’

2017-02-27 Thread Rúben Rodrigues
I tried before, but i think that is very dificult. I need to change many things.. I never program gtk before, am i'm taking an application that works in other older systems, and i couln't update this older systems. I think that doesn't run linux versions after 10.04.. Às 16:07 de 27/02/2017,

Re: Error unknown type name ‘GtkSearchEntry’

2017-02-27 Thread Emmanuele Bassi
On 27 February 2017 at 15:51, Rúben Rodrigues wrote: > Yes, gtk 2.. So, i can't use libwheather with gtk-2.0? You will need a previous version of libgweather; the last release with GTK+ 2.x support was the 2.30 release, which was done 6 years ago. I *strongly* encourage

Re: Error unknown type name ‘GtkSearchEntry’

2017-02-27 Thread Rúben Rodrigues
Yes, gtk 2.. So, i can't use libwheather with gtk-2.0? Thanks Às 13:09 de 27/02/2017, Colomban Wendling escreveu: > Le 27/02/2017 à 10:51, Rúben Rodrigues a écrit : >> Hi guys, >> >> Someone who knows this error? >> >> DescriptionResourcePathLocationType >> unknown type name

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

2017-02-27 Thread Rúben Rodrigues
Hi, Thanks for answering. Yes i'm using hundreds of signals, and i'm working on an ARM Machine (Rasberry Pi). What do you mean with "you're apparently not adding your signal handler symbols before calling" ? Thanks Às 15:39 de 27/02/2017, Tilo Villwock escreveu: > It tells you to link

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

2017-02-27 Thread Tilo Villwock
It tells you to link GModule because you're apparently not adding your signal handler symbols before calling gtk_builder_connect_signals(...) and thus tries to use introspection to look up the symbols. Unless it's hundreds of symbols I would suggest you simply call

Gtk-WARNING **: Could not find signal handler

2017-02-27 Thread Rúben Rodrigues
Hi, I have the same problem of this topic https://mail.gnome.org/archives/gtk-app-devel-list/2013-December/msg00037.html I see very similar problems, but didn't find any resolution. I get this error in when i'm debuugin gtk app : Gtk-WARNING **: Could not find signal handler I make this in

Re: Error unknown type name ‘GtkSearchEntry’

2017-02-27 Thread Colomban Wendling
Le 27/02/2017 à 10:51, Rúben Rodrigues a écrit : > Hi guys, > > Someone who knows this error? > > DescriptionResourcePathLocationType > unknown type name ‘GtkSearchEntry’ConsolaGraficaline 39, > external location: Too old GTK? GtkSearchEntry is new in 3.6:

Error unknown type name ‘GtkSearchEntry’

2017-02-27 Thread Rúben Rodrigues
Hi guys, Someone who knows this error? DescriptionResourcePathLocationType unknown type name ‘GtkSearchEntry’ConsolaGraficaline 39, external location: /opt/x-tools/rootfs/rpi/usr/include/libgweather-3.0/libgweather/location-entry.h C/C++ Problem Thanks --- Este

Re: Programatically activate menu like a mouse click

2017-02-26 Thread John Lane
Ok, so I have made a little progress on this, albeit in a one step forward, two steps back kind-of way. This code in my `keybinder_callback` half-works: import Xlib from Xlib import X from Xlib.display import Display from Xlib.ext.xtest import fake_input display =

Doubt regarding GListModel

2017-02-25 Thread Pranav Ganorkar
Hi, I am a developer working on GNOME Logs and I wanted to ask a doubt regarding GListModel . I am working on this gnome-logs bug: https://bugzilla.gnome. org/show_bug.cgi?id=767995 Moving the sorting functionality to the model from the

Re: Programatically activate menu like a mouse click

2017-02-24 Thread Colomban Wendling
Le 24/02/2017 à 10:24, John Lane a écrit : > On 23/02/17 21:02, Colomban Wendling wrote: > >> >> Sounds odd to do that manually. Do you know about mnemonic keys? >> Basically if you mark some part of the label to be the mnemonic letter, >> you'll be able to trigger that element with Alt+letter.

Re: Programatically activate menu like a mouse click

2017-02-24 Thread John Lane
On 23/02/17 21:02, Colomban Wendling wrote: > > Sounds odd to do that manually. Do you know about mnemonic keys? > Basically if you mark some part of the label to be the mnemonic letter, > you'll be able to trigger that element with Alt+letter. > > Additionally, F10 already pops up the first

Re: Programatically activate menu like a mouse click

2017-02-24 Thread John Lane
> Give this a try. It might be close to what you are after. Thanks Eric. That works, however it is slightly different to what I need. Firstly, my app is a dock containing nothing but a menu bar, so it has no "window" as such. Secondly, its key binding only works when its window has the focus.

Re: Weather API

2017-02-23 Thread infirit
Op 02/23/2017 om 12:37 PM schreef Emmanuele Bassi: >> Yeah gnome documentation sucks. > You may want to avoid insulting people that work really hard at > writing the documentation. Why would anyone be insulted with me stating a fact that has been true for over a decade. Also it does not say

Re: Programatically activate menu like a mouse click

2017-02-23 Thread Colomban Wendling
Le 23/02/2017 à 15:57, John Lane a écrit : > […] > > The UIManager provides the menu bar, a few items in the bar each leading > to menus containing a few items. The user can click operate the menu > with a mouse and selecting a menu item triggers a callback that prints > the name of the selected

Re: Programatically activate menu like a mouse click

2017-02-23 Thread Eric Cashon via gtk-app-devel-list
Hi John, Give this a try. It might be close to what you are after. Eric #!/usr/bin/python import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk, Gdk class MainWindow(Gtk.Window): def __init__(self): Gtk.Window.__init__(self, title="Menu Popup")

Split TextView

2017-02-23 Thread Tuur Dutoit
Hello, I'm trying to make a simple word processor with GTK+, but I got stuck on a seemingly simple issue: I would like to break down the content in multiple pages, like Microsoft word and LibreOffice do, but I can't figure out how to do that. I have a few ideas, but they all sound very

Re: Does gtk2 provide a case 'in'-sensitive text search via 'gtk_text_iter_..._search'?

2017-02-23 Thread Eric Cashon via gtk-app-devel-list
Hi David, I tried out gtkedit and it compiled and worked fine. Did a few searches and it found the words. When I compiled I got a few warnings like the following. gtk_common_dlg.c: In function ‘err_dialog’: gtk_common_dlg.c:8:9: warning: format not a string literal and no format

Re: Programatically activate menu like a mouse click

2017-02-23 Thread John Lane
On 23/02/17 15:23, Norbert de Jonge wrote: > I would guess with: > https://developer.gnome.org/gtk3/stable/GtkMenu.html#gtk-menu-popup-at-widget Thanks, I have 3.22.5. I had tried `gtk-menu-popup-at-widget` but it didn't work. I've tried lots of combinations to try and get it to work without

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

Programatically activate menu like a mouse click

2017-02-23 Thread John Lane
I am trying to write a small test app using Python and Gtk+3 It's basically a bar across the top of the display that contains a menu implemented as a Gtk.Window containing a Gtk.Bar containing a menu bar populated using UIManager. Essentially this (where 'self' is an object derived from

Re: Weather API

2017-02-23 Thread Rúben Rodrigues
Hi, Thanks all. I'm new in gtk+ so it's dificult to understand how to use this library without documentation or examples..Anyone could help me? Again, thanks everyone. Às 11:08 de 23/02/2017, infirit escreveu: > Op 02/22/2017 om 07:44 PM schreef Norbert de Jonge: >>> gnome-weather [...] I

Re: Weather API

2017-02-23 Thread Emmanuele Bassi
On 23 February 2017 at 11:08, infirit wrote: > Op 02/22/2017 om 07:44 PM schreef 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

Re: Weather API

2017-02-23 Thread infirit
Op 02/22/2017 om 07:44 PM schreef 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

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

2017-02-22 Thread David C. Rankin
On 02/22/2017 08:24 AM, Norbert de Jonge wrote: > 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 selection > to whatever matches next; these are

Could this be a background-color bug in GTK+3.22?

2017-02-22 Thread Jonas Camillus Jeppesen
Dear all, I'm a user of the document viewer Zathura (https://pwmt.org/projects/zathura/) which uses GTK+ for its interface Since upgrading to GTK+ 3.22 it has suffered from a background color bug/issue. The developers are not giving this high priority (which is fair enough) so I'm trying to

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: Weather API

2017-02-22 Thread Hashem Nasarat
The three libraries are in C. gnome-weather is written in javascript and uses the gobject-introspection (gi) middleware to call into the C libraries. The syntax is different but semantics are the same as a client program written in C. On 02/22/2017 01:15 PM, Rúben Rodrigues wrote: Hi,

Re: Weather API

2017-02-22 Thread Rúben Rodrigues
Hi, Thanks for the answer. In gnome-weather source files i don't see any code in C language. I can i use this libraries with C? Thanks Às 17:36 de 22/02/2017, Hashem Nasarat escreveu: > Hi Ruben, > > Perhaps this link would be useful to you: > https://wiki.gnome.org/Projects/LibGWeather > >

Re: Weather API

2017-02-22 Thread Hashem Nasarat
Hi Ruben, Perhaps this link would be useful to you: https://wiki.gnome.org/Projects/LibGWeather Essentially try using libgweather with geoclue and geocode-glib. You can also look at the gnome-weather source code to see how it is all used. Good luck! -Hashem On 02/22/2017 12:28 PM, Rúben

Weather API

2017-02-22 Thread Rúben Rodrigues
Hi, Someone could tell me which API i can use to display weather information in my application? It is possible to detect location based on internet connection? Thanks --- Este e-mail foi verificado em termos de vírus pelo software antivírus Avast. https://www.avast.com/antivirus

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: textview widget selection buffer_select_range is cleared when dialog closes (intermittently?)

2017-02-21 Thread David C. Rankin
On 02/22/2017 12:34 AM, David C. Rankin wrote: > All, > > I have a textview widget being used in an editor where an incremental search > is performed. The matched words are highlighted with: > > gtk_text_buffer_select_range (buffer, , ); > > After the last match in the search range (either

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

2017-02-21 Thread David C. Rankin
All, I have a textview widget being used in an editor where an incremental search is performed. The matched words are highlighted with: gtk_text_buffer_select_range (buffer, , ); After the last match in the search range (either whole buffer, from cursor [insert mark] or by selection), a

Re: GTK3 Glade and rendering in Windows/Linux]

2017-02-21 Thread happy debugging
Finally could style with css and Glade in Windows adnd adjust the margins (actually using padding as the margin seems not be able to change it while in Linux it did). "GtkWindow" (instead of "window") is what seems needed to be used in Windows. Apparently Windows and Linux uses different css class

Re: Does gtk2 provide a case 'in'-sensitive text search via 'gtk_text_iter_..._search'?

2017-02-21 Thread David C. Rankin
On 02/17/2017 08:26 PM, cecas...@aol.com wrote: > David, > > I asked a question about this on the gtk-devel-list > > https://mail.gnome.org/archives/gtk-devel-list/2017-January/msg00018.html > > last month. A lot I didn't know about this. For UTF-8 it is a bit complicated > even for English.

Re: GTK3 Glade and rendering in Windows/Linux]

2017-02-21 Thread Happy
That works, but this only does work on Linux. On Windows it reads the css file but the css is not applied. http://wikistack.com/use-css-gtk/ With as css: window  { background-color:rgba(233,23,34,1); } Thanks On Sun, 2017-02-19 at 08:25 -0800, Phil Wolff wrote: > In the example you cite,

Re: GTK3 Glade and rendering in Windows/Linux]

2017-02-19 Thread Phil Wolff
In the example you cite, the css file should read window { background-color:rgba(233,23,34,1); } On 02/19/2017 04:33 AM, Happy wrote: I dont mind the windows theme to look different than the Ubuntu one, if it looks close or equal to native Windows, that would be great. The concern is, under

Re: GTK3 Glade and rendering in Windows/Linux]

2017-02-19 Thread Happy
I dont mind the windows theme to look different than the Ubuntu one, if it looks close or equal to native Windows, that would be great. The concern is, under windows the spacing is pretty large. So, I started to look at css, compiled and run this (non glade) example :

Re: want to capture a mouse click in an Entry

2017-02-19 Thread Dan Hitt
Thanks Norbert, your solution works for me. For whatever reason, i do not seem to have to grab the focus, although maybe i'm subtly degrading conformance to some expected behavior. I'm too dense to see what it is, though. Also, for me, the name "button-press-event" works just as well as

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

want to capture a mouse click in an Entry

2017-02-18 Thread Dan Hitt
I have an gtk_entry which normally holds some text, and i would like to capture clicks in the entry. More exactly, i would like to capture a mouse click, and then do something to the text in the entry depending on what modifier keys are held when the click is made. I've been looking through the

Re: Does gtk2 provide a case 'in'-sensitive text search via 'gtk_text_iter_..._search'?

2017-02-18 Thread David C. Rankin
On 02/17/2017 08:26 PM, cecas...@aol.com wrote: > David, > > I asked a question about this on the gtk-devel-list > > https://mail.gnome.org/archives/gtk-devel-list/2017-January/msg00018.html > > last month. A lot I didn't know about this. For UTF-8 it is a bit complicated > even for English.

Re: Does gtk2 provide a case 'in'-sensitive text search via 'gtk_text_iter_..._search'?

2017-02-17 Thread Eric Cashon via gtk-app-devel-list
David, I asked a question about this on the gtk-devel-list https://mail.gnome.org/archives/gtk-devel-list/2017-January/msg00018.html last month. A lot I didn't know about this. For UTF-8 it is a bit complicated even for English. For GTK's case in-sensitive search they use a casefold

Re: Does gtk2 provide a case 'in'-sensitive text search via 'gtk_text_iter_..._search'?

2017-02-17 Thread David C. Rankin
On 01/26/2017 03:21 PM, cecas...@aol.com wrote: > I worked on this a little more and tried to make it UTF-8 compliant. > Highlighted the text also. It should still be efficient since it is only doing > a single pass over each char. I am sure there are things that I haven't > considered but it does

Re: issue with drawing graph in GTK

2017-02-17 Thread Anthony Ruth
My guess is that your data points are extending outside your drawing area. I would suggest including something in your code to verify that all points passed to cairo move to or cairo line to are within the valid range. Anthony Ruth NASA Space Technology Research Fellow Condensed Matter Theory

Re: GNOME Help Method

2017-02-15 Thread Sascha Manns
Hi Infirit, Am Mittwoch, den 15.02.2017, 00:11 +0100 schrieb infirit: > Op 02/15/2017 om 12:01 AM schreef infirit: > > Op 02/14/2017 om 11:29 PM schreef Sascha Manns: > > > actually i'm working on a new GNOME-App. > > > The codebase is already done. Now i would like to implement a > > > small > >

Re: GNOME Help Method

2017-02-14 Thread infirit
Op 02/15/2017 om 12:01 AM schreef infirit: > Op 02/14/2017 om 11:29 PM schreef Sascha Manns: >> actually i'm working on a new GNOME-App. >> The codebase is already done. Now i would like to implement a small >> method, which launches yelp with the installed apps helpfiles. >> The app is prepared

Re: GNOME Help Method

2017-02-14 Thread infirit
Op 02/14/2017 om 11:29 PM schreef Sascha Manns: > actually i'm working on a new GNOME-App. > The codebase is already done. Now i would like to implement a small > method, which launches yelp with the installed apps helpfiles. > The app is prepared in Mono with Gtk-Sharp. > Maybe anyone can help

GNOME Help Method

2017-02-14 Thread Sascha Manns
Hello List, actually i'm working on a new GNOME-App. The codebase is already done. Now i would like to implement a small method, which launches yelp with the installed apps helpfiles. The app is prepared in Mono with Gtk-Sharp. Maybe anyone can help me with a C# method for the help system? I

Re: Removing entries from EntryCompletion

2017-02-14 Thread Jeffrey Ratcliffe
On 14 February 2017 at 21:10, Jeffrey Ratcliffe wrote: > I'll open a wishlist bug and hope that the developers can provide an > API for this in a future release. Done: https://bugzilla.gnome.org/show_bug.cgi?id=778626 ___

Re: Removing entries from EntryCompletion

2017-02-14 Thread Jeffrey Ratcliffe
Hi Eric, On 14 February 2017 at 00:56, wrote: > For this you need the private data of the entry completion to get it to > work. That means looking around the GTK source and seeing how you might put > something together. Of course, it is not recommended to use something that >

Re: Removing entries from EntryCompletion

2017-02-13 Thread Eric Cashon via gtk-app-devel-list
Hi Jeff, For this you need the private data of the entry completion to get it to work. That means looking around the GTK source and seeing how you might put something together. Of course, it is not recommended to use something that can be changed at anytime by the GTK developers. So... I gave

Re: Removing entries from EntryCompletion

2017-02-12 Thread Jeffrey Ratcliffe
On 12 February 2017 at 17:48, Norbert de Jonge wrote: > As soon as you click anywhere outside the area with suggestions > (matching entries), the overview of suggestions disappears. This means > that users can never hover over a suggestion to highlight it and then > press

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

Removing entries from EntryCompletion

2017-02-12 Thread Jeffrey Ratcliffe
In my application, I use an entry widget with completion, which gets appended to when the user adds new strings. So far, so vanilla. Users are asking for the possibility to remove strings from the list of suggestions. Is seems to me that the easiest way for the user to indicate to the GUI that a

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

issue with drawing graph in GTK

2017-02-10 Thread Lokesh Chakka
Hello, please refer to the graph images one.jpg and two.jpg . I am using below code for drawing two graphs from same data.

Re: GtkPrintOperation; request for assistance

2017-02-10 Thread Chris Vine
On Fri, 10 Feb 2017 18:55:39 +0100 Norbert de Jonge wrote: [snip] > I'm a fan of GTK+ and have always been a fan. The printing > functionalities are extremely versatile. But it's difficult for me to > understand why there is no function that requires only a buffer (of >

Re: GtkPrintOperation; request for assistance

2017-02-10 Thread Eric Cashon via gtk-app-devel-list
I didn't get to the paper size setup there. Just tried to make sense out of getting text to print on multiple pages as simply as possible. I don't have a printer that I can test with either so I am no help there. Printing is difficult. You can draw easy enough on a drawing area but then

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-10 Thread zahlenmeer
On 02/09/17 18:23, Norbert de Jonge wrote: >> 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? The

Re: GtkPrintOperation; request for assistance

2017-02-09 Thread Eric Cashon via gtk-app-devel-list
Hi Norbert, I hit the reply instead of reply all on the first send. Try again. There is some information about printing at https://developer.gnome.org/gtkmm-tutorial/stable/chapter-printing.html.en It is in C++ but the C++ tutorial is very good. Sometimes I go there to figure out how to

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

Identifying monitors

2017-02-09 Thread zahlenmeer
I am rephrasing my question from a few weeks ago to hopefully be more precise this time to get an answer: I save preferences per monitor and I want to load the matching settings for each monitor at application startup. However, I do not know how to reliably identify which plugged monitor matches

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: What does "Pango-CRITICAL **: pango_layout_get_cursor_pos: assertion 'index >= 0 && index <= layout->length' failed" mean?

2017-02-08 Thread Dirk Gottschalk via gtk-app-devel-list
Hello Norbert, thank you very much for your answer. It did not solve the Problem, but it made me think about my string handling in the callback function. The field throwing the error was the input, not the output. I just split the string using the pointer of the input and not copying it before

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

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

2017-02-08 Thread Dirk Gottschalk via gtk-app-devel-list
Hello, I just started developing GTK+ Applications. But now I get the following error message and a broken Text when clicking back in to the GTKEntry widget: (gtk-keygen:18220): Pango-CRITICAL **: pango_layout_get_cursor_pos: assertion 'index >= 0 && index <= layout->length' failed Here is

Re: GtkPrintOperation; request for assistance

2017-02-07 Thread Emmanuele Bassi
Hi; On 7 February 2017 at 00:09, Norbert de Jonge wrote: > Yesterday, I finished the migration of a 16+ year old GTK+ 1.2 > application to GTK+ 3.18. Congrats! > In previous releases of the application, printing was done by writing > directly to "lpr". I want code to

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:

Re: gtk_spin_button_set_adjustment without triggering value-changed signal

2017-02-06 Thread Chris Moller
I've used constructs along the lines of: GtkWidget *spin_button = gtk_spin_button_new_with_range (...); gulong spin_handler = g_signal_connect (...); // whatever g_signal_handler_block (spin_button, spin_handler); gtk_spin_button_set_value (spin_button, ...);

gtk_spin_button_set_adjustment without triggering value-changed signal

2017-02-06 Thread Anthony Ruth
Hello, I have a bunch of spin buttons with the "value-changed" signal connected: g_signal_connect_swapped(spinbutton, "value-changed", G_CALLBACK (run),NULL); When I load a file, I want to set sane values for the spin buttons and I do this by calling gtk_spin_button_set_adjustment.

Re: GTK3 Glade and rendering in Windows/Linux]

2017-02-02 Thread Daniel Kasak
I'm not sure of the licensing implications ( maybe there are none ), but the current Ubuntu theme is implemented exclusively in css. If you have a Ubuntu box, you can locate them in /usr/share/themes ( eg /usr/share/themes/Ambiance/gtk-3.20 is one particular theme ). If you copy these into the

Re: GTK3 Glade and rendering in Windows/Linux]

2017-01-31 Thread Michael Torrie
On 01/31/2017 05:54 AM, Happy wrote: > > Thanks for the note. Hope the following links work. As you can see the > windows are much different in size as well as the spacing. > > Ubuntu: > https://drive.google.com/file/d/0BxjwKUaYdW_zYnUydWExX2NNdE0/view?usp=s > haring > > Windows: >

Re: GTK3 Glade and rendering in Windows/Linux]

2017-01-31 Thread Tilo Villwock
Well for one: The appearance on Ubuntu deviates from the default GTK theme, so I'm not really sure if the comparison makes sense. Also, did you actually verify that this is a problem, that pertains to Glade only? Either way, if it bothers you too much, you have to start tweaking the css style

Re: GTK3 Glade and rendering in Windows/Linux]

2017-01-31 Thread Happy
Thanks for the note. Hope the following links work. As you can see the windows are much different in size as well as the spacing. Ubuntu: https://drive.google.com/file/d/0BxjwKUaYdW_zYnUydWExX2NNdE0/view?usp=s haring Windows:

Re: GTK3 Glade and rendering in Windows/Linux]

2017-01-31 Thread Daniel Kasak
Neither of your messages had any attachments. Probably they're stripped out by the mailing list server. If you're trying to point people to files, screenshots, etc, try chucking them on a blog or pastebin or something. Dan On Sun, Jan 29, 2017 at 12:44 PM, Happy

GTK3 Glade and rendering in Windows/Linux]

2017-01-29 Thread Happy
Attached is a glade file. These render as seen in the attachments in Windows and Ubuntu(16.10). In Windows(10) the window is far larger as well as is for the spacing. It there a away to get the spacing and size down alike the rendering in Windows ? I guess this is not so much related to glade but

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
On Sat, 2016-12-31 at 20:11 +, Emmanuele Bassi wrote: > consider using a small > CSS fragment shipped with your own application, if you want to change > the appearance of your UI, instead of hardcoding a space. > > Especially now that the CSS system is documented and extremely > powerful.

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

2017-01-27 Thread Colomban Wendling
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? Yes:

Re: Does gtk2 provide a case 'in'-sensitive text search via 'gtk_text_iter_..._search'?

2017-01-26 Thread Eric Cashon via gtk-app-devel-list
I worked on this a little more and tried to make it UTF-8 compliant. Highlighted the text also. It should still be efficient since it is only doing a single pass over each char. I am sure there are things that I haven't considered but it does a little more than the first try at it.

Screencasting GNOME Under Wayland

2017-01-26 Thread M . Hanny Sabbagh
Hello. I am working on a simple screen recorder for GNOME under Wayland, built with GTK+. Because Wayland doesn't allow capturing the screen due to security reasons. I was trying to capture the desktop in the same way as the built-in screencast tool. Using the D-Bus API. This is the last

Re: Prefered way to change the main window initial size

2017-01-26 Thread elboulangero
Hey, maybe I'm asking a very silly question, but still, if anyone who could point me in the right direction, it would really be appreciated. Thanks ! ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

caret-color (and caret-width?)

2017-01-26 Thread Richard Shann
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? and, how exactly is caret-color supposed to be set I have: str = "GtkTextView {caret-color: rgb(255,0,80);}"; gcp=

Re: gtk_window_set_geometry_hints()

2017-01-26 Thread Kevin Connor Arpe
Hello, I did not see any replies to this message. Was it sent to the wrong mailing list? On Sun, Jan 22, 2017 at 10:26 PM, Kevin Connor Arpe wrote: > Hello, > > Reading the docs/source for v3.22 of gtk_window_set_geometry_hints() > shows... > Ref:

Re: API changes, GTK 3.21 to 3.22, need advice to replace lost capability

2017-01-25 Thread Emmanuele Bassi
Hi; your question has been answered multiple times on this mailing list; I know, because usually I'm the one answering it. If you look in the archives, you'll probably even find code examples. On 24 January 2017 at 21:12, wrote: > My application code writes extensively to

API changes, GTK 3.21 to 3.22, need advice to replace lost capability

2017-01-25 Thread kornelix
I am in the process of converting a graphics app from GTK 3.20 to 3.22. Most of the API changes are not hard to deal with, but there is one that is causing me severe design problems. I hope someone with a deeper understanding of GTK can suggest a path forward. My application code writes

GTK3 Glade and rendering in Windows/Linux

2017-01-25 Thread Happy
Attached is a glade file. These render as seen in the attachments in Windows and Ubuntu(16.10). In Windows(10) the window is far larger as well as is for the spacing. It there a away to get the spacing and size down alike the rendering in Windows ? I guess this is not so much related to glade but

<    7   8   9   10   11   12   13   14   15   16   >