[gnumeric] GUI: fix problem with hpaned for tabs/scrollbar. [#607794]
- From: Morten Welinder <mortenw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnumeric] GUI: fix problem with hpaned for tabs/scrollbar. [#607794]
- Date: Mon, 25 Jan 2010 19:49:09 +0000 (UTC)
commit ccb9b329c791f61474c55648709ed3ff6a14790e
Author: Morten Welinder <terra gnome org>
Date: Mon Jan 25 14:48:46 2010 -0500
GUI: fix problem with hpaned for tabs/scrollbar. [#607794]
ChangeLog | 5 +++++
NEWS | 1 +
src/wbc-gtk.c | 16 ++++++++++++++++
3 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index d347b26..f706940 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-01-25 Morten Welinder <terra gnome org>
+
+ * src/wbc-gtk.c (cb_bnotebook_button_press): New function to work
+ around bug #607794.
+
2010-01-24 Andreas J. Guelzow <aguelzow pyrshep ca>
* src/func.c (function_dump_defs): also dump Excel and
diff --git a/NEWS b/NEWS
index d1a31a6..dd52ef1 100644
--- a/NEWS
+++ b/NEWS
@@ -7,6 +7,7 @@ Andreas:
Morten:
* Fix TRIMMEAN border case. [#607562]
* Fix TDIST border case. [#607008]
+ * Fix problem with hpaned for tabs/scrollbar. [#607794]
--------------------------------------------------------------------------
Gnumeric 1.9.18
diff --git a/src/wbc-gtk.c b/src/wbc-gtk.c
index 9276e91..ac63a54 100644
--- a/src/wbc-gtk.c
+++ b/src/wbc-gtk.c
@@ -1012,6 +1012,19 @@ cb_paned_button_press (GtkWidget *widget, GdkEventButton *event)
return FALSE;
}
+static gboolean
+cb_bnotebook_button_press (GtkWidget *widget, GdkEventButton *event)
+{
+ if (event->type == GDK_2BUTTON_PRESS && event->button == 1) {
+ /*
+ * Eat the click so cb_paned_button_press doesn't see it.
+ * see bug #607794.
+ */
+ return TRUE;
+ }
+
+ return FALSE;
+}
static void
wbc_gtk_create_notebook_area (WBCGtk *wbcg)
@@ -1036,6 +1049,9 @@ wbc_gtk_create_notebook_area (WBCGtk *wbcg)
g_signal_connect_after (G_OBJECT (wbcg->bnotebook),
"switch_page",
G_CALLBACK (cb_notebook_switch_page), wbcg);
+ g_signal_connect (G_OBJECT (wbcg->bnotebook),
+ "button-press-event", G_CALLBACK (cb_bnotebook_button_press),
+ NULL);
gtk_paned_pack1 (wbcg->tabs_paned, GTK_WIDGET (wbcg->bnotebook), FALSE, TRUE);
gtk_widget_show_all (GTK_WIDGET (wbcg->tabs_paned));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]