Bug#434493: The problem is also present when running a program that loads the generated .glade file

Marco Túlio Gontijo e Silva marcot at riseup.net
Fri Jun 27 21:51:41 UTC 2008


This same file that cannot be reloaded gives the following error when I try to execute a simple C program: 
Message-ID: <20080627215215.7805.92177.reportbug at quindinho.domain.invalid>
X-Mailer: reportbug 3.41
Date: Fri, 27 Jun 2008 18:52:15 -0300

Package: glade
Version: 3.4.5-3
Followup-For: Bug #434493

(test:10288): Gtk-WARNING **: Ignoring the separator setting

(test:10288): libglade-WARNING **: could not find a parent that handles internal children for `vbox'

(test:10288): Gtk-CRITICAL **: gtk_signal_connect_full: assertion `GTK_IS_OBJECT (object)' failed

Source code of the program:

#include <gtk/gtk.h>
#include <glade/glade.h>

void destroy(GtkWidget *widget, gpointer user_data) {
  gtk_main_quit();
}

int main(int argc, char *argv[]) {
  GladeXML *xml;
  GtkWidget *window;

  gtk_init(&argc, &argv);

  xml = glade_xml_new("test.glade", NULL, NULL);

  window = glade_xml_get_widget(xml, "window");
  gtk_signal_connect(GTK_OBJECT (window), "destroy", GTK_SIGNAL_FUNC (destroy), NULL);

  gtk_main();
  return 0;
}

Glade generated file:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
<!--Generated with glade3 3.4.5 on Thu Jun 26 16:52:08 2008 -->
<glade-interface>
  <widget class="GtkMessageDialog" id="messagedialog1">
    <property name="border_width">5</property>
    <property name="resizable">False</property>
    <property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property>
    <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
    <property name="skip_taskbar_hint">True</property>
    <property name="has_separator">False</property>
    <property name="image"></property>
    <child internal-child="vbox">
      <widget class="GtkVBox" id="dialog-vbox1">
        <property name="visible">True</property>
        <property name="spacing">2</property>
        <child internal-child="action_area">
          <widget class="GtkHButtonBox" id="dialog-action_area1">
            <property name="visible">True</property>
            <property name="layout_style">GTK_BUTTONBOX_END</property>
            <child>
              <placeholder/>
            </child>
            <child>
              <placeholder/>
            </child>
          </widget>
          <packing>
            <property name="expand">False</property>
            <property name="pack_type">GTK_PACK_END</property>
          </packing>
        </child>
      </widget>
    </child>
  </widget>
</glade-interface>

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages glade depends on:
ii  libc6                         2.7-10     GNU C Library: Shared libraries
ii  libgladeui-1-7                3.4.5-3    GTK+ User Interface Build core lib
ii  libglib2.0-0                  2.16.3-2   The GLib library of C routines
ii  libgtk2.0-0                   2.12.9-3   The GTK+ graphical user interface 

Versions of packages glade recommends:
pn  devhelp                       <none>     (no description available)
ii  libglade2-dev                 1:2.6.2-1  development files for libglade
ii  libgtk2.0-dev                 2.12.9-3   Development files for the GTK+ lib

-- no debconf information






More information about the pkg-gnome-maintainers mailing list