+2006-07-31 Johan Bilien <johan.bilien@nokia.com>
+
+ * hildon-widgets/hildon-code-dialog.c
+ (hildon_code_dialog_insert_text):
+ - Use hildon_banner_show_info instead of deprecated gtk_info_print
+ - Localize the string in the applet
+
+ NB#36309
+
2006-07-25 Fernando Herrera <fernando.herrera-de-las-heras@nokia.com>
* configure.ac: 0.12.21
#include "hildon-code-dialog.h"
#include "hildon-defines.h"
-#include "gtk-infoprint.h"
+#include "hildon-banner.h"
#include <gdk/gdkkeysyms.h>
#define WIDTH (60-HILDON_MARGIN_DEFAULT)
#define BACKSPACE_ICON "qgn_calculator_backspace"
-#define _(String) dgettext(PACKAGE, String)
-#define DEVICELOCK_OK _("secu_enter_lock_code_dialog_ok")
-#define DEVICELOCK_CANCEL _("secu_enter_lock_code_dialog_cancel")
-#define DEVICELOCK_TITLE _("secu_application_title")
+#define _(String) dgettext(PACKAGE, String)
+#define c_(String) dgettext("hildon-common-strings", String)
+#define DEVICELOCK_OK _("secu_enter_lock_code_dialog_ok")
+#define DEVICELOCK_CANCEL _("secu_enter_lock_code_dialog_cancel")
+#define DEVICELOCK_TITLE _("secu_application_title")
+#define DEVICELOCK_MAX_CHAR_REACHED c_("ckdg_ib_maximum_characters_reached")
+
#define MAX_PINCODE_LEN (10)
if (length == MAX_PINCODE_LEN)
{
- gtk_infoprint(NULL, "ckdg_ib_maximum_characters_reached");
+ hildon_banner_show_information (dialog,
+ NULL,
+ DEVICELOCK_MAX_CHAR_REACHED);
}
else if (!length)