After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 145930 - A big button is really slow with pixmap-background themes
A big button is really slow with pixmap-background themes
Status: RESOLVED NOTGNOME
Product: gtk+
Classification: Platform
Component: Widget: Other
2.2.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2004-07-08 21:29 UTC by Billy Biggs
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Billy Biggs 2004-07-08 21:29:50 UTC
The following C code creates a big window with just a button.  On some themes,
the button is extremely slow to draw, update or resize.  For example, it is
really bad with the "Smokey Blue" on RH9.  It may be useful to see what is
making some themes so slow.

#include <gtk/gtk.h>

int main(int argc, char **argv)
{
    GtkWidget *window, *button, *label;
    gtk_init (&argc, &argv);
    window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
    gtk_window_set_default_size (GTK_WINDOW (window), 800, 800);
    button = gtk_button_new ();
    label = gtk_label_new ("big button");
    gtk_container_add (GTK_CONTAINER (button), label);
    gtk_container_add (GTK_CONTAINER (window), button);
    gtk_widget_show_all (window);
    g_signal_connect (G_OBJECT (window), "delete_event",
                      G_CALLBACK (gtk_main_quit), 0);
    gtk_main();
    return 0;
}
Comment 1 Owen Taylor 2004-07-09 19:31:30 UTC
A theme engine can do whatever really inefficient thing it wants.
Don't think this is a GTK+ related issue.