Mouse leave on a row of GtkTreeView

2017-09-19 Thread pspgen
How can I detect when the mouse cursor leaves a GtkTreeView row ? Note that the signal "cursor-changed" is not what I am looking for, as it gets emitted as if it is a mouse enter (mouseover) event and I need it to be triggered when the mouse has just left the row. However within

A bug no one talks about: g_object_new: assert

2017-09-26 Thread pspgen
I use the newest GTK+ installed with MSYS2 and whenever I attempt to use g_application_send_notification() it always results in the following assert: (Notification Project.exe:27780): GLib-GObject-CRITICAL **: g_object_new: assert ion 'G_TYPE_IS_OBJECT (object_type)' failed Why I think it

Re: GtkRevealer glitches the text view drawing

2018-05-04 Thread pspgen
True that it worths trying queueing a resize. That's why I tried this before and unfortunatelly didn't fix it. In fact, I queued draw too. What I will try now is hide the widget and then show it - П.П. Искаш да разшириш бизнеса си и онлайн? Лесно е! Направи си

GtkRevealer glitches the text view drawing

2018-05-04 Thread pspgen
Okay, hiding the text view and then showing it again seems to work. - П.П. Само ти още нямаш сайт? Направи си, лесно е! Явката от рекламата ще ти разкаже повече на www.superhosting.bg.

IDE to develop app with GTK3 on windows using MSYS2

2018-05-07 Thread pspgen
If you do not want to cross-compile then you CAN use code blocks to develop GTK+3 based applications. You don't anymore need the project creation wizzard. Especially since GTK+3.12 or so. Just add the search directories and add `pkg-config --libs gtk+-3.0` into the linker additional options.

GtkRevealer glitches the text view drawing

2018-05-04 Thread pspgen
During the development of my program I came across one drawing glitch that I was unable to solve. I am using GtkRevealer to show and hide a GtkInfoBar above another box holding a scrolled window with a GtkTextView (actually GtkSourceView) a lot like it is in gedit. The whole thing is packed in

GtkRevealer glitches the text view drawing

2018-05-04 Thread pspgen
Even if we report it, it will still take time for the path. Right now, what I can do is come up with a way to avoid this. Knowing what causes it helps. Not using revealer is against my decisions. - П.П. Само ти още нямаш сайт? Направи си, лесно е! Явката

Drawing on GtkTextView with cairo

2018-05-15 Thread pspgen
Since I am developing a really, really huge GTK+ program I am getting through a lot of challenges. I nearly finished my program, but now I am spending a lot of time figuring out something, running out of time so I decided to ask the experts here. I have a "draw" signal connected after default

Re: GtkSourceView Gutter Example?

2018-05-18 Thread pspgen
Your only mistake is that you missed to explicitly point the width of the renderer: gtk_source_gutter_renderer_set_size(renderer, 20); It is stated in the reference page that you must do that. - П.П. Виж как една учителка по китайски реши да си направи

Rendering pixbuf in a single line (GtkSourceGutter)

2018-05-18 Thread pspgen
I have inserted custom gtk source gutter renderer pixbuf and I want to render icon on a specific line. But how am I supposed to do that if the GtkSourceGutter doesn't work with a tree model? Doing `gtk_source_gutter_renderer_pixbuf_set_pixbuf(renderer, pixbuf);` will render the icon for all

Re: Undefined reference to g_file_load_bytes()

2018-06-04 Thread pspgen
I updated with pacboy update now. Everything is up to date. But still pkg-config --modversion glib-2.0 returns 2.52.3 and if I try to reinstall gtk with pacman -S mingw-w64-x86_64-gtk3, it says it is up to date. - Mail.BG: Безплатен e-mail адрес.

Re: Undefined reference to g_file_load_bytes()

2018-06-04 Thread pspgen
Al right, despite that it still shows the same version it seems to actually be for real updated. Thanks a lot! Also my Glade and perhaps the entire gtk changed, one thing I noticed is that dialog windows use the native windows graphical environment, which I don't really like, nor expected.

Undefined reference to g_file_load_bytes()

2018-05-31 Thread pspgen
During my application programming, I had to use the GIO function g_file_load_bytes(). I have my GTK+ installation installed from MSYS (the new method) so I obviously have GIO. I previously even used g_file_load_contents() without problems, but now, it weirdly doesn't find definition for

Re: Undefined reference to g_file_load_bytes()

2018-06-01 Thread pspgen
- Цитат от Emmanuele Bassi (eba...@gmail.com), на 01.06.2018 в 11:20 - Hi; g_file_load_bytes() is available since GLib 2.56: https://developer.gnome.org/gio/stable/GFile.html#g-file-load-bytes so you'll need to make sure that the version of GLib provided by MSYS2 is new enough

How to change particular tab child of a GtkNotebook

2018-01-30 Thread pspgen
I am making a text editor in GTK, whereas each new file is loaded into a new tab. I don't want to create and initialize the same content (which happens to be huge) over again on all tabs (especially since only a GtkTextBuffer is to be different), so I decided to use gtk_notebook_detach_tab()

How to change particular tab child of a GtkNotebook

2018-01-30 Thread pspgen
Alright, arleady done that. I will stick to this idea. Thanks :) - П.П. Избра ли вече име за твоя сайт? Хайде, пазим място за него!Ела на www.superhosting.bg и вземи с до –50% отстъпка!

How to change particular tab child of a GtkNotebook

2018-01-30 Thread pspgen
I will still need to do a lot of expensive work to remove add and reconfigure all the child widgets (which are a lot), also I will need to be doing even more work to define the switch-tab behavior, which will involve keeping track of the latest tab content (to know where to remove the child