After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 634342 - GtkEntry::editing_cancelled accessor
GtkEntry::editing_cancelled accessor
Status: RESOLVED NOTABUG
Product: gtk+
Classification: Platform
Component: Widget: GtkEntry
2.23.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 597610
 
 
Reported: 2010-11-08 18:06 UTC by Morten Welinder
Modified: 2011-02-04 16:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Morten Welinder 2010-11-08 18:06:28 UTC
I need an accessor for the sealed GtkEntry::editing_cancelled.
Comment 1 Morten Welinder 2010-11-08 18:26:21 UTC
And a setter.
Comment 2 Javier Jardón (IRC: jjardon) 2010-11-08 21:23:03 UTC
What is the use case?
Comment 3 Morten Welinder 2010-11-08 22:15:25 UTC
A key binding that acts not entirely unlike this:

static gboolean
gtk_cell_editable_key_press_event (GtkEntry    *entry,
				   GdkEventKey *key_event,
				   gpointer     data)
{
  if (key_event->keyval == GDK_KEY_Escape)
    {
      entry->editing_canceled = TRUE;
      gtk_cell_editable_editing_done (GTK_CELL_EDITABLE (entry));
      gtk_cell_editable_remove_widget (GTK_CELL_EDITABLE (entry));

      return TRUE;
    }
[...]
Comment 4 Matthias Clasen 2010-11-09 17:36:09 UTC
Its a property. You shouldn't have any problems reading or writing it...