# HG changeset patch # User Luke Schierer # Date 1049376708 0 # Node ID a9b49d0e89704b384bf82fdfc3b4843c3258a81f # Parent ba713dabf3ef8ce20cd196b5d791315858f6d19a [gaim-migrate @ 5308] Brian (bjt23) added tooltips to the blist buttons. committer: Tailor Script diff -r ba713dabf3ef -r a9b49d0e8970 src/buddy.c --- a/src/buddy.c Thu Apr 03 06:13:26 2003 +0000 +++ b/src/buddy.c Thu Apr 03 13:31:48 2003 +0000 @@ -1127,6 +1127,7 @@ GtkTreeViewColumn *column; GtkWidget *sw; GtkWidget *button; + GtkTooltips *tooltips; GtkSizeGroup *sg; GtkTreeSelection *selection; GtkTargetEntry gte[] = {{"GAIM_BLIST_NODE", GTK_TARGET_SAME_APP, DRAG_ROW}, @@ -1247,6 +1248,8 @@ /**************************** Button Box **************************************/ /* add this afterwards so it doesn't force up the width of the window */ + tooltips = gtk_tooltips_new(); + sg = gtk_size_group_new(GTK_SIZE_GROUP_BOTH); gtkblist->bbox = gtk_hbox_new(TRUE, 0); gtk_box_pack_start(GTK_BOX(gtkblist->vbox), gtkblist->bbox, FALSE, FALSE, 0); @@ -1258,6 +1261,7 @@ gtk_size_group_add_widget(sg, button); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(gtk_blist_button_im_cb), gtkblist->treeview); + gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), button, _("Send an Instant Message to the selected buddy"), NULL); gtk_widget_show(button); button = gaim_pixbuf_button_from_stock(_("Get Info"), GAIM_STOCK_INFO, GAIM_BUTTON_VERTICAL); @@ -1266,6 +1270,7 @@ gtk_size_group_add_widget(sg, button); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(gtk_blist_button_info_cb), gtkblist->treeview); + gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), button, _("Get information on the selected buddy"), NULL); gtk_widget_show(button); button = gaim_pixbuf_button_from_stock(_("Chat"), GAIM_STOCK_CHAT, GAIM_BUTTON_VERTICAL); @@ -1273,6 +1278,7 @@ gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); gtk_size_group_add_widget(sg, button); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(gtk_blist_button_chat_cb), NULL); + gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), button, _("Join a chat room"), NULL); gtk_widget_show(button); button = gaim_pixbuf_button_from_stock(_("Away"), GAIM_STOCK_AWAY, GAIM_BUTTON_VERTICAL); @@ -1280,6 +1286,7 @@ gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); gtk_size_group_add_widget(sg, button); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(gtk_blist_button_away_cb), NULL); + gtk_tooltips_set_tip(GTK_TOOLTIPS(tooltips), button, _("Set an away message"), NULL); gtk_widget_show(button); /* this will show the right image/label widgets for us */