[help] how to append a picture button to GtkImageMenuItem in gtk+?

2016-12-13 Thread tomsunchen
Hi everyone: now i want to append button into GtkImageMenuitem, shown as attachment. need to add a callback function to delete menu item when user click the button. can you give me a suggestion or an example? Best Regards, tomsun ___

gtk+ 4.x

2016-12-13 Thread Daniel Kasak
Hi all. Just curious ... with gtk+ 4.0 in development, what does the perl binding situation look like? Is it largely a matter of doing a search+replace ( in the binding code ) and rebuilding, or is it a larger effort to support? Dan ___ gtk-perl-list

Re: CSS to look more like Gtk+ 2

2016-12-13 Thread Paul Davis
On Tue, Dec 13, 2016 at 2:48 AM, Kyle Terrien wrote: > > Adwaita is written in a CSS preprocessor (SCSS). > https://git.gnome.org/browse/gtk+/tree/gtk/theme/Adwaita > > It is a very complicated bit of work. In my opinion, if you need a > preprocessor for something like

Re: CSS to look more like Gtk+ 2

2016-12-13 Thread Stefan Salewski
On Mon, 2016-12-12 at 18:48 -0800, Kyle Terrien wrote: > What's the favored way to "fake" a HiDPI monitor?  Modify some pixel > density value in xorg.conf? Just increase the distance from your eyes to the display. What really matters is the viewing-angle. My feeling is, that for the popular 27

Re: CSS to look more like Gtk+ 2

2016-12-13 Thread Stefan Salewski
On Tue, 2016-12-13 at 11:07 +0100, Stefan Salewski wrote: > Indeed, the current available scaling of factor 2 may be really fine > for a 34 inch 4k display and a eye to display distance of about one > metre. Sorry, that was nonsence. Indeed my feeling was and is, that a 34 inch monitor with

Re: GtkComobBox with appears-as-list - broken? going away?

2016-12-13 Thread Emmanuele Bassi
Hi; you probably wanted to send you email to gtk-devel-list. On 13 December 2016 at 20:08, Ian Puleston wrote: The "big blank area" is meant to ensure that the first item in the list is close to the location of the pointer; the "appears-as-list" style property was

RE: GtkComobBox with appears-as-list - broken? going away?

2016-12-13 Thread Ian Puleston
Thanks. I found this bug report opened a couple of years ago which seems to be the same thing that I'm seeing with appears-as-list set: https://bugzilla.gnome.org/show_bug.cgi?id=743683 If I can reproduce this in a Linux version as well as in the Windows version then I might look into possibly

GtkComobBox with appears-as-list - broken? going away?

2016-12-13 Thread Ian Puleston
Hi, Back in 2005 I was one of a bunch of people who submitted bug reports after the change to a menu-style GtkComboBox gave it a layout that, in the opinion of many of us, looked broken with a big blank area - Bug 129463 was the main one.

Re: Why GTK+ ignore, that someone want's to create own widget ?!

2016-12-13 Thread Ondrej Tuma
Hi, yeah, but what can i do, when i need to draw, yes really draw (mind maps) my own widgets. I don't need to gtk_render_frame, because, i need to draw all node on map with it's special attributes like size, color etc. And yes, I do that with cairo. GtkStyle is deprecated, get_border_color from

Re: Why GTK+ ignore, that someone want's to create own widget ?!

2016-12-13 Thread Ondrej Tuma
Sure, right, that is what i need. Thank you so much. V Tue, 13 Dec 2016 20:44:52 +0100 infirit napsáno: > Op 12/13/2016 om 08:03 PM schreef Ondrej Tuma: > > You are near. Application is Mind Map Architect. So I get / use > > system colors by default to set map background,

Re: Ideas of new widgets and critics, only for enhance gtk+.

2016-12-13 Thread Ondrej Tuma
Hi, my critics: Missing Action Helper class: https://bugzilla.gnome.org/show_bug.cgi?id=768228 Non inherited classes like Gtk.FileFilter (https://bugzilla.gnome.org/show_bug.cgi?id=724347) or Gtk.Menu .. Missing to_css method to generate right css from PangoFontDescription and the last time,

Re: Why GTK+ ignore, that someone want's to create own widget ?!

2016-12-13 Thread Emmanuele Bassi
Hi; On 13 December 2016 at 05:33, Ondrej Tuma wrote: > At the moment, i just to get default widget border color. But, the > gtk_style_context_get_border_color is deprecated... and i should to use > gtk_render_frame. Please tell me how can i use gtk_render_frame to get >

Re: Why GTK+ ignore, that someone want's to create own widget ?!

2016-12-13 Thread infirit
Op 12/13/2016 om 03:10 PM schreef Ondrej Tuma: > Now, if I want to get these settings from GTK+, I must doing some > breakneck magic, and I'm still don't know, if I'll get it. That are the > obstacles. Instead of complaining what was and is no more explain what you are trying to accomplish and

Re: Why GTK+ ignore, that someone want's to create own widget ?!

2016-12-13 Thread Ondrej Tuma
Thank's for your answer. I understand what is do under the public API. But when I'm using CSS (which is great idea for styling desktop application) in browser, i have still base tools (methods or access) to all display attributes like color, image, gradient, radius or what i need. Now, if I want

Re: Why GTK+ ignore, that someone want's to create own widget ?!

2016-12-13 Thread Ondrej Tuma
V Tue, 13 Dec 2016 16:46:51 +0100 infirit napsáno: > Op 12/13/2016 om 03:10 PM schreef Ondrej Tuma: > > Now, if I want to get these settings from GTK+, I must doing some > > breakneck magic, and I'm still don't know, if I'll get it. That are > > the obstacles. > > >

Re: Why GTK+ ignore, that someone want's to create own widget ?!

2016-12-13 Thread infirit
Op 12/13/2016 om 08:03 PM schreef Ondrej Tuma: > You are near. Application is Mind Map Architect. So I get / use system > colors by default to set map background, selected / normal nodes etc. You probably will get what you want with gtk_style_context_get, so something like below: GdkRGBA