From 9fb349fcd244bf4b0380931f5e1d739c1e8fab00 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Mon, 8 Dec 2008 12:59:13 +0000 Subject: [PATCH] Fix showing tooltips for notebook tab labels (oops). git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3343 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 6 ++++++ src/document.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index acd8d075..4cd7c314 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-12-08 Nick Treleaven + + * src/document.c: + Fix showing tooltips for notebook tab labels (oops). + + 2008-12-07 Enrico Tröger * src/callbacks.c: diff --git a/src/document.c b/src/document.c index 2b8b05a9..52bd55b5 100644 --- a/src/document.c +++ b/src/document.c @@ -283,7 +283,9 @@ void document_update_tab_label(GeanyDocument *doc) g_return_if_fail(doc != NULL); base_name = g_path_get_basename(DOC_FILENAME(doc)); + /* we need to use the event box for the tooltip, labels don't get the necessary events */ parent = gtk_widget_get_parent(doc->priv->tab_label); + parent = gtk_widget_get_parent(parent); gtk_label_set_text(GTK_LABEL(doc->priv->tab_label), base_name); gtk_label_set_text(GTK_LABEL(doc->priv->tabmenu_label), base_name);