dbus-glib to gdbus - interface question

2016-01-13 Thread infirit
terface = dbus.Interface(proxy, 'org.freedesktop.DBus.Properties') I tried calling Gio.DBusInterface in the same way but it takes no argument and is not "constructable". What would be the equivalent with gdbus? Thanks ~infirit sample code of the gdbus proxy object in

GtkTreeModelFilter: get_path function returns None

2016-03-27 Thread infirit
Hi All, I have been trying to implement a filter function for a GtkTreeStore and I run into a problem. In the below code example when I call 'get_path' on the TreeModelFilter object it returns None. I would have expected to see a TreePath. Am I missing something? Thx ~infirit

Re: Tooltip over dark background

2016-06-14 Thread infirit
ttach the style provider to the GtkStyleContext ~infirit ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list

Re: Changing the GtkTreeView Bar Color....

2016-07-04 Thread infirit
lected {background-color: #D02B2B; color: #2B5FD0;} ~infirit ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list

Re: Nim GTK3 editor

2016-07-10 Thread infirit
estart the session or do it properly with "gsettings reset-recursively ". ~infirit ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list

Re: Nim GTK3 editor

2016-07-10 Thread infirit
Op 07/10/2016 om 07:44 PM schreef Stefan Salewski: > On Sun, 2016-07-10 at 19:19 +0200, infirit wrote: >> You delete the whole file without restarting your session? Then you may >> expect breakage like this, it is like forcefully removing the file you >> are editing and t

Re: Nim GTK3 editor

2016-07-10 Thread infirit
not installed your schema globally in /usr/share/glib-2.0/schemas/. Add --schemadir where you have the schema. ~infirit ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list

Re: How does one add an item to the “recently used” file list (from Python)?

2016-10-07 Thread infirit
e Recent section of Nautilus or in > file dialogs. It doesn't even show up in the results returned by > recent_mgr.get_items(). The call to add_item returned True. That is how you do it, however you _require_ a main-loop running for this to work. Working example below. ~infirit f

Re: How does one add an item to the “recently used” file list (from Python)?

2016-10-08 Thread infirit
Op 10/08/2016 om 11:52 PM schreef Laurence Gonsalves: > On Fri, Oct 7, 2016 at 3:13 PM, infirit wrote: >> That is how you do it, however you _require_ a main-loop running for >> this to work. Working example below. > ... >> from gi.repository import Gtk, GLib >

Re: Can we install a gtk program without root privileges?

2016-12-01 Thread infirit
nguage definition you can copy them to |~/.local/share/gtksourceview-3.0/language-specs/| and it should get picked up automatically, see [2]. With that you should be able to keep root out :-). ~infirit [1] https://developer.gnome.org/gio/stable/running-gio-apps.html

Re: German "Umlaute" in drag and drop

2017-01-08 Thread infirit
mlaut symbol, but it just shows me a messed up filename. > If you plan to do further processing or monitoring of the file you may want to look at a glib GFile [2] and use g_file_new_for_uri which will transparently unescape for you. If you just want to unescape the uri use g_uri_unescape_string [3].

Re: A toggled toggle button visually almost indistinct from untoggled

2017-04-19 Thread infirit
ge remains slight. I modified your script and made the background in checked state red by loading some css. This is of course a silly example and you should adjust it to your needs but it shows how it is done. One option is to set a border colour. https://gist.github.c

Re: Scaling, not zooming

2017-05-02 Thread Infirit
there is a nice arch wiki page on hidpi which deals with scaling under many DEs including gnome. https://wiki.archlinux.org/index.php/HiDPI ~infirit -- Sent from my Android device with K-9 Mail. Please excuse my brevity.___ gtk-list mailing list gtk

Re: Border of GtkTreeView through CSS

2017-08-24 Thread infirit
e the widget the treeview was packed in. A common case is packing a treeview in a scrolledwindow and the css would then look like: scrolledwindow {   border-color: yellow;   border-style: solid;   border-width: 2px;   border-radius: 10px; } ~infirit _

Re: gtk_icon_theme_load_icon and GDK_SCALE=2 results in blurry icon

2017-10-03 Thread infirit
cairo surfaces at [1], maybe this helps. The moment you write to png and use it as source on a widget things go blurry. ~infirit [1] https://gist.github.com/infirit/7434371b93cf727f7517c4601df602b9 ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list

Re: gtk_icon_theme_load_icon and GDK_SCALE=2 results in blurry icon

2017-10-03 Thread infirit
rface in the GtkIconView.  You should be able to translate this pretty easily to C/C++. ~infirit [1] https://bugzilla.gnome.org/show_bug.cgi?id=765167#c5. ___ gtk-list mailing list gtk-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-list

Re: How do you tell another process which widget to put into a plug?

2018-01-18 Thread infirit
ire app into a window, > but I have not been able to find anything about how to embed a certain > widget. One approach is calling the app to be plugged into the socket with a command-line argument (eg --socket-id) . Another would be to set an environment variable but that is

Re: Set number of visible items for

2018-03-12 Thread infirit .
G Op 5 mrt. 2018 11:43 p.m. schreef "Igor Korot" : > Hi, ALL, > In Windows it is achievable thru > https://msdn.microsoft.com/en-us/library/windows/desktop/ > bb775915(v=vs.85).aspx. > > In OSX/Cocoa - thru > https://developer.apple.com/documentation/appkit/nscombobox/1436741- > numberofvisi

Re: Set number of visible items for

2018-03-12 Thread infirit
Op 12-03-18 om 13:39 schreef Igor Korot: > On Mon, Mar 12, 2018 at 7:20 AM, infirit . wrote: >> G > Does this suppose to mean something? Yes, don't forget to lock your phone before putting it in your pocket :-(. Sorry about that. ~infirit __