X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fui%2Fgui%2Fcustomentry.c;h=762603f84ba16e02a004be58189e6130fbe279ba;hb=2dd0df69f627a06ffb887128d22e3d686d1cd207;hp=9afe978c2e50dfc97192e0ed774c4224cf644e3c;hpb=dcf9b154cbcaa35c3d8459a201b77eec8bcb30bd;p=pspp diff --git a/src/ui/gui/customentry.c b/src/ui/gui/customentry.c index 9afe978c2e..762603f84b 100644 --- a/src/ui/gui/customentry.c +++ b/src/ui/gui/customentry.c @@ -58,11 +58,15 @@ * GTK+ at ftp://ftp.gtk.org/pub/gtk/. */ +#include +#include +#define _(msgid) gettext (msgid) + + #include #include #include "customentry.h" -#define P_(A) A static void psppire_custom_entry_class_init (PsppireCustomEntryClass *klass); static void psppire_custom_entry_init (PsppireCustomEntry *ce); @@ -253,11 +257,11 @@ static gint psppire_custom_entry_expose (GtkWidget *widget, GdkEventExpose *event) { + PsppireCustomEntry *ce = PSPPIRE_CUSTOM_ENTRY(widget); + g_return_val_if_fail (PSPPIRE_IS_CUSTOM_ENTRY (widget), FALSE); g_return_val_if_fail (event != NULL, FALSE); - PsppireCustomEntry *ce = PSPPIRE_CUSTOM_ENTRY(widget); - if (GTK_WIDGET_DRAWABLE (widget)) { GtkShadowType shadow_type; @@ -331,7 +335,7 @@ psppire_custom_entry_class_init (PsppireCustomEntryClass *klass) (widget_class, g_param_spec_enum ("shadow_type", "Shadow Type", - P_("Style of bevel around the custom entry button"), + _("Style of bevel around the custom entry button"), GTK_TYPE_SHADOW_TYPE, GTK_SHADOW_ETCHED_IN, G_PARAM_READABLE),