]> git.babelmonkeys.de Git - jubjub.git/commitdiff
Add a status tooltip to the roster
authorFlorian Zeitz <florob@babelmonkeys.de>
Tue, 29 Jan 2013 22:24:32 +0000 (23:24 +0100)
committerFlorian Zeitz <florob@babelmonkeys.de>
Tue, 29 Jan 2013 22:24:32 +0000 (23:24 +0100)
data/gtk/roster.ui
src/gui/gtk/JubGtkRosterUI.m

index a39890a409f874047ca61c3ff4bf70311f837cc3..cadb855dedbbd1a0a9fc57c10216a165f1688f45 100644 (file)
@@ -41,6 +41,8 @@
       <column type="gchararray"/>
       <!-- column-name jid -->
       <column type="gchararray"/>
+      <!-- column-name show -->
+      <column type="gchararray"/>
       <!-- column-name status -->
       <column type="gchararray"/>
     </columns>
                 <property name="can_focus">True</property>
                 <property name="model">RosterTreeModelFilter</property>
                 <property name="search_column">0</property>
+                <property name="tooltip_column">3</property>
                 <child internal-child="selection">
                   <object class="GtkTreeSelection" id="RosterTreeViewSelection"/>
                 </child>
index bc1b36894b0a7ec4026d641105c28d0e69ce4ac9..4102e3432e3cf0307ffb90c9ff4908a613b1d4a2 100644 (file)
@@ -372,6 +372,9 @@ static gboolean filter_roster_by_presence(GtkTreeModel *model,
                        else if ([presence.type isEqual: @"unavailable"])
                                gtk_tree_store_set(roster_model, &iter,
                                    2, "unavailable", -1);
+
+                       gtk_tree_store_set(roster_model, &iter,
+                           3, [presence.status UTF8String], -1);
                }
 
                gtk_tree_model_filter_refilter(roster_filter);