pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: warning from GtkBuilder


From: Ben Pfaff
Subject: Re: warning from GtkBuilder
Date: Sun, 08 Mar 2009 14:35:47 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Ben Pfaff <address@hidden> writes:

> Hi John, I am getting the following warning from GtkBuilder
> immediately at PSPPIRE startup:
>
> Gtk-CRITICAL **: gtk_label_set_label: assertion `str != NULL' failed
> aborting...

I've tracked this down to two missing "label" properties in the
generated .ui file.  If I apply the following patch to the
installed file, I don't get the warnings:

--- /usr/local/share/pspp/data-editor.ui        2009-03-08 14:31:00.000000000 
-0700
+++ data-editor.ui      2009-03-08 14:30:41.000000000 -0700
@@ -103,6 +103,7 @@
         <child>
           <object class="GtkAction" id="edit_goto-case">
             <property name="name">edit_goto-case</property>
+            <property name="label">Goto Case</property>
           </object>
         </child>
         <child>
@@ -138,6 +139,7 @@
         <child>
           <object class="GtkAction" id="edit_find">
             <property name="name">edit_find</property>
+            <property name="label">Find</property>
           </object>
         </child>
         <child>

The distinguishing feature of these menu items seems to be that
they are GtkImageMenuItems that do not have a stock icon
selected.  If I edit them in Glade and select a stock icon, then
I do not get the warning (and the correct icon is shown, not the
stock icon).
-- 
"In this world that Hugh Heffner had made,
 he alone seemed forever bunnyless."
--John D. MacDonald




reply via email to

[Prev in Thread] Current Thread [Next in Thread]