Re: Appending to treestore - how to set selection on new entry?

2018-08-28 Thread infirit via gtk-app-devel-list
Op 27-08-18 om 08:24 schreef David C. Rankin: > When I add a new file (entry) to the treestore/treemodel, how do I adjust > the selection so that the new entry is selected? (or how do I get a treepath > or iter from the new entry to allow me to set the selection?) The treestore > holds the name

Re: Using SVG for icons (and scaling)

2018-07-18 Thread infirit via gtk-app-devel-list
Op 18-07-18 om 02:32 schreef Benjamin Summerton via gtk-app-devel-list: > How do I use an SVG as an Icon where I can scale it based on the DPI? As Luca suggested the easiest is to use an icon name and it will handle it for you. There is possibly another option by using cairo surfaces which I had

Re: Working with embedded images with GResource, GdkPixbuf and GtkWidget

2018-11-11 Thread infirit via gtk-app-devel-list
Op 11-11-18 om 18:23 schreef Alessandro Francesconi: I can’t really understand how Pixbuf expects from the GResource data… also i read in the docs that “gdk_pixbuf_new_from_inline has been deprecated since version 2.32 and should not be used in newly-written code. Use GResource instead.”… so

Re: Own drag icon with same color and font settings as the default drag icon in a Gtk.TreeView

2018-09-15 Thread infirit via gtk-app-devel-list
Op 15-09-18 om 00:24 schreef c.buhtz--- via gtk-app-devel-list: > I want the same (background-color, font-face, font-size, font-color) > but with a shorter string (only the second of three columns). You use the Gtk.render_* range of functions. There is one for for every type of content you will

Re: PyGObject: ask for system/theme colors

2018-09-15 Thread infirit via gtk-app-devel-list
Op 14-09-18 om 23:19 schreef c.buhtz--- via gtk-app-devel-list: > I don't want to use colors defined by myself e.g. with RGB-values. > I want to use colors from the system (Windows, Linux, ...) and/or the > theme. > > For example I need the background color of a highlighted menu or list > item. >

Re: Own drag icon with same color and font settings as the default drag icon in a Gtk.TreeView

2018-09-15 Thread infirit via gtk-app-devel-list
Op 15-09-18 om 14:13 schreef infirit: > You use the Gtk.render_* range of functions. There is one for for every > type of content you will want to render onto a cairo surface. > > If you want to render text put it in a Pango.Layout and use > Gtk.render_layout(). Below is a modified version based