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 a hassle

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
t;> pane = Gtk.Paned(orientation = Gtk.Orientation.HORIZONTAL) > >> window.add(pane) > >> s_view = GtkSource.View() > >> pane.pack1(s_view) > >> s_map = GtkSource.Map() > >> s_map.set_vie

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: 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 appears to be much more activity >

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 > Date: Tue, Feb 5, 2019,

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 to

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 my

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 activated

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