diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2010-05-02 09:59:02 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2010-05-02 09:59:02 +0000 |
commit | a64fe867861b0c1f02fdd5e3da3208015da9aa51 (patch) | |
tree | 14a1a665b1c79213b93a824c4784001b5aa2a412 /gtk/uat_gui.c | |
parent | a0f2f56ec80194533652c92d9cc640d0f24007ba (diff) |
Added tooltips for UAT column headers.
svn path=/trunk/; revision=32623
Diffstat (limited to 'gtk/uat_gui.c')
-rw-r--r-- | gtk/uat_gui.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/uat_gui.c b/gtk/uat_gui.c index 7a9a8fa7b9..3becfcac98 100644 --- a/gtk/uat_gui.c +++ b/gtk/uat_gui.c @@ -842,6 +842,9 @@ static GtkWidget* uat_window(void* u) { GtkTreeViewColumn *column; GtkCellRenderer *renderer; GtkTreeSelection *selection; + GtkTooltips *tooltips; + + tooltips = gtk_tooltips_new(); if (uat->rep) { window_present(uat->rep->window); @@ -894,6 +897,8 @@ static GtkWidget* uat_window(void* u) { gtk_tree_view_column_set_resizable (column,TRUE); gtk_tree_view_column_set_sizing(column,GTK_TREE_VIEW_COLUMN_AUTOSIZE); gtk_tree_view_append_column (rep->list, column); + if (f[colnum].desc != NULL) + gtk_tooltips_set_tip(tooltips, column->button, f[colnum].desc, NULL); /* gtk_clist_set_column_title(GTK_CLIST(rep->clist), colnum, f[colnum].title); |