Bug#568916: libgtk2.0-0: Button does not show stock image

Junior Polegato junior at juniorpolegato.com.br
Mon Feb 8 17:19:30 UTC 2010


Package: libgtk2.0-0
Version: 2.18.6-1
Severity: important

Hi, buttons with stock images and set_image does not show the image. I can not tell if the problem is on Debian Testing or GTK +, but the function show () on the button image works around, see:

#include <gtk/gtk.h>

int main(int argc, char *argv[]){
    GtkWidget *window;
    GtkWidget *button;
    GtkWidget *button_alignment;
    GtkWidget *button_alignment_hbox;
    GtkWidget *button_alignment_hbox_image;
    gtk_init (&argc, &argv);
    window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
    button = gtk_button_new_from_stock ("gtk-quit");
    gtk_container_add (GTK_CONTAINER (window), button);
    gtk_widget_show (button);
    gtk_widget_show (window);
    button_alignment = gtk_bin_get_child (GTK_BIN (button));
    button_alignment_hbox = gtk_bin_get_child (GTK_BIN (button_alignment));
    button_alignment_hbox_image = gtk_container_get_children (GTK_CONTAINER (button_alignment_hbox))->data;
    gtk_widget_show (button_alignment_hbox_image);
    gtk_main ();
    return 0;
}

I do not find settings to resolve this in GTK+ or Gnome, then I think it is a bug.


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (900, 'testing'), (65, 'unstable'), (60, 'stable'), (55, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686 (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 libgtk2.0-0 depends on:
ii  libatk1.0-0            1.28.0-1          The ATK accessibility toolkit
ii  libc6                  2.10.2-2          GNU C Library: Shared libraries
ii  libcairo2              1.8.8-2           The Cairo 2D vector graphics libra
ii  libcups2               1.4.2-4           Common UNIX Printing System(tm) - 
ii  libfontconfig1         2.8.0-2           generic font configuration library
ii  libfreetype6           2.3.11-1          FreeType 2 font engine, shared lib
ii  libglib2.0-0           2.22.4-1          The GLib library of C routines
ii  libgnutls26            2.8.5-2           the GNU TLS library - runtime libr
ii  libgssapi-krb5-2       1.8+dfsg~alpha1-5 MIT Kerberos runtime libraries - k
ii  libgtk2.0-common       2.18.6-1          Common files for the GTK+ graphica
ii  libjasper1             1.900.1-6.1       The JasPer JPEG-2000 runtime libra
ii  libjpeg62              6b-15             The Independent JPEG Group's JPEG 
ii  libpango1.0-0          1.26.2-1          Layout and rendering of internatio
ii  libpng12-0             1.2.42-1          PNG library - runtime
ii  libtiff4               3.9.2-2           Tag Image File Format (TIFF) libra
ii  libx11-6               2:1.3.3-1         X11 client-side library
ii  libxcomposite1         1:0.4.1-1         X11 Composite extension library
ii  libxcursor1            1:1.1.10-1        X cursor management library
ii  libxdamage1            1:1.1.2-1         X11 damaged region extension libra
ii  libxext6               2:1.1.1-2         X11 miscellaneous extension librar
ii  libxfixes3             1:4.0.4-1         X11 miscellaneous 'fixes' extensio
ii  libxi6                 2:1.3-2           X11 Input extension library
ii  libxinerama1           2:1.1-2           X11 Xinerama extension library
ii  libxrandr2             2:1.3.0-2         X11 RandR extension library
ii  libxrender1            1:0.9.5-1         X Rendering Extension client libra
ii  shared-mime-info       0.70-1            FreeDesktop.org shared MIME databa
ii  zlib1g                 1:1.2.3.4.dfsg-3  compression library - runtime

Versions of packages libgtk2.0-0 recommends:
ii  hicolor-icon-theme            0.11-1     default fallback theme for FreeDes
ii  libgtk2.0-bin                 2.18.6-1   The programs for the GTK+ graphica

Versions of packages libgtk2.0-0 suggests:
ii  gvfs                          1.4.3-1    userspace virtual filesystem - ser
ii  librsvg2-common               2.26.0-1   SAX-based renderer library for SVG

-- no debconf information






More information about the pkg-gnome-maintainers mailing list