Re: gtk-app-devel-list Digest, Vol 140, Issue 4



Hi Friedrich, try to stay on objectives. Do you use an IPC mechanism,
or is it a separate thread?
A callback is called by g_main_context_iteration() of gtk_main() it's
polled some how.
More code would be great and better information about it.

If it's a multi-threaded issue you might want to take a look at GMutex
and GCond.
With g_mutex_lock() and g_mutex_unlock() you're normally well served.

Bests,
Joël Krähemann


On Thu, Dec 10, 2015 at 1:00 PM,  <gtk-app-devel-list-request gnome org> wrote:
Send gtk-app-devel-list mailing list submissions to
        gtk-app-devel-list gnome org

To subscribe or unsubscribe via the World Wide Web, visit
        https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
or, via email, send a message with subject or body 'help' to
        gtk-app-devel-list-request gnome org

You can reach the person managing the list at
        gtk-app-devel-list-owner gnome org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gtk-app-devel-list digest..."


Today's Topics:

   1. GtkTreeView - Conflict between one click editing and
      selection (Friedrich Beckmann)


----------------------------------------------------------------------

Message: 1
Date: Wed, 9 Dec 2015 22:22:50 +0100
From: Friedrich Beckmann <friedrich beckmann gmx de>
To: gtk-app-devel-list gnome org
Subject: GtkTreeView - Conflict between one click editing and
        selection
Message-ID: <F0D47FDF-5A6B-4372-9936-2DA306F0A9F1 gmx de>
Content-Type: text/plain;       charset=us-ascii

Hi,

i am working on an application which uses GtkTreeView. I tried to start editing the cells with one click by 
setting the focus of the cell in the row-activated callback like this:

static void
on_row_activated (GtkTreeView *treeview,
                  GtkTreePath *path,
                  GtkTreeViewColumn *column,
                  PsppireVarSheet *var_sheet)
{
    gtk_tree_view_set_cursor (treeview, path, column, TRUE);
}

However, this interferes with the selection process because the row-activated is signalled which will start 
the editing mode when I start the rubber band. Is there a way to start editing in a spreadsheet like way 
with just one click without interfering with the selection process? A video of the application without 
single click as mentioned above is here: https://youtu.be/4xS0Beb0Gdo

Friedrich




------------------------------

Subject: Digest Footer

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

------------------------------

End of gtk-app-devel-list Digest, Vol 140, Issue 4
**************************************************


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]