diff options
author | Jeff Garzik <jgarzik@src.gnome.org> | 1999-01-19 02:22:32 +0000 |
---|---|---|
committer | Jeff Garzik <jgarzik@src.gnome.org> | 1999-01-19 02:22:32 +0000 |
commit | d7ceebba84a0cfb33e1bdc9f26409ac3b0a95900 (patch) | |
tree | 39b0eb48e1e4ea29176e18900d00b8182e31ce46 /batmon/batmon.c | |
parent | f3c63436bc1a0ca7493224480cae181834f45513 (diff) |
applets/gnome-pager/gnomepager_applet.c: 64-bit casts
everything else: gtkcompat.h substitutions (s/old-func-name/new-func-name/)
Diffstat (limited to 'batmon/batmon.c')
-rw-r--r-- | batmon/batmon.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/batmon/batmon.c b/batmon/batmon.c index 70dcc26e3..e771f921e 100644 --- a/batmon/batmon.c +++ b/batmon/batmon.c @@ -142,8 +142,8 @@ batmon_timeout_callback (gpointer *data) batmin /= 60; /* As stated above, we show the APM Driver and APM BIOS versions. */ - gtk_label_set (GTK_LABEL (driverlabel), string[0]); - gtk_label_set (GTK_LABEL (bioslabel), string[1]); + gtk_label_set_text (GTK_LABEL (driverlabel), string[0]); + gtk_label_set_text (GTK_LABEL (bioslabel), string[1]); g_free (mempoint); #elif __FreeBSD__ @@ -194,7 +194,7 @@ batmon_timeout_callback (gpointer *data) g_snprintf(str, sizeof(str), "%d.%d", aip.ai_major, aip.ai_minor); - gtk_label_set (GTK_LABEL (bioslabel), str); + gtk_label_set_text (GTK_LABEL (bioslabel), str); close(fd); #else @@ -208,28 +208,28 @@ batmon_timeout_callback (gpointer *data) check which flags are set? */ switch (batflag) { case NOEXIST_MASK: - gtk_label_set (GTK_LABEL (statlabel), _("There is no battery?!?")); + gtk_label_set_text (GTK_LABEL (statlabel), _("There is no battery?!?")); break; case HIGH_MASK | CHARGE_MASK: - gtk_label_set (GTK_LABEL (statlabel), _("High and charging.")); + gtk_label_set_text (GTK_LABEL (statlabel), _("High and charging.")); break; case HIGH_MASK: - gtk_label_set (GTK_LABEL (statlabel), _("High.")); + gtk_label_set_text (GTK_LABEL (statlabel), _("High.")); break; case LOW_MASK | CHARGE_MASK: - gtk_label_set (GTK_LABEL (statlabel), _("Low and charging.")); + gtk_label_set_text (GTK_LABEL (statlabel), _("Low and charging.")); break; case LOW_MASK: - gtk_label_set (GTK_LABEL (statlabel), _("Low.")); + gtk_label_set_text (GTK_LABEL (statlabel), _("Low.")); break; case CRIT_MASK | CHARGE_MASK: - gtk_label_set (GTK_LABEL (statlabel), _("Critical and charging.")); + gtk_label_set_text (GTK_LABEL (statlabel), _("Critical and charging.")); break; case CRIT_MASK: - gtk_label_set (GTK_LABEL (statlabel), _("Critical!!")); + gtk_label_set_text (GTK_LABEL (statlabel), _("Critical!!")); break; case CHARGE_MASK: - gtk_label_set (GTK_LABEL (statlabel), _("Charging.")); + gtk_label_set_text (GTK_LABEL (statlabel), _("Charging.")); break; } @@ -255,7 +255,7 @@ batmon_timeout_callback (gpointer *data) g_warning (_("More than 100,000,000 minutes of battery life?!?")); return FALSE; } - gtk_label_set (GTK_LABEL (minlabel), str); + gtk_label_set_text (GTK_LABEL (minlabel), str); gtk_tooltips_set_tip (tooltips, GTK_WIDGET (data), tipstr, NULL); |