Re: changing hidden window position
- From: Mihai Bazon <mishoo infoiasi ro>
- To: Havoc Pennington <hp redhat com>
- Cc: Gtk+ <gtk-app-devel-list gnome org>
- Subject: Re: changing hidden window position
- Date: Thu, 28 Jun 2001 15:38:18 +0300
Works, but only if I first call gtk_widget_show(win), and that's what I'm
trying to avoid... So, is there any way to set a widget's position
*before* showing it? (so that when I call gtk_widget_show to be sure that
it appears directly where I want).
Thanks,
Mishoo
On 27 Jun 2001 13:48:02 -0400
Havoc Pennington <hp redhat com> wrote:
Mihai Bazon <mishoo infoiasi ro> writes:
I'm using gdk_window_move to set a window's position. My problem
is that the window must be visible before doing that.
For instance (erroneous code):
GtkWidget *win = gtk_window_new(..);
...
gdk_window_move(win->window, x, y);
gtk_widget_show(win);
But it works like this:
GtkWidget *win = gtk_window_new(..);
...
gtk_widget_show(win); /* show the window first */
gdk_window_move(win->window, x, y);
This results in unpleasant flicker. How to solve this?
Use gtk_widget_set_uposition() to set the position.
Havoc
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--
... and on the seventh day, He exited from append mode.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]