[uim-commit] r1259 - trunk/helper

tkng at freedesktop.org tkng at freedesktop.org
Sun Aug 21 14:08:55 EST 2005


Author: tkng
Date: 2005-08-20 21:08:53 -0700 (Sat, 20 Aug 2005)
New Revision: 1259

Modified:
   trunk/helper/pref-gtk.c
Log:
* helper/pref-gtk.c:
 -(create_setting_button_box): Added tooltips.


Modified: trunk/helper/pref-gtk.c
===================================================================
--- trunk/helper/pref-gtk.c	2005-08-21 03:44:28 UTC (rev 1258)
+++ trunk/helper/pref-gtk.c	2005-08-21 04:08:53 UTC (rev 1259)
@@ -320,6 +320,7 @@
 {
   GtkWidget *setting_button_box;
   GtkWidget *button;
+  GtkTooltips *tooltip;
 
   setting_button_box = gtk_hbutton_box_new();
   gtk_button_box_set_layout(GTK_BUTTON_BOX(setting_button_box), GTK_BUTTONBOX_END);
@@ -330,26 +331,35 @@
   g_signal_connect(G_OBJECT(button), "clicked",
 		   G_CALLBACK(defaults_button_clicked), (gpointer) group_name);
   gtk_box_pack_start(GTK_BOX(setting_button_box), button, TRUE, TRUE, 8);
+  tooltip = gtk_tooltips_new();
+  gtk_tooltips_set_tip(tooltip, button, _("Revert all changes to default"), NULL);
   
+
   /* Apply button */
   pref_apply_button = gtk_button_new_from_stock(GTK_STOCK_APPLY);
   g_signal_connect(G_OBJECT(pref_apply_button), "clicked",
 		   G_CALLBACK(apply_button_clicked), (gpointer) group_name);
   gtk_widget_set_sensitive(pref_apply_button, FALSE);
   gtk_box_pack_start(GTK_BOX(setting_button_box), pref_apply_button, TRUE, TRUE, 8);
+  tooltip = gtk_tooltips_new();
+  gtk_tooltips_set_tip(tooltip, pref_apply_button, _("Apply all new setting"), NULL);
 
   /* Cancel button */
   button = gtk_button_new_from_stock(GTK_STOCK_CANCEL);
   g_signal_connect(G_OBJECT(button), "clicked",
 		   G_CALLBACK(quit_confirm), NULL);
   gtk_box_pack_start(GTK_BOX(setting_button_box), button, TRUE, TRUE, 8);
-   
+  tooltip = gtk_tooltips_new();
+  gtk_tooltips_set_tip(tooltip, button, _("Quit this application without new preference applying"), NULL);   
+
   /* OK button */
   pref_ok_button = gtk_button_new_from_stock(GTK_STOCK_OK);
   g_signal_connect(G_OBJECT(pref_ok_button), "clicked",
 		   G_CALLBACK(ok_button_clicked), (gpointer) group_name);
   gtk_box_pack_start(GTK_BOX(setting_button_box), pref_ok_button, TRUE, TRUE, 8);
   gtk_widget_set_sensitive(pref_ok_button, FALSE);
+  tooltip = gtk_tooltips_new();
+  gtk_tooltips_set_tip(tooltip, pref_ok_button, _("Quit this application with new preference applying"), NULL);
 
   return setting_button_box;
 }



More information about the uim-commit mailing list