Re: Emitting signals from threads

2019-03-07 Thread Mitko Haralanov via gtk-list
lumn >>> Activated an other column >>> Activated an other column >>> Activated an other column >>> Activated an other column >>> Activated an other column >>> Activated an other column >>> Activated an other column >>> Activated

Re: Emitting signals from threads

2019-03-07 Thread Mitko Haralanov via gtk-list
er column >>> Activated an other column >>> Activated an other column >>> Activated an other column >>> Activated an other column >>> Activated an other column >>> Activated an other column >>> Activated an other column >

Re: Emitting signals from threads

2019-03-06 Thread Mitko Haralanov via gtk-list
OK, thank you. Please, let me know if you'd like me to file a bug for this? Thanks On Wed, Mar 6, 2019 at 10:27 AM Luca Bacci wrote: > > I'm working on it. But yes, this really seems a bug in Gtk. > > Il mer 6 mar 2019, 18:40 Mitko Haralanov ha scritto: >> >> Hi, >&

Re: Emitting signals from threads

2019-03-06 Thread Mitko Haralanov via gtk-list
itto: >> >> You are right, and I withdraw my remarks. As noted, I didn't read it >> carefully enough. >> >> But yes, g_idle_add_full() runs in the worker thread, however that's one >> thing that is always OK. >> >> On Wed, Feb 27, 2019 at 6:03

Re: Changing font of GtkSourceView changes font of GtkSourceMap

2019-03-04 Thread Mitko Haralanov via gtk-app-devel-list
More information at: https://gitlab.gnome.org/GNOME/gtksourceview/commit/0ae462ebc8eceb810f176a21792a63de4efe597b On Mon, Mar 4, 2019 at 8:41 AM Mitko Haralanov wrote: > > I haven't played with the FontMap but was thinking of going the route > of using CSS. That, in itself, is a bit of

Re: Changing font of GtkSourceView changes font of GtkSourceMap

2019-03-04 Thread Mitko Haralanov via gtk-app-devel-list
I haven't played with the FontMap but was thinking of going the route of using CSS. That, in itself, is a bit of a hassle as I can't seem to find a way to convert a PangoFontDescription to CSS but there are some patches that I found online that should help. On Fri, Mar 1, 2019 at 7:16 PM Reuben

Re: Re: Changing font of GtkSourceView changes font of GtkSourceMap

2019-03-01 Thread Mitko Haralanov via gtk-app-devel-list
en Rissler wrote: > > > I forgot to cc the list. > > On 03/01/2019 03:23 PM, Mitko Haralanov wrote: > > Thanks for the example. > > > > I modified it to illustrate the behavior: > It verily looks like a bug to me. I can't figure out a way to work > around this

Re: Changing font of GtkSourceView changes font of GtkSourceMap

2019-03-01 Thread Mitko Haralanov via gtk-app-devel-list
_string("Sans 3")) > window.show_all() > > def on_window_destroy(self, window): > Gtk.main_quit() > > > if __name__ == "__main__": > app = GUI() > Gtk.main() > > > > On 02/27/2019 12:36 PM, Mitko Haralanov via gtk-app-d

Re: Emitting signals from threads

2019-02-27 Thread Mitko Haralanov via gtk-list
is supposed to be running in the main context thread by the virtue of being the g_idle_add_full() callback. Are you saying that the g_idle_add_full() callback also runs in the worker thread? On Wed, Feb 27, 2019 at 4:54 PM Paul Davis wrote: > > > > On Wed, Feb 27, 2019 at 5:46 P

Re: Emitting signals from threads

2019-02-27 Thread Mitko Haralanov via gtk-list
How is that? The update is happening from a callback executed by the main context thread? On Wed, Feb 27, 2019 at 4:24 PM Paul Davis wrote: > > > > On Wed, Feb 27, 2019 at 5:17 PM Mitko Haralanov via gtk-list > wrote: >> >> Here is a small program that illustrates th

Re: Emitting signals from threads

2019-02-27 Thread Mitko Haralanov via gtk-list
should see the spinner start spinning. After that, try clicking on multiple places on the first row. You'll see that the text "Third column activated" is displayed even when the click occurs on the second or even first columns. Thank you. On Wed, Feb 27, 2019 at 2:18 PM Fontana Nic

Re: Emitting signals from threads

2019-02-27 Thread Mitko Haralanov via gtk-list
ngs are still not clear but I was hoping that the additional information, which I posted earlier might be useful. Thank you, - Mitko On Wed, Feb 27, 2019 at 2:18 PM Fontana Nicola wrote: > > Il giorno mar, 08/01/2019 alle 10.02 -0800, Mitko Haralanov via gtk-list ha > scritto: > > Thanks for

Re: Emitting signals from threads

2019-02-27 Thread Mitko Haralanov via gtk-list
, 2019 at 1:10 PM Chris Vine via gtk-list wrote: > > On Wed, 27 Feb 2019 09:49:43 -0800 > Mitko Haralanov via gtk-list wrote: > [snip] > > However, as I understand it, if my signal is running in the main > > context, the signal handler should not be running at the same time as

Re: Emitting signals from threads

2019-02-27 Thread Mitko Haralanov via gtk-list
s replicated even if I switched to use g_idle_add() instead of g_main_context_invoke_full(). On Wed, Jan 9, 2019 at 11:08 AM Mitko Haralanov wrote: > > Sure, let me try to come up with something and if successful, I'll post it. > > Thank you. > > On Wed, Jan 9, 2019 at 10:33 AM L

Re: Changing font of GtkSourceView changes font of GtkSourceMap

2019-02-27 Thread Mitko Haralanov via gtk-app-devel-list
Still looking for some help on this. Thank you. On Mon, Feb 11, 2019 at 9:11 AM Mitko Haralanov wrote: > > Any help would be appreciated. > > Thank you. > > On Tue, Feb 5, 2019 at 2:28 PM Mitko Haralanov wrote: > > > > Forwarding to gtk-app-devel since there ap

Re: Using GVariantBuilder with complex structures

2019-02-27 Thread Mitko Haralanov via gtk-list
r_add(new, "{sv}", elem->id, new_dict); /* Insert this element into the parent's 'children' array. */ g_variant_builder_add(builder, "a{sv}", new); } builder = g_variant_builder_new(G_VARIANT_TYPE("aa{sv}")); add_elem(builder, ); dict =

Re: Using GVariantBuilder with complex structures

2019-02-26 Thread Mitko Haralanov via gtk-list
Does anyone have any pointers? Thank you. On Fri, Feb 22, 2019 at 11:58 AM Mitko Haralanov wrote: > > Hi, > > I've been trying to figure out how to use GVariantBuilder to build a > complex structure with little success. The type of structure that I > would like to build is

Using GVariantBuilder with complex structures

2019-02-22 Thread Mitko Haralanov via gtk-list
Hi, I've been trying to figure out how to use GVariantBuilder to build a complex structure with little success. The type of structure that I would like to build is meant to partially encode a GtkTreeModel structure. So, I thought that I could use GVariantBuilder to build a structure of nested

Scrolling to a line in GtkTextView

2019-02-12 Thread Mitko Haralanov via gtk-app-devel-list
Hi, In my application, I would like to have a GtkTextView be scrolled to a particular line after the GtkTextBuffer is loaded. According to the documentation, I can use gtk_text_view_scroll_to_mark() in order to reliably scroll to the desired line after the line height computation has been

Re: Force liststore to update when leaving treeview

2019-02-12 Thread Mitko Haralanov via gtk-app-devel-list
One idea is to hook the widget to the "leave-notify-event", which will be triggered when the mouse leaves the widget. On Tue, Feb 12, 2019 at 8:32 AM Mike Martin via gtk-app-devel-list wrote: > > Is this possible? > > I have a (for example) a grid which contains > Various action widgets > And a

Re: Changing font of GtkSourceView changes font of GtkSourceMap

2019-02-11 Thread Mitko Haralanov via gtk-app-devel-list
Any help would be appreciated. Thank you. On Tue, Feb 5, 2019 at 2:28 PM Mitko Haralanov wrote: > > Forwarding to gtk-app-devel since there appears to be much more activity > related to GtkSourceView. > > -- Forwarded message ----- > From: Mitko Haralanov > D

Fwd: Changing font of GtkSourceView changes font of GtkSourceMap

2019-02-05 Thread Mitko Haralanov via gtk-app-devel-list
Forwarding to gtk-app-devel since there appears to be much more activity related to GtkSourceView. -- Forwarded message - From: Mitko Haralanov Date: Tue, Feb 5, 2019, 13:42 Subject: Changing font of GtkSourceView changes font of GtkSourceMap To: I can't figure out how

Re: Emitting signals from threads

2019-01-09 Thread Mitko Haralanov via gtk-list
Sure, let me try to come up with something and if successful, I'll post it. Thank you. On Wed, Jan 9, 2019 at 10:33 AM Luca Bacci wrote: > > Hi Mitko, > last time I tried creating a simple C application for testing but I did get > always correct values. (Btw I used g_idle_add) > Can you try to

Re: Emitting signals from threads

2019-01-09 Thread Mitko Haralanov via gtk-list
e, 8 Jan 2019 10:02:58 -0800 > Mitko Haralanov via gtk-list wrote: > > Thanks for the reply. > > > > When calling g_main_context_invoke_full(), I am using NULL as the > > context pointer. According to the documentation of > > g_main_context_invoke(): > > >

Re: Emitting signals from threads

2019-01-09 Thread Mitko Haralanov via gtk-list
seems to be a performance problem, the > main thread continuously chews its way through the idle queue. > > Cheers > Lex > > On Wed, 9 Jan 2019 at 10:17, Mitko Haralanov wrote: > > > > I havent looked at the actual code but I am willing to bet that the "idle &g

Re: Emitting signals from threads

2019-01-08 Thread Mitko Haralanov via gtk-list
in your mind already) > > Each time you update a progress bar in your treeview, several (at least > one) events are added to the gtk-todo list (repaint!, re-order? and > maybe some more). Doing multiple progress events at once may lower the > amount of events, gtk has to process (a re

Re: Emitting signals from threads

2019-01-07 Thread Mitko Haralanov via gtk-list
Anyone have any ideas? I still can't figure out why the column sizes go to 0. Thank you. On Tue, Dec 18, 2018, 13:40 Mitko Haralanov This is Gtk3: > gtk3-3.22.26-2.fc27.x86_64 > > On Tue, Dec 18, 2018 at 1:14 PM Luca Bacci via gtk-list < > gtk-list@gnome.org> wrote: >

Re: Emitting signals from threads

2018-12-18 Thread Mitko Haralanov via gtk-list
This is Gtk3: gtk3-3.22.26-2.fc27.x86_64 On Tue, Dec 18, 2018 at 1:14 PM Luca Bacci via gtk-list wrote: > Is it Gtk2 or Gtk3, which version exactly? > > > Il giorno mar 18 dic 2018 alle ore 18:47 Mitko Haralanov via gtk-list < > gtk-list@gnome.org> ha scritto: > >

Fwd: Emitting signals from threads

2018-12-18 Thread Mitko Haralanov via gtk-list
I mistakenly replied only to Luca!! Forwarding to the list. (Sorry, Luca, my bad) - Mitko -- Forwarded message - From: Mitko Haralanov Date: Tue, Dec 18, 2018 at 9:37 AM Subject: Re: Emitting signals from threads To: Luca Bacci I found something that is different between

Emitting signals from threads

2018-12-17 Thread Mitko Haralanov via gtk-list
Hi, In my application, I want to be able to update a treeview from a separate thread. Each treeview row was a column that is a progress bar. The progress to be displayed is generated by a separate thread as to not block the UI. Since GTK is not thread-safe, the way the application is written is

Re: GtkTreeRowReference and Drag-and-Drop

2018-11-01 Thread Mitko Haralanov via gtk-app-devel-list
It seems to me that this is something that a Gtk developer would have to answer. However, it doesn't seem like this list is visited by any. The participation on this list seems to be pretty low. On Wed, Oct 24, 2018 at 9:49 AM Mitko Haralanov wrote: > I've implemented a treeview in

GtkTreeRowReference and Drag-and-Drop

2018-10-24 Thread Mitko Haralanov via gtk-app-devel-list
I've implemented a treeview in my application, which has drag-and-drop enabled to allow re-ordering of the rows. To support tree model updates while the user is performing dnd operations, I also have GtkTreeRowReferences for each row in the model (the model will not have too many rows). However,

Re: State actions and Glade

2018-10-04 Thread Mitko Haralanov via gtk-app-devel-list
Hi, Thank you for your reply. I am not sure what you mean by "GtkToolbar doesn't implement the GAction interface". In Glade, I can define the specify the "Action Name" for each individual widget in the Toolbar. Those action names get automatically linked to the actions that I've defined in the my

Re: State actions and Glade

2018-10-02 Thread Mitko Haralanov via gtk-app-devel-list
Can someone please help me with some pointer? Thank you. On Tue, Sep 18, 2018 at 9:35 AM Mitko Haralanov wrote: > I am trying to write an application using Glade where the tool bar > contains a set of radio tool buttons. Those radio tool buttons should not > perform an action when

State actions and Glade

2018-09-18 Thread Mitko Haralanov via gtk-app-devel-list
I am trying to write an application using Glade where the tool bar contains a set of radio tool buttons. Those radio tool buttons should not perform an action when activated but rather just change the associated action's state. For that I've set the 'Action Name' property for the tool buttons in

Creating menus and toolbars based on actions

2018-09-01 Thread Mitko Haralanov via gtk-list
Hi, I am attempting to write an application using gtk3 and I want to include a menu bar and toolbar in my application. Since the menu and tool bars will have duplicate items, I want to base both on actions. This way a menu item and a tool button that do the same thing point to the same action.

Re: Border of GtkTreeView through CSS

2017-08-24 Thread Mitko Haralanov
, effectively cutting them. On Thu, Aug 24, 2017 at 1:30 PM, infirit <infi...@gmail.com> wrote: > Op 08/24/2017 om 10:00 PM schreef Mitko Haralanov: > > treeview { > > border-color: yellow; > > border-style: solid; > > border-width: 2px; > > bo

Border of GtkTreeView through CSS

2017-08-24 Thread Mitko Haralanov
Hi all, I am trying to change the border style of a GtkTreeView widget through CSS and I am running into some very strange results. When I set the CSS for the GtkTreeView widgets with: treeview { border-color: yellow; border-style: solid; border-width: 2px; border-radius:

A couple of questions about GtkTreeView

2017-06-26 Thread Mitko Haralanov
Hi all, I am working on am application that uses a GtkTreeView to display a two-column list of information. There are a couple of things that I want to achieve but I am having some difficulty getting to work: 1. I want to have one of the columns be editable but only on a certain keypress. I

Re: gtk_widget_set_sensitive and mouse pointer

2008-07-15 Thread Mitko Haralanov
input? -- Mitko Haralanov == You know, Callahan's is a peaceable bar, but if you ask that dog what his favorite formatter is, and he says roff! roff!, well, I'll just have to... ___ gtk-app-devel-list mailing list

How to align buttons in GtkHButtonBox?

2008-07-07 Thread Mitko Haralanov
either. Thanks -- Mitko Haralanov == The 11 is for people with the pride of a 10 and the pocketbook of an 8. -- R.B. Greenberg [referring to PDPs?] ___ gtk-app-devel-list mailing list gtk-app-devel-list

Finding coordinates and dimensions of check box

2008-06-06 Thread Mitko Haralanov
but that includes the label associated with the checkbox widget and I am not interested in that. Thanks for the help -- Mitko Haralanov == Let me explain it to you slowly: Disks. Write. One. Write. At. A. Time. - Rik van Riel on linux-kernel

Re: Getting configure_event on widgets in notebook pages

2008-06-03 Thread Mitko Haralanov
in the workings of GTK/GDK to know at what stage does the GDK window of a widget become valid, so I don't know how to artificially cause the configure_event to happen. -- Mitko Haralanov == RADIO SHACK LEVEL II BASIC READY

Getting configure_event on widgets in notebook pages

2008-06-02 Thread Mitko Haralanov
the user to click on each of the notebook pages? Thanx -- Mitko Haralanov ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Tracking window position on screen

2008-03-04 Thread Mitko Haralanov
I am trying to find out which signal is emitted when a window is moved on the screen. I have looked at GtkWindow, GtkWidget, GtkContainer, and GtkScreen and I can't find anything that I can use. I know I am missing something since I've seen applications do it! -- Mitko Haralanov