[monkey-bubble: 53/753] General cleanup:
- From: Sven Herzberg <herzi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [monkey-bubble: 53/753] General cleanup:
- Date: Wed, 14 Jul 2010 22:00:08 +0000 (UTC)
commit 98c22a15852eae41a9a20a63bb3adb8d8b7958e7
Author: Federico Mena <federico bananoid nuclecu unam mx>
Date: Wed Jan 21 07:41:47 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.
libgnomeui/gnome-scores.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libgnomeui/gnome-scores.c b/libgnomeui/gnome-scores.c
index 9fd45d6..d0333f7 100644
--- a/libgnomeui/gnome-scores.c
+++ b/libgnomeui/gnome-scores.c
@@ -4,6 +4,7 @@
* Free software (under the terms of the GNU Library General Public License)
*/
+#include <string.h>
#include "gnome-scores.h"
#include "libgnome/gnome-defs.h"
#include "libgnome/gnome-util.h"
@@ -92,7 +93,7 @@ gnome_scores_new ( guint n_scores,
gtk_widget_show ( gs->label_names[i] );
gtk_table_attach_defaults ( table, gs->label_names[i], 0, 1, i+1, i+2);
- snprintf(tmp,10,"%5.2f", scores[i]);
+ g_snprintf(tmp,10,"%5.2f", scores[i]);
gs->label_scores[i] = gtk_label_new ( tmp );
gtk_widget_show ( gs->label_scores[i] );
gtk_table_attach_defaults ( table, gs->label_scores[i], 1, 2, i+1, i+2);
@@ -190,7 +191,7 @@ void gnome_scores_set_logo_label (GnomeScores *gs, gchar *txt, gchar *font,
if( font ) fo = font;
else fo = "-freefont-garamond-*-*-*-*-30-170-*-*-*-*-iso8859-1";
- if( f = gdk_fontset_load ( fo ) )
+ if ((f = gdk_fontset_load (fo)))
s->font = f;
gs->logo = gtk_label_new(txt);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]