[Gpredict-svn] SF.net SVN: gpredict:[326] trunk/src/sat-pref-single-sat.c
Real time satellite tracking and orbit prediction
Status: Beta
Brought to you by:
csete
From: <cs...@us...> - 2009-05-24 09:20:17
|
Revision: 326 http://gpredict.svn.sourceforge.net/gpredict/?rev=326&view=rev Author: csete Date: 2009-05-24 09:20:09 +0000 (Sun, 24 May 2009) Log Message: ----------- Use field label instead of field hint as checkbox label. Use field hint as tooltip text. Modified Paths: -------------- trunk/src/sat-pref-single-sat.c Modified: trunk/src/sat-pref-single-sat.c =================================================================== --- trunk/src/sat-pref-single-sat.c 2009-05-24 09:19:05 UTC (rev 325) +++ trunk/src/sat-pref-single-sat.c 2009-05-24 09:20:09 UTC (rev 326) @@ -50,6 +50,7 @@ static gboolean dirty = FALSE; static gboolean reset = FALSE; +extern const gchar *SINGLE_SAT_FIELD_TITLE[]; extern const gchar *SINGLE_SAT_FIELD_HINT[]; static void toggle_cb (GtkToggleButton *toggle, gpointer data); @@ -100,7 +101,8 @@ for (i = 0; i < SINGLE_SAT_FIELD_NUMBER; i++) { - check[i] = gtk_check_button_new_with_label (SINGLE_SAT_FIELD_HINT[i]); + check[i] = gtk_check_button_new_with_label (SINGLE_SAT_FIELD_TITLE[i]); + gtk_widget_set_tooltip_text (check[i], SINGLE_SAT_FIELD_HINT[i]); gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check[i]), flags & (1 << i)); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |