[gnumeric] Avoid freezing Gnumeric by clicking on a sheet tab.



commit a80a530cd1e70b24a89cb354f6d8b717283032c9
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Tue Aug 2 19:28:44 2011 -0600

    Avoid freezing Gnumeric by clicking on a sheet tab.
    
    2011-08-02  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* widget-editable-label.c (el_button_press_event): temporarily
    	disable

 src/widgets/ChangeLog               |    5 +++++
 src/widgets/widget-editable-label.c |   26 +++++++++++++-------------
 2 files changed, 18 insertions(+), 13 deletions(-)
---
diff --git a/src/widgets/ChangeLog b/src/widgets/ChangeLog
index 682e208..4954d80 100644
--- a/src/widgets/ChangeLog
+++ b/src/widgets/ChangeLog
@@ -1,3 +1,8 @@
+2011-08-02  Andreas J. Guelzow <aguelzow pyrshep ca>
+
+	* widget-editable-label.c (el_button_press_event): temporarily
+	disable
+
 2011-07-31  Morten Welinder <terra gnome org>
 
 	* Release 1.10.17
diff --git a/src/widgets/widget-editable-label.c b/src/widgets/widget-editable-label.c
index 3bf4b03..e927aa3 100644
--- a/src/widgets/widget-editable-label.c
+++ b/src/widgets/widget-editable-label.c
@@ -165,24 +165,24 @@ el_destroy (GtkWidget *widget)
 static gint
 el_button_press_event (GtkWidget *widget, GdkEventButton *button)
 {
-	EditableLabel *el = EDITABLE_LABEL (widget);
+	/* EditableLabel *el = EDITABLE_LABEL (widget); */
 
-	if (button->window != gtk_widget_get_window (widget)) {
-		/* Accept the name change */
-		el_entry_activate (GTK_ENTRY (el), NULL);
-		gdk_event_put ((GdkEvent *)button);
-		return TRUE;
-	}
+	/* if (button->window != gtk_widget_get_window (widget)) { */
+	/* 	/\* Accept the name change *\/ */
+	/* 	el_entry_activate (GTK_ENTRY (el), NULL); */
+	/* 	gdk_event_put ((GdkEvent *)button); */
+	/* 	return TRUE; */
+	/* } */
 
-	if (button->type == GDK_2BUTTON_PRESS) {
-		editable_label_start_editing (el);
-		return FALSE;
-	}
+	/* if (button->type == GDK_2BUTTON_PRESS) { */
+	/* 	editable_label_start_editing (el); */
+	/* 	return FALSE; */
+	/* } */
 
-	if (el->unedited_text == NULL)
+	/* if (el->unedited_text == NULL) */
 		return FALSE;
 
-	return parent_class->button_press_event (widget, button);
+	/* return parent_class->button_press_event (widget, button); */
 }
 
 /*



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