Help needed: how to make window visible
juha
kautto.juha at kolumbus.fi
Thu May 18 15:24:18 CEST 2006
Hi !
I give up. Please give me a hint what I am doing wrong
or if this is just mission impossible.
I try to make calendar window visible to the user using the
following code:
...
static void
raise_window()
{
GdkScreen *screen;
screen = xfce_gdk_display_locate_monitor_with_pointer(NULL, NULL);
gtk_window_set_screen(GTK_WINDOW(xfcal->mWindow)
, screen ? screen : gdk_screen_get_default ());
if (pos_x || pos_y)
gtk_window_move(GTK_WINDOW(xfcal->mWindow), pos_x, pos_y);
gtk_window_stick(GTK_WINDOW(xfcal->mWindow));
if (select_always_today)
xfcalendar_select_today(GTK_CALENDAR(xfcal->mCalendar));
gtk_window_present(GTK_WINDOW(xfcal->mWindow));
gtk_widget_show_all(xfcal->mWindow);
}
...
But it does _not_ work _if_ I set "Activate focus stealing prevention"
active. Without this it works 100 % and with it, it works 80 % of time.
Is that ok? any workarounds?
More information about the Xfce4-dev
mailing list