Re: GtkShortcutsWindow how to

2018-01-09 Thread Ondrej Tuma
cument"; >doc.add(open); > }); > > application.connect("activate", () => { >win.show_all(); > }); > > application.run(ARGV); > ``` > > I don't know though, how to get search to work in this. Please share > the setup if you

GtkShortcutsWindow how to

2018-01-09 Thread Ondrej Tuma
Hi there, i try to create ShortcutsWindow for my application but, in documentation is: The recommended way to construct a GtkShortcutsWindow is with GtkBuilder, by populating a GtkShortcutsWindow with one or more GtkShortcutsSection objects, which contain GtkShortcutsGroups that in turn contain o

Re: Webkit2 export html to PDF

2017-11-21 Thread Ondrej Tuma
st preventDefault = true; > return preventDefault; >}); > >webView.connect("load_changed", (_, loadEvent) => { > if (loadEvent === LoadEvent.FINISHED) { >webView.run_javascript("print();", null, null); > } >}); >

Webkit2 export html to PDF

2017-11-21 Thread Ondrej Tuma
Hi there, do you someone here know, ho to get pdf from html via WebKit2? I generate html page from some another sources, and i want to export pdf from this html. I can generate pdf by another library, but i use WebKit2, GTK+, resp. cairo, so these libraries are ready to that. I was study webkit2

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, se

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, g

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 obstacl

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

2016-12-13 Thread Ondrej Tuma
> > 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 &

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

2016-12-13 Thread Ondrej Tuma
nn > wrote: > > Hi Ondrej > > > > What about using GtkStyle? > > > > gtk_widget_get_style() > > > > Bests, > > Joël > > > > > > On Tue, Dec 13, 2016 at 6:33 AM, Ondrej Tuma > > wrote: > >> At the moment, i just to get default widget bor

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

2016-12-12 Thread Ondrej Tuma
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 border color?! How? What GTK do is putting obstacles in the way of creating more comple

Re: Font Description to CSS string

2016-11-21 Thread Ondrej Tuma
r - look at the minimal example - C-File, > CSS File, Resource File, and the Makefile - and the comments therein. > > Hope this helps. > > Cheers, > Martin > > > On Fri, 2016-11-18 at 21:02 +0100, Ondrej Tuma wrote: > > Hi all, > > > > as gt

Font Description to CSS string

2016-11-18 Thread Ondrej Tuma
Hi all, as gtk_widget_override_font is deprecated from gtk 3.16, i try to use GtkStyleProvider. But, when I sent style data with font variable definitioin, I got WARNING message: Using Pango syntax for the font: style property is deprecated; please use CSS syntax So question is,

GAction fine, but not finished

2016-06-28 Thread Ondrej Tuma
Hi all, last days, I was play with GTK+ 3 in python. I make aplication for editing reStructuredText, MarkDown and HTML with live preview: https://github.com/ondratu/formiko So, i start use GAction, which looks great, but by time, i found some shortcomings. I'm not sure with destination this mail,

Re: Own Actionable widget

2016-06-09 Thread Ondrej Tuma
Hi, V Thu, 9 Jun 2016 09:05:17 + Debarshi Ray napsáno: > > i try to create my own Actionable widget, but I can't found, how > > can i call the action. When i see source code of other Actionable > > widgets, i found ActionHelper object, which is not documented. > > GtkActionHelper is a priva

Own Actionable widget

2016-06-06 Thread Ondrej Tuma
Hi, i try to create my own Actionable widget, but I can't found, how can i call the action. When i see source code of other Actionable widgets, i found ActionHelper object, which is not documented. So, could you help me, how can I simple call action with taget value ? What i found is probably fun

Gtk+3 application Internationalization

2016-04-14 Thread Ondrej Tuma
Hi, because Stock Items are deprecated from Gtk+3.10, what can I use, if I want to use gtk locales in my Application. I don't know, if I understand it well, that I must translate all strings in my application (copy from Stock Items) one more time to all languages just like Gtk if I want to use th

event-after in Gtk+-3.0

2014-07-07 Thread Ondrej Tuma
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, i use event-after in Mind Map Architect to center map widget to root node. In Gtk+2.0 version, I've connect to first event-after signal, to set values on ScrolledWindow adjustments. But this not work in Gtk+-3.0 version. Please, do you tell m

Change media type for css in webkit

2014-01-23 Thread Ondrej Tuma
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I',m creating screenshot of web with gtk webkit via store image from widget. But' now, i need to do screenshot from web when it is in print style ,like user print the page, but with classic monitor dpi, and window size. So i need to change we

Re: how to set link-color on Label

2013-08-27 Thread Ondrej Tuma
, and some is disabled. How i think about that, may be, i can change default color for "disabled" links, and that will not be links Thanks a lot Ondrej V Tue, 27 Aug 2013 13:25:21 -0300 Jose Paulo napsáno: > Le 27/08/2013 12:31, Ondrej Tuma a écrit : > > i want to change

how to set link-color on Label

2013-08-27 Thread Ondrej Tuma
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, i want to change link-color on some Label widgets, but only on some. I can't find how i can do that. I will use in vala, but never mind, if the example will be in python or C ;) Thanks a lot ! - -- Ondřej Tůma www: http://ipv6.mcbig.cz