[monkey-bubble: 52/753] General cleanup:
- From: Sven Herzberg <herzi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [monkey-bubble: 52/753] General cleanup:
- Date: Wed, 14 Jul 2010 22:00:03 +0000 (UTC)
commit b2c638f3bf399b1396f76322fde1cdeaa004cf2d
Author: Federico Mena <federico bananoid nuclecu unam mx>
Date: Wed Jan 21 07:41:46 1998 +0000
General cleanup:
Wed Jan 21 01:18:34 1998 Federico Mena <federico bananoid nuclecu unam mx>
* programs/same-gnome/same-gnome.c (show_scores): cast hs to GNOME_SCORES.
* programs/gnomine/gnomine.c (show_scores): cast hs to GNOME_SCORES.
* programs/panel/panel.c (pop_down): return FALSE for timeout callback.
* programs/panel/mailcheck/mailcheck.c (mailcheck_properties):
cast property_window to GTK_WINDOW.
* libgnomeui/gnome-scores.c: #include <string.h>
(gnome_scores_set_logo_label): Added parentheses around assignment
in truth value.
* libgnomeui/gnome-app-helper.c (gnome_app_do_toolbar_creation):
Removed cast to GTK_PIXMAP from call to gtk_toolbar_append_item().
Wed Jan 21 00:41:27 1998 Federico Mena <federico bananoid nuclecu unam mx>
* All occurrences of snprintf() replaced by g_snprintf().
* The following entries are from a patch by Raja R. Harinath
<harinath cs umn edu>.
* po/it.po: remove extraneous `\'.
* libgnome/gnome-score-helper.c (gnome_get_program_name):
Compile code only ifdef __linux__.
* libgnome/gnome-util.c (g_unix_error_string): Use g_strerror.
* libgnome/gnome-score.c (gnome_score_log, gnome_score_get_notable):
Replace snprintf with g_snprintf.
* programs/gmailman/maillist.m (MLProcessMessage, MLGetListObjects,
initFromStream, initFromConfig, saveToConfig): Likewise.
programs/gmailman/majordomo.m (sendCtlMsg): Likewise.
programs/gmailman/smartlist.m (sendCtlMsg): Likewise.
* programs/gnomine/gnomine.c (top_ten, win_game): Likewise.
* programs/gsm/gsm.c (gsm_generate_session_list): Likewise.
* programs/gulp/gPrint.m (cancel, getJobs, isUp, isClean,
isStarted): Likewise.
programs/gulp/gulp.m (doprinterlist): Likewise.
* programs/desktop/property-screensaver.cc
(ConfigScreenSaver::nice_changed): Wrong field was being
updated.
(screensaver_register): Looked ugly inside extern "C" { }.
* programs/desktop/screensaver.h: Get proper definition for NULL,
not some random definition from glib.h.
* programs/gnometalk/protocol.c: Include <sys/types.h> earlier.
* programs/panel/batmon/batmon.c (batmon_timeout_callback):
Use non-surprising values for non-Linux m/cs.
libgnome/gnome-score.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgnome/gnome-score.c b/libgnome/gnome-score.c
index 64818cf..9f5f136 100644
--- a/libgnome/gnome-score.c
+++ b/libgnome/gnome-score.c
@@ -24,8 +24,8 @@ gnome_score_log(gfloat score,
if(childpid == 0)
{
/* We are the child */
- snprintf(buf, sizeof(buf), "%f", score);
- snprintf(buf2, sizeof(buf2), "%d", higher_to_lower_score_order);
+ g_snprintf(buf, sizeof(buf), "%f", score);
+ g_snprintf(buf2, sizeof(buf2), "%d", higher_to_lower_score_order);
execlp("gnome-score-helper", "gnome-score-helper",
buf, level?level:"", buf2, NULL);
exit(99);
@@ -56,7 +56,7 @@ gnome_score_get_notable(gchar *gamename,
g_return_val_if_fail(names != NULL, 0);
g_return_val_if_fail(scores != NULL, 0);
- if(realname == NULL)
+ if (gamename == NULL)
realname = gnome_get_program_name(getpid());
else
realname = g_strdup(gamename);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]