Variant of gtk_window_present which takes a timestamp. (#166379, Elijah
2005-06-20 Matthias Clasen <mclasen@redhat.com> * gtk/gtk.symbols: * gtk/gtkwindow.h: * gtk/gtkwindow.c (gtk_window_present_with_time): Variant of gtk_window_present which takes a timestamp. (#166379, Elijah Newren)
This commit is contained in:
parent
ae80a9bec3
commit
6e30650fe4
@ -1,3 +1,10 @@
|
|||||||
|
2005-06-20 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtk.symbols:
|
||||||
|
* gtk/gtkwindow.h:
|
||||||
|
* gtk/gtkwindow.c (gtk_window_present_with_time): Variant of
|
||||||
|
gtk_window_present which takes a timestamp. (#166379, Elijah Newren)
|
||||||
|
|
||||||
2005-06-19 Matthias Clasen <mclasen@redhat.com>
|
2005-06-19 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gtk/gtk.symbols: Add a forgotten symbol
|
* gtk/gtk.symbols: Add a forgotten symbol
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2005-06-20 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtk.symbols:
|
||||||
|
* gtk/gtkwindow.h:
|
||||||
|
* gtk/gtkwindow.c (gtk_window_present_with_time): Variant of
|
||||||
|
gtk_window_present which takes a timestamp. (#166379, Elijah Newren)
|
||||||
|
|
||||||
2005-06-19 Matthias Clasen <mclasen@redhat.com>
|
2005-06-19 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gtk/gtk.symbols: Add a forgotten symbol
|
* gtk/gtk.symbols: Add a forgotten symbol
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2005-06-20 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtk.symbols:
|
||||||
|
* gtk/gtkwindow.h:
|
||||||
|
* gtk/gtkwindow.c (gtk_window_present_with_time): Variant of
|
||||||
|
gtk_window_present which takes a timestamp. (#166379, Elijah Newren)
|
||||||
|
|
||||||
2005-06-19 Matthias Clasen <mclasen@redhat.com>
|
2005-06-19 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gtk/gtk.symbols: Add a forgotten symbol
|
* gtk/gtk.symbols: Add a forgotten symbol
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
2005-06-20 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtk-sections.txt: Add gtk_window_present_with_time
|
||||||
|
|
||||||
2005-06-19 Matthias Clasen <mclasen@redhat.com>
|
2005-06-19 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gtk/Makefile.am: Ignore some more headers.
|
* gtk/Makefile.am: Ignore some more headers.
|
||||||
|
@ -4713,6 +4713,7 @@ gtk_window_get_focus
|
|||||||
gtk_window_set_focus
|
gtk_window_set_focus
|
||||||
gtk_window_set_default
|
gtk_window_set_default
|
||||||
gtk_window_present
|
gtk_window_present
|
||||||
|
gtk_window_present_with_time
|
||||||
gtk_window_iconify
|
gtk_window_iconify
|
||||||
gtk_window_deiconify
|
gtk_window_deiconify
|
||||||
gtk_window_stick
|
gtk_window_stick
|
||||||
|
@ -3935,6 +3935,7 @@ gtk_window_move
|
|||||||
gtk_window_new
|
gtk_window_new
|
||||||
gtk_window_parse_geometry
|
gtk_window_parse_geometry
|
||||||
gtk_window_present
|
gtk_window_present
|
||||||
|
gtk_window_present_with_time
|
||||||
gtk_window_propagate_key_event
|
gtk_window_propagate_key_event
|
||||||
gtk_window_remove_accel_group
|
gtk_window_remove_accel_group
|
||||||
gtk_window_remove_embedded_xid
|
gtk_window_remove_embedded_xid
|
||||||
|
@ -6000,9 +6000,41 @@ gtk_window_set_frame_dimensions (GtkWindow *window,
|
|||||||
* a second time; use gtk_window_present() to move the already-open dialog
|
* a second time; use gtk_window_present() to move the already-open dialog
|
||||||
* where the user can see it.
|
* where the user can see it.
|
||||||
*
|
*
|
||||||
|
* If you are calling this function in response to a user interaction,
|
||||||
|
* it is preferable to use gdk_window_present_with_time().
|
||||||
|
*
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
gtk_window_present (GtkWindow *window)
|
gtk_window_present (GtkWindow *window)
|
||||||
|
{
|
||||||
|
guint32 timestamp;
|
||||||
|
#ifdef GDK_WINDOWING_X11
|
||||||
|
GdkDisplay *display;
|
||||||
|
|
||||||
|
display = gtk_widget_get_display (GTK_WIDGET (window));
|
||||||
|
timestamp = gdk_x11_display_get_user_time (display);
|
||||||
|
#else
|
||||||
|
timestamp = gtk_get_current_event_time ();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
gtk_window_present_with_time (window, timestamp);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* gtk_window_present_with_time:
|
||||||
|
* @window: a #GtkWindow
|
||||||
|
* @timestamp: the timestamp of the user interaction (typically a
|
||||||
|
* button or key press event) which triggered this call
|
||||||
|
*
|
||||||
|
* Presents a window to the user in response to a user interaction.
|
||||||
|
* If you need to present a window without a timestamp, use
|
||||||
|
* gtk_window_present(). See gtk_window_present() for details.
|
||||||
|
*
|
||||||
|
* Since: 2.8
|
||||||
|
**/
|
||||||
|
void
|
||||||
|
gtk_window_present_with_time (GtkWindow *window,
|
||||||
|
guint32 timestamp)
|
||||||
{
|
{
|
||||||
GtkWidget *widget;
|
GtkWidget *widget;
|
||||||
|
|
||||||
@ -6019,13 +6051,7 @@ gtk_window_present (GtkWindow *window)
|
|||||||
/* note that gdk_window_focus() will also move the window to
|
/* note that gdk_window_focus() will also move the window to
|
||||||
* the current desktop, for WM spec compliant window managers.
|
* the current desktop, for WM spec compliant window managers.
|
||||||
*/
|
*/
|
||||||
#ifdef GDK_WINDOWING_X11
|
gdk_window_focus (widget->window, timestamp);
|
||||||
gdk_window_focus (widget->window,
|
|
||||||
gdk_x11_display_get_user_time (gtk_widget_get_display (widget)));
|
|
||||||
#else
|
|
||||||
gdk_window_focus (widget->window,
|
|
||||||
gtk_get_current_event_time ());
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -305,6 +305,8 @@ gboolean gtk_window_propagate_key_event (GtkWindow *window,
|
|||||||
GdkEventKey *event);
|
GdkEventKey *event);
|
||||||
|
|
||||||
void gtk_window_present (GtkWindow *window);
|
void gtk_window_present (GtkWindow *window);
|
||||||
|
void gtk_window_present_with_time (GtkWindow *window,
|
||||||
|
guint32 timestamp);
|
||||||
void gtk_window_iconify (GtkWindow *window);
|
void gtk_window_iconify (GtkWindow *window);
|
||||||
void gtk_window_deiconify (GtkWindow *window);
|
void gtk_window_deiconify (GtkWindow *window);
|
||||||
void gtk_window_stick (GtkWindow *window);
|
void gtk_window_stick (GtkWindow *window);
|
||||||
|
Loading…
Reference in New Issue
Block a user