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
This commit is contained in:
parent
cc04ba744b
commit
9fb349fcd2
@ -1,3 +1,9 @@
|
||||
2008-12-08 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||
|
||||
* src/document.c:
|
||||
Fix showing tooltips for notebook tab labels (oops).
|
||||
|
||||
|
||||
2008-12-07 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
||||
|
||||
* src/callbacks.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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user