hitori r44 - in trunk: . src
- From: pwithnall svn gnome org
- To: svn-commits-list gnome org
- Subject: hitori r44 - in trunk: . src
- Date: Sun, 1 Mar 2009 23:53:22 +0000 (UTC)
Author: pwithnall
Date: Sun Mar 1 23:53:22 2009
New Revision: 44
URL: http://svn.gnome.org/viewvc/hitori?rev=44&view=rev
Log:
2009-03-01 Philip Withnall <philip tecnocode co uk>
* src/interface.c (hitori_create_interface), (hitori_contents_cb),
(hitori_about_cb):
* src/main.c (main): Fixed some calls to printf()-style functions
without format specifiers, and some bad code for displaying the help.
Modified:
trunk/ChangeLog
trunk/src/interface.c
trunk/src/main.c
Modified: trunk/src/interface.c
==============================================================================
--- trunk/src/interface.c (original)
+++ trunk/src/interface.c Sun Mar 1 23:53:22 2009
@@ -1,7 +1,7 @@
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* Hitori
- * Copyright (C) Philip Withnall 2007-2008 <philip tecnocode co uk>
+ * Copyright (C) Philip Withnall 2007-2009 <philip tecnocode co uk>
*
* Hitori is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -49,7 +49,7 @@
GTK_MESSAGE_ERROR,
GTK_BUTTONS_OK,
_("UI file \"%s/hitori/hitori.ui\" could not be loaded."), PACKAGE_DATA_DIR);
- gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), error->message);
+ gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s", error->message);
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
@@ -476,20 +476,15 @@
void
hitori_contents_cb (GtkAction *action, Hitori *hitori)
{
- GTimeVal current_time;
GError *error = NULL;
- g_get_current_time (¤t_time);
-
- if (gtk_show_uri (gtk_widget_get_screen (hitori->window), "ghelp:hitori",
- current_time.tv_sec * 1000 + current_time.tv_usec,
- &error) == FALSE) {
+ if (gtk_show_uri (gtk_widget_get_screen (hitori->window), "ghelp:hitori", gtk_get_current_event_time (), &error) == FALSE) {
GtkWidget *dialog = gtk_message_dialog_new (NULL,
- GTK_DIALOG_MODAL,
- GTK_MESSAGE_ERROR,
- GTK_BUTTONS_OK,
- _("The help contents could not be displayed."));
- gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), error->message);
+ GTK_DIALOG_MODAL,
+ GTK_MESSAGE_ERROR,
+ GTK_BUTTONS_OK,
+ _("The help contents could not be displayed."));
+ gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s", error->message);
gtk_dialog_run (GTK_DIALOG (dialog));
@@ -529,7 +524,7 @@
gtk_show_about_dialog (GTK_WINDOW (hitori->window),
"version", VERSION,
- "copyright", _("Copyright \xc2\xa9 2007-2008 Philip Withnall"),
+ "copyright", _("Copyright \xc2\xa9 2007-2009 Philip Withnall"),
"comments", _("A logic puzzle designed by Nikoli."),
"authors", authors,
"translator-credits", _("translator-credits"),
Modified: trunk/src/main.c
==============================================================================
--- trunk/src/main.c (original)
+++ trunk/src/main.c Sun Mar 1 23:53:22 2009
@@ -1,7 +1,7 @@
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* Hitori
- * Copyright (C) Philip Withnall 2007-2008 <philip tecnocode co uk>
+ * Copyright (C) Philip Withnall 2007-2009 <philip tecnocode co uk>
*
* Hitori is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -207,7 +207,7 @@
GTK_MESSAGE_ERROR,
GTK_BUTTONS_OK,
_("Command-line options could not be parsed."));
- gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), error->message);
+ gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), "%s", error->message);
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]