a problem about gtk_window_set_gravity
- From: 孙建希 <ycsunjane gmail com>
- To: gtk-app-devel-list gnome org
- Subject: a problem about gtk_window_set_gravity
- Date: Mon, 16 Jan 2012 20:31:48 +0800
hello everyone:
i'm a chinese,my english is poor.
when i use gtk_window_set_gravity ,i encount a problem.
my source code:
#include <gtk/gtk.h>
int main(int argc, const char *argv[])
{
GtkWidget *window;
gtk_init(&argc,&argv);
window=gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_title(GTK_WINDOW(window),"hello world");
gtk_window_set_gravity(GTK_WINDOW(window),GDK_GRAVITY_NORTH_EAST);
//this funciton does not work.
gtk_window_move(GTK_WINDOW(window),200,200);
gtk_widget_show(window);
gtk_main();
return 0;
}
my linux distribution is latest arch.
thanks!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]