Fixed bug where gui would crash when columns were resized.
[pspp-builds.git] / src / ui / gui / customentry.c
index 9afe978c2e50dfc97192e0ed774c4224cf644e3c..762603f84ba16e02a004be58189e6130fbe279ba 100644 (file)
  * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
  */
 
+#include <config.h>
+#include <gettext.h>
+#define _(msgid) gettext (msgid)
+
+
 #include <gtk/gtksignal.h>
 #include <gtk/gtkentry.h>
 #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),