diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-05-29 05:34:46 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-05-29 18:04:08 +0000 |
commit | a8899cc6a3018220581dba1c8dacd9e5f87d72d3 (patch) | |
tree | d2bf54f6e4e095dddcb94826b5e640c3becf1683 /gtk/gtkwindow.h | |
parent | d2bc5b490ae81b20ad52cfc682ff58c72e42b6f6 (diff) | |
download | gtk+-a8899cc6a3018220581dba1c8dacd9e5f87d72d3.tar.gz |
window: Drop gtk_window_set_position
This is heavily using global coordinates, and
can't be guaranteed to work across wms / platforms.
Diffstat (limited to 'gtk/gtkwindow.h')
-rw-r--r-- | gtk/gtkwindow.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/gtk/gtkwindow.h b/gtk/gtkwindow.h index 1d0766593e..bbfc0e6836 100644 --- a/gtk/gtkwindow.h +++ b/gtk/gtkwindow.h @@ -109,29 +109,6 @@ typedef enum GTK_WINDOW_POPUP } GtkWindowType; -/** - * GtkWindowPosition: - * @GTK_WIN_POS_NONE: No influence is made on placement. - * @GTK_WIN_POS_CENTER: Windows should be placed in the center of the screen. - * @GTK_WIN_POS_MOUSE: Windows should be placed at the current mouse position. - * @GTK_WIN_POS_CENTER_ALWAYS: Keep window centered as it changes size, etc. - * @GTK_WIN_POS_CENTER_ON_PARENT: Center the window on its transient - * parent (see gtk_window_set_transient_for()). - * - * Window placement can be influenced using this enumeration. Note that - * using #GTK_WIN_POS_CENTER_ALWAYS is almost always a bad idea. - * It won’t necessarily work well with all window managers or on all windowing systems. - */ -typedef enum -{ - GTK_WIN_POS_NONE, - GTK_WIN_POS_CENTER, - GTK_WIN_POS_MOUSE, - GTK_WIN_POS_CENTER_ALWAYS, - GTK_WIN_POS_CENTER_ON_PARENT -} GtkWindowPosition; - - GDK_AVAILABLE_IN_ALL GType gtk_window_get_type (void) G_GNUC_CONST; GDK_AVAILABLE_IN_ALL @@ -151,9 +128,6 @@ GDK_AVAILABLE_IN_ALL void gtk_window_remove_accel_group (GtkWindow *window, GtkAccelGroup *accel_group); GDK_AVAILABLE_IN_ALL -void gtk_window_set_position (GtkWindow *window, - GtkWindowPosition position); -GDK_AVAILABLE_IN_ALL void gtk_window_set_focus (GtkWindow *window, GtkWidget *focus); GDK_AVAILABLE_IN_ALL |