2006-07-31 Johan Bilien <johan.bilien@nokia.com>
authorJohan Bilien <johan.bilien@nokia.com>
Mon, 31 Jul 2006 14:33:04 +0000 (14:33 +0000)
committerJohan Bilien <johan.bilien@nokia.com>
Mon, 31 Jul 2006 14:33:04 +0000 (14:33 +0000)
* 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

ChangeLog
hildon-widgets/hildon-code-dialog.c

index a6d5101..716a876 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+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
index 0f027cf..abcd073 100644 (file)
@@ -25,7 +25,7 @@
 
 #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)
@@ -353,7 +356,9 @@ static void hildon_code_dialog_insert_text (GtkEditable *editable,
 
     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)