gtk on windows, path issue?



Hi,

I'm having some issues with keeping windows on top in gtk, on windows. It simply doesn't work, while the same code works on linux.

The sample code is the following:

#include <gtk/gtk.h>
#include <glib.h>
#include <glib/gprintf.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_keep_above(GTK_WINDOW(window), TRUE);

    label =
        gtk_label_new(g_strdup_printf
                      ("My GTK version is %d.%d.%d", gtk_major_version, gtk_minor_version,
                       gtk_micro_version));

    gtk_container_add(GTK_CONTAINER(window), label);

    gtk_widget_show(label);
    gtk_widget_show(window);

    gtk_main();

    return 0;
}

Gtk version used was 2.12.9, and I got the installer from here http://downloads.sourceforge.net/gladewin32/gtk-2.12.9-win32-2.exe?modtime=1208660109&big_mirror=0 (but it seems to be buggy, on some computers gtk can't be detected right away, some require gtk demo to be run, others require a reboot before gtk is seen).


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]