diff options
author | Guido Günther <agx@sigxcpu.org> | 2009-07-13 18:46:06 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2009-07-13 18:46:06 +0200 |
commit | 7dfce86b3a06e5e5aa78e269df4d6c53b140024b (patch) | |
tree | 616beee41b26507b52fc6be319eb7c0ae6b3e3a5 /gtksecentry | |
parent | Imported Upstream version 0.11 (diff) | |
download | krb5-auth-dialog-7dfce86b3a06e5e5aa78e269df4d6c53b140024b.tar.gz krb5-auth-dialog-7dfce86b3a06e5e5aa78e269df4d6c53b140024b.tar.bz2 krb5-auth-dialog-7dfce86b3a06e5e5aa78e269df4d6c53b140024b.zip |
Imported Upstream version 0.12
Diffstat (limited to 'gtksecentry')
-rw-r--r-- | gtksecentry/Makefile.in | 1 | ||||
-rw-r--r-- | gtksecentry/gtksecentry.c | 51 |
2 files changed, 19 insertions, 33 deletions
diff --git a/gtksecentry/Makefile.in b/gtksecentry/Makefile.in index a406089..aa348f0 100644 --- a/gtksecentry/Makefile.in +++ b/gtksecentry/Makefile.in @@ -171,6 +171,7 @@ POSUB = @POSUB@ PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ RANLIB = @RANLIB@ +SC_PKCS11 = @SC_PKCS11@ SED = @SED@ SETCAP = @SETCAP@ SET_MAKE = @SET_MAKE@ diff --git a/gtksecentry/gtksecentry.c b/gtksecentry/gtksecentry.c index 712ff2a..b024386 100644 --- a/gtksecentry/gtksecentry.c +++ b/gtksecentry/gtksecentry.c @@ -42,11 +42,6 @@ #include "gtksecentry.h" #include "memory.h" -#ifndef _ -# include <libintl.h> -# define _(x) gettext(x) -#endif - #define MIN_SECURE_ENTRY_WIDTH 150 #define DRAW_TIMEOUT 20 #define INNER_BORDER 2 @@ -451,27 +446,24 @@ gtk_secure_entry_class_init(GtkSecureEntryClass * class) g_object_class_install_property(gobject_class, PROP_CURSOR_POSITION, g_param_spec_int("cursor_position", - _("Cursor Position"), - _ - ("The current position of the insertion cursor in chars"), + "Cursor Position", + "The current position of the insertion cursor in chars", 0, MAX_SIZE, 0, G_PARAM_READABLE)); g_object_class_install_property(gobject_class, PROP_SELECTION_BOUND, g_param_spec_int("selection_bound", - _("Selection Bound"), - _ - ("The position of the opposite end of the selection from the cursor in chars"), + "Selection Bound", + "The position of the opposite end of the selection from the cursor in chars", 0, MAX_SIZE, 0, G_PARAM_READABLE)); g_object_class_install_property(gobject_class, PROP_MAX_LENGTH, g_param_spec_int("max_length", - _("Maximum length"), - _ - ("Maximum number of characters for this entry. Zero if no maximum"), + "Maximum length", + "Maximum number of characters for this entry. Zero if no maximum", 0, MAX_SIZE, 0, G_PARAM_READABLE | G_PARAM_WRITABLE)); @@ -479,9 +471,8 @@ gtk_secure_entry_class_init(GtkSecureEntryClass * class) g_object_class_install_property(gobject_class, PROP_HAS_FRAME, g_param_spec_boolean("has_frame", - _("Has Frame"), - _ - ("FALSE removes outside bevel from entry"), + "Has Frame", + "FALSE removes outside bevel from entry", TRUE, G_PARAM_READABLE | G_PARAM_WRITABLE)); @@ -489,10 +480,8 @@ gtk_secure_entry_class_init(GtkSecureEntryClass * class) g_object_class_install_property(gobject_class, PROP_INVISIBLE_CHAR, g_param_spec_unichar("invisible_char", - _ - ("Invisible character"), - _ - ("The character to use when masking entry contents (in \"password mode\")"), + "Invisible character", + "The character to use when masking entry contents (in \"password mode\")", '*', G_PARAM_READABLE | G_PARAM_WRITABLE)); @@ -501,16 +490,14 @@ gtk_secure_entry_class_init(GtkSecureEntryClass * class) PROP_ACTIVATES_DEFAULT, g_param_spec_boolean ("activates_default", - _("Activates default"), - _ - ("Whether to activate the default widget (such as the default button in a dialog) when Enter is pressed"), + "Activates default", + "Whether to activate the default widget (such as the default button in a dialog) when Enter is pressed", FALSE, G_PARAM_READABLE | G_PARAM_WRITABLE)); g_object_class_install_property(gobject_class, PROP_WIDTH_CHARS, g_param_spec_int("width_chars", - _("Width in chars"), - _ - ("Number of characters to leave space for in the entry"), + "Width in chars", + "Number of characters to leave space for in the entry", -1, G_MAXINT, -1, G_PARAM_READABLE | G_PARAM_WRITABLE)); @@ -518,18 +505,16 @@ gtk_secure_entry_class_init(GtkSecureEntryClass * class) g_object_class_install_property(gobject_class, PROP_SCROLL_OFFSET, g_param_spec_int("scroll_offset", - _("Scroll offset"), - _ - ("Number of pixels of the entry scrolled off the screen to the left"), + "Scroll offset", + "Number of pixels of the entry scrolled off the screen to the left", 0, G_MAXINT, 0, G_PARAM_READABLE)); g_object_class_install_property(gobject_class, PROP_TEXT, g_param_spec_string("text", - _("Text"), - _ - ("The contents of the entry"), + "Text", + "The contents of the entry", "", G_PARAM_READABLE | G_PARAM_WRITABLE)); |