Fixed problems getting accelerator keys to work in data editor
authorJohn Darrington <john@darrington.wattle.id.au>
Thu, 12 Mar 2009 23:19:25 +0000 (08:19 +0900)
committerJohn Darrington <john@darrington.wattle.id.au>
Thu, 12 Mar 2009 23:19:25 +0000 (08:19 +0900)
src/ui/gui/data-editor.glade
src/ui/gui/psppire-data-window.c

index 4d507221b53393a83b936fc2b6e8bcf60941d2b1..a922366b2907be7e93730aa1c1e5151f42cb5748 100644 (file)
@@ -2,14 +2,6 @@
 <!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
 <!--*- mode: xml -*-->
 <glade-interface>
-  <widget class="GtkWindow" id="data_editor">
-    <property name="title">Psppire Data Editor</property>
-    <property name="default_width">975</property>
-    <property name="default_height">480</property>
-    <child>
-      <widget class="GtkVBox" id="vbox1">
-        <property name="visible">True</property>
-        <child>
           <widget class="GtkMenuBar" id="menubar">
             <property name="visible">True</property>
             <child>
               </widget>
             </child>
           </widget>
-          <packing>
-            <property name="expand">False</property>
-            <property name="fill">False</property>
-          </packing>
-        </child>
-        <child>
+
+
           <widget class="GtkHandleBox" id="handlebox1">
             <property name="visible">True</property>
             <property name="shadow_type">GTK_SHADOW_OUT</property>
               </widget>
             </child>
           </widget>
-          <packing>
-            <property name="expand">False</property>
-            <property name="fill">False</property>
-            <property name="position">1</property>
-          </packing>
-        </child>
-        <child>
-          <placeholder/>
-        </child>
-        <child>
+
+
           <widget class="GtkHBox" id="status-bar">
             <property name="visible">True</property>
             <property name="spacing">6</property>
               </packing>
             </child>
           </widget>
-          <packing>
-            <property name="expand">False</property>
-            <property name="fill">False</property>
-            <property name="position">4</property>
-          </packing>
-        </child>
-      </widget>
-    </child>
-  </widget>
 </glade-interface>
index c735d05b077cb2f23d9f8a93fe47cde99ce459ff..ccfa9ad1c3073bae0c6d0c6878c4e37cb7f6eb20 100644 (file)
@@ -1050,15 +1050,6 @@ psppire_data_window_init (PsppireDataWindow *de)
 
   connect_help (de->builder);
 
-  g_object_ref (menubar);
-  gtk_widget_unparent (menubar);
-
-  g_object_ref (hb);
-  gtk_widget_unparent (hb);
-
-  g_object_ref (sb);
-  gtk_widget_unparent (sb);
-
   gtk_box_pack_start (GTK_BOX (box), menubar, FALSE, TRUE, 0);
   gtk_box_pack_start (GTK_BOX (box), hb, FALSE, TRUE, 0);
   gtk_box_pack_start (GTK_BOX (box), GTK_WIDGET (de->data_editor), TRUE, TRUE, 0);