summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2004-06-07 04:04:27 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-06-07 04:04:27 +0000
commite387e7e60cb171d9909e0853bb59b04b6cae3189 (patch)
tree7fd356623712a4990cd9a2e211296b0e0c1e0bb8 /ChangeLog
parent7f08ab3ae7c5150abd7ca8b5b529ccfda1d54cd0 (diff)
downloadgtk+-e387e7e60cb171d9909e0853bb59b04b6cae3189.tar.gz
Make the entry context menu work in editable text cells. The changes are
Sun Jun 6 23:57:21 2004 Matthias Clasen <maclas@gmx.de> Make the entry context menu work in editable text cells. The changes are based on a patch by Kristian Rietveld, which implemented an approach outlined by Owen Taylor. (#50075) * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_focus_out_event): Ignore focus out if the entry menu is posted. (gtk_cell_renderer_text_populate_popup): Mark the entry menu as posted, and set up a signal handler to clear the flag if the menu is unmapped. (gtk_cell_renderer_text_popup_unmap): Clear the in_entry_menu flag, set up a timeout to stop editing if the focus is lost. (popdown_timeout): Stop editing if the entry doesn't have focus any more. (gtk_cell_renderer_text_start_editing): Connect to the populate_popup signal on the entry and keep a pointer to the entry. (gtk_cell_renderer_text_editing_done): Disconnect from popuplate_popup, clear the pointer to the entry.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog18
1 files changed, 18 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 5277270d5c..fa35ebe0e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+Sun Jun 6 23:57:21 2004 Matthias Clasen <maclas@gmx.de>
+
+ Make the entry context menu work in editable text cells. The changes are
+ based on a patch by Kristian Rietveld, which implemented an approach outlined
+ by Owen Taylor. (#50075)
+
+ * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_focus_out_event): Ignore
+ focus out if the entry menu is posted.
+ (gtk_cell_renderer_text_populate_popup): Mark the entry menu as posted, and
+ set up a signal handler to clear the flag if the menu is unmapped.
+ (gtk_cell_renderer_text_popup_unmap): Clear the in_entry_menu flag, set up
+ a timeout to stop editing if the focus is lost.
+ (popdown_timeout): Stop editing if the entry doesn't have focus any more.
+ (gtk_cell_renderer_text_start_editing): Connect to the populate_popup signal
+ on the entry and keep a pointer to the entry.
+ (gtk_cell_renderer_text_editing_done): Disconnect from popuplate_popup, clear
+ the pointer to the entry.
+
Sun Jun 6 23:24:43 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtktexttag.c (gtk_text_tag_class_init): Improve the description