Bug#178013: information about data field type

Pedro Zorzenon Neto Pedro Zorzenon Neto <pzn@terra.com.br>, 178013@bugs.debian.org
Fri, 23 Jul 2004 11:45:23 -0300


Package: glade-2
Version: 2.6.0-6
Followup-For: Bug #178013

> Yes, sorry. It was taken out deliberately. The Glade XML file is
> supposed to be language-neutral, so it is difficult to specify what
> should be the type of the data field. A string, number, widget?

  Hi,

    If that is important, I use integer numbers in data field in my
projects. How do you recommend me to change all my glade projects? to
use the suggested workaround for all projects? I think an integer is a
good choice because you can use switch/case with it.

> One workaround is to compare the widget in the callback, e.g.
> 
>   if (widget == lookup_widget (button, "button1"))
>     do something;
>   else if (widget == lookup_widget (button, "button2"))
>     do something else;

  Thanks,
   Pedro

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.26-1-686
Locale: LANG=C, LC_CTYPE=C (ignored: LC_ALL set to pt_BR)

Versions of packages glade-2 depends on:
ii  glade-common-2            2.6.0-6        Common files for GTK+ 2 User Inter
ii  libatk1.0-0               1.6.1-2        The ATK accessibility toolkit
ii  libc6                     2.3.2.ds1-13   GNU C Library: Shared libraries an
ii  libglib2.0-0              2.4.2-1        The GLib library of C routines
ii  libgtk2.0-0               2.4.3-1        The GTK+ graphical user interface 
ii  libpango1.0-0             1.4.0-4        Layout and rendering of internatio
ii  libx11-6                  4.3.0.dfsg.1-4 X Window System protocol client li
ii  libxml2                   2.6.10-3       GNOME XML library
ii  xlibs                     4.3.0.dfsg.1-4 X Window System client libraries m
ii  zlib1g                    1:1.2.1-4      compression library - runtime

-- no debconf information