Dark Shoyu n00b
Joined: 05 Nov 2007 Posts: 46
|
Posted: Sun Dec 02, 2012 7:50 pm Post subject: Non-working window decorator from gtk |
|
|
I notice it started happening when I was trying to connect to a network using wicd. So I tried to isolate the problem and I got to the following point. When I go to python interpreter and try to create a gtk window, all window borders disappear and the processor gets quite busy:
Code: | $ python
Python 2.7.3 (default, Nov 15 2012, 10:55:11)
[GCC 4.5.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
>>> w = gtk.Window()
>>> w.show_all() |
I've also tried to run the following code from wikipedia:
Code: | #include <gtk/gtk.h>
int main (int argc, char *argv[]) {
GtkWidget *window;
GtkWidget *label;
gtk_init(&argc, &argv);
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_title(GTK_WINDOW(window), "Hello, world!");
g_signal_connect(window, "destroy", G_CALLBACK(gtk_main_quit), NULL);
label = gtk_label_new("Hello, world!");
gtk_container_add(GTK_CONTAINER(window), label);
gtk_widget_show_all(window);
gtk_main();
return 0;
} |
, but the problem persists, whether I compile it using pkg-config --cflags --libs gtk+-2.0 or pkg-config --cflags --libs gtk+-3.0.
I suspect it's related to some broken library, but I've already reemerged several packages, synced, revdep-rebuild, python-updater, but nothing solved it. I have dev-python/pygtk-2.24.0-r2, gnome-base/gnome-light-2.32.1-r2 and both x11-libs/gtk+-2.24.12 and x11-libs/gtk+-3.4.4.
Is there any way I can detect where exactly I can find the issue? |
|