Tree view toggle and gtypes

2019-05-01 Thread Mike Martin via gtk-app-devel-list
Are there any gtypes that are compatible with both toggle and text renderers? Thanks ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Using different signals depending on which row of of a treeview

2019-05-01 Thread Mike Martin
This is more or less what I did except I added a signal_connect separately to the visibilty (which is in a cell_data_function on first renderer) ie: (perl) my @cells=Treeview->get_column(n)->get_cells; then $cells[n]->signal_connect(blah } ); (where n is the appropriate number of column/renderer)

Re: Using different signals depending on which row of of a treeview

2019-04-30 Thread Mike Martin via gtk-app-devel-list
This is more or less what I did except I added a signal_connect separately to the visibilty (which is in a cell_data_function on first renderer) ie: (perl) my @cells=Treeview->get_column(n)->get_cells; then $cells[n]->signal_connect(blah } ); (where n is the appropriate number of

Re: Using different signals depending on which row of of a treeview

2019-04-29 Thread Reuben Rissler
On 04/29/2019 10:36 AM, Mike Martin via gtk-app-devel-list wrote: Has anyone done anything like this? I haven't, but you are welcome to my simple Glade mockup:                               1     one         2     two       

Re: REMINDER: List moved to Discourse; archival in 1 week

2019-04-29 Thread Osmo Antero via gtk-app-devel-list
I go down with the boat. Emmanuele Bassi via gtk-app-devel-list escreveu no dia quarta, 24/04/2019 à(s) 12:36: > Hi all; > > next week, on May 1st, this list will be archived[0]. This means no new > subscriptions, and no new email. > > If you have questions about GTK, GLib, and the rest of the

Using different signals depending on which row of of a treeview

2019-04-29 Thread Mike Martin via gtk-app-devel-list
Has anyone done anything like this? Basically the idea is that I push multiple renderers into a treeview column , then depending on the row hide/show the appropriate renderer (text, combo, toggle) Then call the appropriate signal_connect (edited, changed, toggled)

Consult for gdk_window_shape_combine_region in GTK3

2019-04-26 Thread Zhenghua Ji via gtk-app-devel-list
Hi experts, I want to consult for the API gdk_window_shape_combine_region. We are upgrading our product from GTK2 to GTK3. Now we meet an issue for gdk_window_shape_combine_region We have an app, it will create a xwindow using XCreateWindow, and pass its xwindow id to another

Consult for gdk_window_shape_combine_region in GTK3

2019-04-26 Thread jizh9 via gtk-app-devel-list
Hi experts, I want to consult for the API gdk_window_shape_combine_region. We are upgrading our product from GTK2 to GTK3. Now we meet an issue for gdk_window_shape_combine_region We have an app, it will create a xwindow using XCreateWindow, and pass its xwindow id to

REMINDER: List moved to Discourse; archival in 1 week

2019-04-24 Thread Emmanuele Bassi via gtk-app-devel-list
Hi all; next week, on May 1st, this list will be archived[0]. This means no new subscriptions, and no new email. If you have questions about GTK, GLib, and the rest of the core GNOME development platform, you can use the Discourse[1] instance hosted on GNOME infrastructure; we have a

Subclassing on a GtkSourceMark

2019-04-15 Thread Zdravetz via gtk-app-devel-list
Hello guys! While I was developing my application I just wished that I had more control on the way GtkSourceMarks render (yes, I am using the GtkSourceViewModule) GTK+ is amazing in all aspects. Including the sources. So I ask you, who know GTK+ sources better, could you please provide me

RE: gtk3 drag and drop sample/demo

2019-04-15 Thread Pankaj Bansal via gtk-app-devel-list
Hello Emmanaele,   Thanks for replying and sorry if I sounded unreasonable to go and check the issue. I was referring to look at the issue and reproducer for the issue.   Issue: In Ubuntu 16.04 (gtk3.18) all works fine for in JavaFX. For Ubuntu 18.04 (gtk3.20 or later), the dnd stops

Re: gtk3 drag and drop sample/demo

2019-04-15 Thread Emmanuele Bassi via gtk-app-devel-list
On Mon, 15 Apr 2019 at 12:45, Pankaj Bansal via gtk-app-devel-list < gtk-app-devel-list@gnome.org> wrote: > I am working with OpenJDK JavaFX dev group and we are facing some problems > with drag and drop functionality with gtk3.20 or later. You can have a look > at the bug for more information >

gtk3 drag and drop sample/demo

2019-04-15 Thread Pankaj Bansal via gtk-app-devel-list
Hi All, I am working with OpenJDK JavaFX dev group and we are facing some problems with drag and drop functionality with gtk3.20 or later. You can have a look at the bug for more information https://bugs.openjdk.java.net/browse/JDK-8211302. It will be great if someone can point out any big

Re: TreeView - set border on individual cells

2019-04-09 Thread Eric Cashon via gtk-app-devel-list
I looked into this a little more. It looks like using an overlay is the easiest solution that I could find. You can override the render function of the cell renderer but then you will probably need all the code in the text cell renderer. This isn't too bad since the text cell renderer is

Re: Setting the scroll position of a GtkTextView in GtkScrolledWindow after render

2019-04-08 Thread Andri Möll via gtk-app-devel-list
Thanks, both! While I'm not using GtkSourceView but GtkTextView, given the former depends on the latter, they're related. Anyway, turns out that GtkTextView indeed lays its text out asynchronously without any event to notify when it's done. I did end up creating a GNOME Discourse topic,

Re: Setting the scroll position of a GtkTextView in GtkScrolledWindow after render

2019-04-08 Thread Reuben Rissler
On 04/08/2019 09:07 AM, Andri Möll via gtk-app-devel-list wrote: Hey, I can't figure out if it's me or something's amiss. I'm trying to set the scroll position after rendering a GtkTextView in a GtkScrolledWindow, but it's reset to a different value, if it works at all. I've so far tried

Re: Setting the scroll position of a GtkTextView in GtkScrolledWindow after render

2019-04-08 Thread Stefan Salewski
On Mon, 2019-04-08 at 13:07 +, Andri Möll via gtk-app-devel-list wrote: > I can't figure out if it's me or something's amiss. I'm trying to > set > the scroll position after rendering a GtkTextView May that be still this old bug:

Setting the scroll position of a GtkTextView in GtkScrolledWindow after render

2019-04-08 Thread Andri Möll via gtk-app-devel-list
Hey, I can't figure out if it's me or something's amiss. I'm trying to set the scroll position after rendering a GtkTextView in a GtkScrolledWindow, but it's reset to a different value, if it works at all. I've so far tried to set the vertical adjustment value both after GtkScrolledWindow is

Re: TreeView - set border on individual cells

2019-04-06 Thread Eric Cashon via gtk-app-devel-list
I see gtk_cell_renderer_render() in the documentation and it has a cairo_t to draw with. I haven't tried to subclass from a treeview and override the rendering. Something I should probably figure out. Do you know of an example of doing something like this in C? Maybe I can put together a

Re: TreeView - set border on individual cells

2019-04-06 Thread Emmanuele Bassi via gtk-app-devel-list
On Sat, 6 Apr 2019 at 20:15, wrote: > The second cairo_t is used so that the rectangle can be lined up to the > cell. If I use the cairo_t in the "draw" callback then the rectangle > doesn't line up. > You're still using: 1. the wrong window to draw on 2. deprecated API 3. a slow rendering

Re: TreeView - set border on individual cells

2019-04-06 Thread Eric Cashon via gtk-app-devel-list
Hi Emmanuele, The second cairo_t is used so that the rectangle can be lined up to the cell. If I use the cairo_t in the "draw" callback then the rectangle doesn't line up. Eric ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: TreeView - set border on individual cells

2019-04-06 Thread Emmanuele Bassi via gtk-app-devel-list
On Sat, 6 Apr 2019 at 19:05, Eric Cashon via gtk-app-devel-list < gtk-app-devel-list@gnome.org> wrote: > static gboolean draw_rectangle(GtkWidget *tree_view, cairo_t *cr, gpointer > data) > { > GtkTreePath *path=gtk_tree_path_new_from_indices(row_g, -1); > > g_print("Draw Rectangle %i

GtkTreeView. How to hide or show an individual cell in a row

2019-04-06 Thread Osmo Antero via gtk-app-devel-list
Hello, I am making a GTK3 application with GtkTreeView listing. The simple listing will show country flags + names and number of radio-channels (to later choose from). I want to show a button or icon in a column (in the cell) when the row has been selected. Otherwise the cell should be empty

Re: TreeView - set border on individual cells

2019-04-06 Thread Eric Cashon via gtk-app-devel-list
Hi Mike, I gave what you said a try and it looks to work well enough. Then, how do you get a box around a selected cell. It seems to me if you let the built in renderer do it's thing and then get a cairo_t to just draw a rectangle after, it should work, right? OK, a bit of a hack but it

Re: TreeView - set border on individual cells

2019-04-05 Thread Mike Martin via gtk-app-devel-list
On Fri, 5 Apr 2019, 12:36 Mike Martin, wrote: > Update, I worked out how to get rid of highlight > > 1 treeview->set selection mode(none) > 2 treeview->signal_connect(row_activated =>sub{ > Treeview->set_cursor_on_cell(path,column,cell,true) > } > ) > > Not exact code, but this is process that

Re: TreeView - set border on individual cells

2019-04-05 Thread Mike Martin
Update, I worked out how to get rid of highlight 1 treeview->set selection mode(none) 2 treeview->signal_connect(row_activated =>sub{ Treeview->set_cursor_on_cell(path,column,cell,true) } ) Not exact code, but this is process that worked for me Would still be useful if I could find out about

Re: TreeView - set border on individual cells

2019-04-05 Thread Tilo Villwock via gtk-app-devel-list
Am Donnerstag, den 04.04.2019, 23:04 +0100 schrieb Mike Martin via gtk- app-devel-list: > Is this possible? > > I did originally plan to have certain cells have a background colour > to > emphasize that there is a value to change. However as soon as the row > is > selected this is all wiped out

TreeView - set border on individual cells

2019-04-04 Thread Mike Martin via gtk-app-devel-list
Is this possible? I did originally plan to have certain cells have a background colour to emphasize that there is a value to change. However as soon as the row is selected this is all wiped out by the highlight from selected row So is it possible to set the borders on a cell by cell basis, all I

Re: Problem with grids and items spanning more than one column

2019-04-04 Thread Mike Martin
I resolved it by applying set_halign('start') to only the textview in the layout Looks like some interaction between the textview and the multicolumn liststore On Wed, 3 Apr 2019 at 12:53, Reuben Rissler wrote: > On 04/02/2019 05:09 AM, Mike Martin via gtk-app-devel-list wrote: > > I am using

Re: Setting attributes per cell in treeview (list store)

2019-04-03 Thread Eric Cashon via gtk-app-devel-list
Hi Mike, I think that you would need to set up individual color columns so that you can color individual cells in the table. For colors, “cell-background-rgba” gives better color control but “cell-background” with html basic colors might be simpler. Eric    //gcc -Wall stripe_list1.c -o

Setting attributes per cell in treeview (list store)

2019-04-03 Thread Mike Martin via gtk-app-devel-list
Hi I have a simple tree view based on a list store What is the best way to set attributes per row/column is for a specific cell not for a row or column? Basically it is used to set various options and some cells are not used, so I want them to be non-activatable /selectable to prevent any

Re: Problem with grids and items spanning more than one column

2019-04-03 Thread Reuben Rissler
On 04/02/2019 05:09 AM, Mike Martin via gtk-app-devel-list wrote: I am using an embedded Gtk grid within a grid , which contains numerous widgets However if I have a widget that spans more than one column it messes up the layout of all other widgets , which seem to position themseleves randomly

Problem with grids and items spanning more than one column

2019-04-02 Thread Mike Martin
I am using an embedded Gtk grid within a grid , which contains numerous widgets However if I have a widget that spans more than one column it messes up the layout of all other widgets , which seem to position themseleves randomly along the width of this widget, causing horribly jagged widget

Problem with grids and items spanning more than one column

2019-04-02 Thread Mike Martin via gtk-app-devel-list
I am using an embedded Gtk grid within a grid , which contains numerous widgets However if I have a widget that spans more than one column it messes up the layout of all other widgets , which seem to position themseleves randomly along the width of this widget, causing horribly jagged widget

Re: ANNOUNCE: Phasing out GTK mailing lists and move to Discord

2019-04-01 Thread Adam Tauno Williams
> The problem for me is clock. I tried Slack for a development project > I'm  leading, but important messages got lost in the shuffle. Also, > it wasjust another website to check, another interface to learn. +1 > Email has been a good aggregator tool to save time--it is just one > place I have

Re: Treeview (liststore) CSS question

2019-03-22 Thread Mike Martin
Resolved my issue, turns out I needed some voodoo with properties $widgetpage{file_scroll}->set('propagate_natural_height','1'); $widgetpage{file_scroll}->set_vexpand(0); On Mon, 18 Mar 2019 at 16:01, Mike Martin wrote: > Is it possible to set different background for a treestore, with a >

Re: ANNOUNCE: Phasing out GTK mailing lists and move to Discord

2019-03-21 Thread Michael Torrie via gtk-app-devel-list
Is the subject line of this thread a freudian slip? We are definitely moving toward discord, from the complaints! On 03/21/2019 09:33 AM, Emmanuele Bassi via gtk-app-devel-list wrote: > On Thu, 21 Mar 2019 at 02:28, Matthew A. Postiff via gtk-app-devel-list < > gtk-app-devel-list@gnome.org>

Re: ANNOUNCE: Phasing out GTK mailing lists and move to Discord

2019-03-21 Thread Emmanuele Bassi via gtk-app-devel-list
On Thu, 21 Mar 2019 at 02:28, Matthew A. Postiff via gtk-app-devel-list < gtk-app-devel-list@gnome.org> wrote: > Is it easy in discourse to turn on email, either daily digests or > "live"? Is there an rss feed that I can subscribe to? A quick howto > would be great. > There is a link on how to

Re: ANNOUNCE: Phasing out GTK mailing lists and move to Discord

2019-03-21 Thread Emmanuele Bassi via gtk-app-devel-list
On Wed, 20 Mar 2019 at 23:59, David C. Rankin < drankina...@suddenlinkmail.com> wrote: > On 03/18/2019 12:02 PM, Emmanuele Bassi via gtk-app-devel-list wrote: > > Hi all; > > > > as announced in: > > > > > https://mail.gnome.org/archives/gtk-devel-list/2019-March/msg0.html > > > > we have

Re: Treeview (liststore) CSS question

2019-03-21 Thread Mike Martin via gtk-app-devel-list
apologies I did resolve my issue , posted as wrong person Resolved my issue, turns out I needed some voodoo with properties $widgetpage{file_scroll}->set('propagate_natural_height','1'); $widgetpage{file_scroll}->set_vexpand(0); On Tue, 19 Mar 2019 at 18:53, wrote: > > Hi Mike, > > Have you

Re: ANNOUNCE: Phasing out GTK mailing lists and move to Discord

2019-03-20 Thread Liam R E Quin
On Wed, 2019-03-20 at 21:37 -0400, Reuben Rissler wrote: > I originally thought I would participate on Discourse via email, > then email got discouraged in favor of the web UI. > > I don't have that much answers, and neither do I have a lot of > questions. Therefore I will just quietly fade

Re: ANNOUNCE: Phasing out GTK mailing lists and move to Discord

2019-03-20 Thread Matthew A. Postiff via gtk-app-devel-list
On 3/20/2019 9:37 PM, Reuben Rissler wrote: RIP gtk-app-devel. :'( I hope this discourse thing succeeds. Personally I find it just another awkward, cumbersome run of the mill QA site. The mailing list should be preserved. But what do I know? I've only seen about 90% of these migrations to

Re: ANNOUNCE: Phasing out GTK mailing lists and move to Discord

2019-03-20 Thread Reuben Rissler
RIP gtk-app-devel. :'( I hope this discourse thing succeeds. Personally I find it just another awkward, cumbersome run of the mill QA site. The mailing list should be preserved. But what do I know? I've only seen about 90% of these migrations to forum like sites lose users and community

Re: ANNOUNCE: Phasing out GTK mailing lists and move to Discord

2019-03-20 Thread David C. Rankin
On 03/18/2019 12:02 PM, Emmanuele Bassi via gtk-app-devel-list wrote: > Hi all; > > as announced in: > > https://mail.gnome.org/archives/gtk-devel-list/2019-March/msg0.html > > we have created a Discourse instance available at: > > https://discourse.gnome.org RIP gtk-app-devel. I

Re: Treeview (liststore) CSS question

2019-03-19 Thread Eric Cashon via gtk-app-devel-list
Hi Mike, Have you tried gtk_widget_set_vexpand(tree, FALSE); on the treeview? This might work to show a different background color on the unused space of the treeview. I don't know if this is of any help but also remember that you can set individual row colors in a treeview by having a

Re: Treeview (liststore) CSS question

2019-03-19 Thread Mike Martin via gtk-app-devel-list
Its not whether the row is empty, its whether it exists On Mon, 18 Mar 2019 at 23:25, Daniel Kasak wrote: > On Tue, Mar 19, 2019 at 3:01 AM Mike Martin via gtk-app-devel-list < > gtk-app-devel-list@gnome.org> wrote: > >> Is it possible to set different background for a treestore, with a >>

Treeview (liststore) CSS question

2019-03-19 Thread Mike Martin
Is it possible to set different background for a treestore, with a liststore, for populated rows v blank area. ie: If I have a dynamic treeview I would like to have one background colour for the rows and another for the treestore where there are no rows The particular example has the following

Re: Treeview (liststore) CSS question

2019-03-19 Thread Mike Martin
Its not whether the row is empty, its whether it exists On Mon, 18 Mar 2019 at 23:25, Daniel Kasak wrote: > On Tue, Mar 19, 2019 at 3:01 AM Mike Martin via gtk-app-devel-list < > gtk-app-devel-list@gnome.org> wrote: > >> Is it possible to set different background for a treestore, with a >>

Re: Correct way to deallocate an unix signal source

2019-03-19 Thread Philip Withnall
On Mon, 2019-03-18 at 14:38 +0100, Enrico Mioso wrote: > Regarding the code, at exit I do the following: > if (my_state->mainloop) { > g_main_loop_unref(my_state->mainloop); > my_state->mainloop = NULL; > } > > if (my_state->ctx) { > g_main_context_unref(my_state->ctx); >

Re: Correct way to deallocate an unix signal source

2019-03-19 Thread Enrico Mioso via gtk-app-devel-list
That's great! Thanks! Yeah, I'll keep it on my mind. I currently choose to depend on GLib 2.58 to do something like: g_source_set_callback(lctx->logwatcher, G_SOURCE_FUNC(agh_ubus_logstream_channel_io), lctx, NULL); so there should be no issues in case. Thank again!! Enrico On Mon, 18 Mar

Re: Correct way to deallocate an unix signal source

2019-03-19 Thread Enrico Mioso via gtk-app-devel-list
Dear Philip, thank you very much for your answer and patience. I will send a patch soon! :) Regarding the code, at exit I do the following: if (my_state->mainloop) { g_main_loop_unref(my_state->mainloop); my_state->mainloop = NULL; } if (my_state->ctx) {

Re: Treeview (liststore) CSS question

2019-03-18 Thread Daniel Kasak via gtk-app-devel-list
On Tue, Mar 19, 2019 at 3:01 AM Mike Martin via gtk-app-devel-list < gtk-app-devel-list@gnome.org> wrote: > Is it possible to set different background for a treestore, with a > liststore, for populated rows v blank area. > > ie: If I have a dynamic treeview I would like to have one background

ANNOUNCE: Phasing out GTK mailing lists and move to Discord

2019-03-18 Thread Emmanuele Bassi via gtk-app-devel-list
Hi all; as announced in: https://mail.gnome.org/archives/gtk-devel-list/2019-March/msg0.html we have created a Discourse instance available at: https://discourse.gnome.org After testing it for the past couple of weeks, we're very satisfied with how the platform behaves, so we are

Treeview (liststore) CSS question

2019-03-18 Thread Mike Martin via gtk-app-devel-list
Is it possible to set different background for a treestore, with a liststore, for populated rows v blank area. ie: If I have a dynamic treeview I would like to have one background colour for the rows and another for the treestore where there are no rows The particular example has the following

Re: Correct way to deallocate an unix signal source

2019-03-18 Thread Philip Withnall
Hi, On Thu, 2019-03-14 at 00:09 +0100, Enrico Mioso wrote: > I am facing an issue, where it seems I am not deallocating correctly > an UNIX signal source. I use > my_state->unix_signals_src = g_unix_signal_source_new(SIGINT); > g_source_set_callback(my_state->unix_signals_src, my_unix_signals_cb,

Correct way to deallocate an unix signal source

2019-03-14 Thread Enrico Mioso via gtk-app-devel-list
Hello all, and thank you for your great work in the GLib library, and the entire GTK ecosystem! :) I am facing an issue, where it seems I am not deallocating correctly an UNIX signal source. I use my_state->unix_signals_src = g_unix_signal_source_new(SIGINT);

missing documentation about how to draw a window

2019-03-13 Thread Olaf Hering
I was browsing gtk.org in the hope to find a guide about how application developers are supposed to manage the contents of the windows they are about to draw in their applications. Unfortunately I found no guidance about that. Lets take the window where I type this email right now for example.

Re: Discourse instance

2019-03-09 Thread Amirouche Boubekki
On 2019-03-01 16:41, Emmanuele Bassi via gtk-list wrote: Hi all; after the discussion[1] last month, and the feedback received (both on list and off), we decided to trial a Discourse instance on the GNOME infrastructure. Good idea, Discourse is a good free software. The Platform/Core

Re: Discourse instance

2019-03-09 Thread Ernestas Kulik
On Fri, 2019-03-01 at 15:41 +, Emmanuele Bassi via gtk-devel-list wrote: > Hi all; Hey. > after the discussion[1] last month, and the feedback received (both > on list > and off), we decided to trial a Discourse instance on the GNOME > infrastructure. > > The Platform/Core sub-category is

Re: Discourse instance

2019-03-09 Thread Ryan Gonzalez via gtk-app-devel-list
Since you forgot the link... https://discourse.gnome.org/ -- Ryan (ライアン) Yoko Shimomura, ryo (supercell/EGOIST), Hiroyuki Sawano >> everyone else https://refi64.com/ On Fri, Mar 1, 2019, 9:42 AM Emmanuele Bassi via gtk-devel-list < gtk-devel-l...@gnome.org> wrote: > Hi all; > > after the

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: Finding .desktop file and application info

2019-03-04 Thread Osmo Antero via gtk-app-devel-list
Hello, Yes, g_desktop_app_info_search() is exactly what I need. I will test it later. Thanks a lot for your help. // Moma tito-wolit escreveu no dia segunda, 4/03/2019 à(s) 06:59: > > > On 3/3/19 9:53 PM, Osmo Antero wrote: > > Hello Tito, > > Muito obrigado. > > Thank you, the call with

Re: Finding .desktop file and application info

2019-03-03 Thread Osmo Antero via gtk-app-devel-list
Btw: Totem (GNOME `s Video Player) has very similar problem. It «lies» about its .desktop file name. It says "totem" instead of "org.gnome.Totem". My app asks for it via DBus/MPRIS2 and gets wrong data. $ locate -i totem | grep ".desktop" /usr/share/applications/org.gnome.Totem.desktop It is

Re: Finding .desktop file and application info

2019-03-03 Thread Osmo Antero via gtk-app-devel-list
Osmo Antero 20:53 (há 11 minutos) para tito-wolit Hello Tito, Muito obrigado. Thank you, the call with "kde4-" worked fine. However, the "DesktopEntry" value from Amarok/DBus does not contain the "kde4" part. Please see the MRIS2-spec:

Re: Finding .desktop file and application info

2019-03-03 Thread tito-wolit via gtk-app-devel-list
On 3/3/19 6:36 PM, Osmo Antero via gtk-app-devel-list wrote: Hello, I have an application that uses g_desktop_app_info_new() function to find GDesktopAppInfo. I just wonder why the g_desktop_app_info_new() FAILS to find the GDesktopAppInfo if the .desktop file is in a sub directory under

Finding .desktop file and application info

2019-03-03 Thread Osmo Antero via gtk-app-devel-list
Hello, I have an application that uses g_desktop_app_info_new() function to find GDesktopAppInfo. I just wonder why the g_desktop_app_info_new() FAILS to find the GDesktopAppInfo if the .desktop file is in a sub directory under usr/share/applications/. So this fails: GDesktopAppInfo *app_info =

Re: liststore issue 1 - iter points to wrong row after sort of column with cellrenderercombo

2019-03-02 Thread Mike Martin via gtk-app-devel-list
On Thu, 28 Feb 2019 at 18:05, Nicolas Soubeiran wrote: > As you noticed "editing-started" is used at the beginning of editing a > cell as the documentation states and is defined on the base class > GtkCellRenderer: > > This signal gets emitted when a cell starts to be edited. The intended use >

Re: Changing font of GtkSourceView changes font of GtkSourceMap

2019-03-01 Thread Reuben Rissler
I filed the following bug: https://gitlab.gnome.org/GNOME/gtksourceview/issues/41, which promptly got close as "expected behavior". Apparently, you'd either have to use CSS or install a new font map for the GtkSourceMap. Sure is disappointingly helpful. I can't figure out the connection

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

2019-03-01 Thread Mitko Haralanov via gtk-app-devel-list
So, to close the loop... I filed the following bug: https://gitlab.gnome.org/GNOME/gtksourceview/issues/41, which promptly got close as "expected behavior". Apparently, you'd either have to use CSS or install a new font map for the GtkSourceMap. On Fri, Mar 1, 2019 at 2:30 PM Reuben Rissler

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

2019-03-01 Thread Reuben Rissler
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 either. import gi gi.require_version('GtkSource', '3.0')

Re: Changing font of GtkSourceView changes font of GtkSourceMap

2019-03-01 Thread Mitko Haralanov via gtk-app-devel-list
Thanks for the example. I modified it to illustrate the behavior: import gi gi.require_version('GtkSource', '3.0') gi.require_version('Gtk', '3.0') from gi.repository import Gtk, GtkSource, GObject, Pango def set_font(button, view, map, tag): font_name = button.get_font_name() font =

Re: Discourse instance

2019-03-01 Thread Emmanuele Bassi via gtk-app-devel-list
Note: for those who prefer email, we've written down a handy guide on how to use email with Discourse: https://discourse.gnome.org/t/interacting-with-discourse-via-email/46 Ciao, Emmanuele. On Fri, 1 Mar 2019 at 15:50, Emmanuele Bassi wrote: > And, of course, I forgot the link:

Re: Discourse instance

2019-03-01 Thread Emmanuele Bassi via gtk-app-devel-list
And, of course, I forgot the link: https://discourse.gnome.org Embarrassing. Ciao, Emmanuele. On Fri, 1 Mar 2019 at 15:41, Emmanuele Bassi wrote: > Hi all; > > after the discussion[1] last month, and the feedback received (both on > list and off), we decided to trial a Discourse instance on

Discourse instance

2019-03-01 Thread Emmanuele Bassi via gtk-app-devel-list
Hi all; after the discussion[1] last month, and the feedback received (both on list and off), we decided to trial a Discourse instance on the GNOME infrastructure. The Platform/Core sub-category is meant to be used for all discussions about GTK, GLib, GdkPixbuf, Pango, and other core libraries

Re: liststore issue 1 - iter points to wrong row after sort of column with cellrenderercombo

2019-02-28 Thread Nicolas Soubeiran via gtk-app-devel-list
As you noticed "editing-started" is used at the beginning of editing a cell as the documentation states and is defined on the base class GtkCellRenderer: This signal gets emitted when a cell starts to be edited. The intended use of this signal is to do special setup on *editable* , e.g. adding a

Re: liststore issue 1 - iter points to wrong row after sort of column with cellrenderercombo

2019-02-28 Thread Mike Martin via gtk-app-devel-list
Thanks Though what I don't quite get is the difference in behaviour between editing-started and edited (both using path to get the ITER) On my particular scenario I use editing-started to setup some stuff so I can use the iter created On Thu, 28 Feb 2019, 12:30 Nicolas Soubeiran via

Re: Changing font of GtkSourceView changes font of GtkSourceMap

2019-02-28 Thread Reuben Rissler
I am not sure if this helps any: #!/usr/bin/env python import gi gi.require_version('GtkSource', '3.0') gi.require_version('Gtk', '3.0') from gi.repository import Gtk, GtkSource, GObject, Pango class GUI:     def __init__(self):         GObject.type_register(GtkSource.View)         window =

Re: liststore issue 1 - iter points to wrong row after sort of column with cellrenderercombo

2019-02-28 Thread Nicolas Soubeiran via gtk-app-devel-list
Hello, after you sort the model, you shall consider that all iter and path previously stored are wrong : A path is a representation of the position of the row in the current case (which you can read by using gtk_tree_path_to_string).

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 >

Re: liststore issue 2 - which 'path' comes from signal

2019-02-27 Thread Reuben Rissler
On 02/27/2019 06:51 AM, Mike Martin via gtk-app-devel-list wrote: according to the docs the path reference is edited signal = path editing-started = path These above two look like something a treeview uses changed = path_string And this one I assume to be coming from a CellRendererCombo?

Re: liststore issue 1 - iter points to wrong row after sort of column with cellrenderercombo

2019-02-27 Thread Reuben Rissler
On 02/27/2019 06:46 AM, Mike Martin via gtk-app-devel-list wrote: I have come across an issue where the iter points to the wrong row on edited signal after sorting the column (via clicking header). This only happens with edited signal and not editing-started (which is correct) I don't

liststore issue 2 - which 'path' comes from signal

2019-02-27 Thread Mike Martin via gtk-app-devel-list
according to the docs the path reference is edited signal = path editing-started = path changed = path_string which I thought meant that path would be a treepath (ie: an object) and path_string would be a reference to the row (an integer in the case of a simple liststore) However in all three

liststore issue 1 - iter points to wrong row after sort of column with cellrenderercombo

2019-02-27 Thread Mike Martin via gtk-app-devel-list
I have come across an issue where the iter points to the wrong row on edited signal after sorting the column (via clicking header). This only happens with edited signal and not editing-started (which is correct) The edited iter is obtained via

Re: textview buffers and primary clipboard issue

2019-02-25 Thread Doug McCasland
Well I played with some tag table calls and now things work correctly. Previously I was using: | gtk_text_view_new() which creates a TextView and a buffer, then | buf[i] = gtk_text_view_get_buffer() to get the buffer object. Then for each new tag in each buffer: |

Re: textview buffers and primary clipboard issue

2019-02-21 Thread Doug McCasland
Some add'l info: This is using GTK 3.24 in Lubuntu 18.10. When I select with the mouse and use middle-click to paste in the *same* buffer -- with an image below the text, as described above -- it does work normally. So in that case, even though the Primary clipboard incorrectly contains

textview buffers and primary clipboard issue

2019-02-19 Thread Doug McCasland
Hi, I have a GTK3 app that uses Notebook with a TextView buffer for each page. At startup, I call: | tagset_atom_serialize = | gtk_text_buffer_register_serialize_tagset(buf[i], "myapp"); | tagset_atom_deserialize = | gtk_text_buffer_register_deserialize_tagset(buf[i],

Re: Using GTK in proprietary software

2019-02-15 Thread Fontana Nicola
Il giorno ven, 15/02/2019 alle 10.26 +0100, Jean-Dominique Frattini ha scritto: > And what if the final program is statically linked with Gtk+ (ie on Windows > with mingw32) ? Citing https://www.gnu.org/licenses/gpl-faq.html#LGPLStaticVsDynamic: "If you statically link against an LGPLed

Re: Force liststore to update when leaving treeview

2019-02-12 Thread Reuben Rissler
On 02/12/2019 11:32 AM, Mike Martin via gtk-app-devel-list wrote: Is this possible? Yes. I did this a while back, but would need to find an archive to provide you with exact code. I have a (for example) a grid which contains Various action widgets And a Treeview based on a liststore Is

Re: Scrolling to a line in GtkTextView

2019-02-12 Thread Reuben Rissler
On 02/12/2019 12:47 PM, Mitko Haralanov via gtk-app-devel-list wrote: Hi, In my application, I would like to have a GtkTextView be scrolled to a particular line after the GtkTextBuffer is loaded. This was already discussed

Re: Force liststore to update when leaving treeview

2019-02-12 Thread Reuben Rissler
On 02/12/2019 12:25 PM, Mitko Haralanov via gtk-app-devel-list wrote: One idea is to hook the widget to the "leave-notify-event", which will be triggered when the mouse leaves the widget. Have you used this with a GtkTreeView? I mean, actually implemented what Mike Martin is requesting? On

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

Force liststore to update when leaving treeview

2019-02-12 Thread Mike Martin via gtk-app-devel-list
Is this possible? I have a (for example) a grid which contains Various action widgets And a Treeview based on a liststore Is there any way to make sure that the changes made to a cell in the liststore are "committed" if I click on one of the other widgets I cant find anything to do this and if

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,

Re: Using GTK in proprietary software

2019-02-11 Thread Fontana Nicola
Il giorno ven, 08/02/2019 alle 18.45 +, asrs ha scritto: > Dear Nicola, > > Thankyou for your informative response, > I would like to know if I may use "GTK" as a suffix in the name of my > commercial product. There already are plenty of applications with GTK in their names, see e.g.:

Re: Moving from mailing lists to Discourse

2019-02-08 Thread Tilo Villwock via gtk-app-devel-list
Am Mittwoch, den 06.02.2019, 12:46 +0100 schrieb Emmanuele Bassi via gtk-app-devel-list: > [Cross-posted to various relevant mailing lists; please, reply to > gtk-devel-list] > > As part of an attempt at making GTK more friendly to newcomers, I and > other > core developers were thinking of

Re: Using GTK in proprietary software

2019-02-07 Thread Fontana Nicola
Il giorno mer, 06/02/2019 alle 16.25 +, asrs via gtk-app-devel-list ha scritto: > Dear GTK developers, > > I want to redistrbute GTK (and its LGPL) unabridged with proprietary software, > to make a graphical application. Ciao, if you use shared linking (AFAIK the only way officially

Re: Migrating away from GtkStock stuff

2019-02-07 Thread Emmanuele Bassi via gtk-app-devel-list
On Thu, 7 Feb 2019 at 13:30, Gabriele Greco wrote: > (test:77229): Gtk-WARNING **: 14:28:49.162: Could not find the icon > 'help-about'. The 'hicolor' theme > was not found either, perhaps you need to install it. > You can get a copy from: > http://icon-theme.freedesktop.org/releases > >

Re: Migrating away from GtkStock stuff

2019-02-07 Thread Gabriele Greco via gtk-app-devel-list
> > >> If you're using `edit-find` or `document-save` then you're using a named > icon from the icon theme, not the stock identifier. > > For those, you'll have to ship an icon theme like Adwaita. > That's really strange, it seems there is something in my gtk stack that converts GTK_STOCK_XXX to

  1   2   3   4   5   6   7   8   9   10   >