Xfce Gtk+ extensions

Xfce Gtk+ extensions — Additional Gtk+ related functions.

Functions

Includes

#include <libxfcegui4/libxfcegui4.h>

Description

Functions

xfce_gtk_window_center_on_monitor ()

void
xfce_gtk_window_center_on_monitor (GtkWindow *window,
                                   GdkScreen *screen,
                                   gint monitor);

Centers window on monitor of screen . monitor has to reference a valid monitor of screen .

Parameters

window

The Gtk window to center.

 

screen

The screen on which the window should be centered.

 

monitor

The monitor of the screen on which window should be centered.

 

Since 4.2


xfce_gtk_window_center_on_monitor_with_pointer ()

void
xfce_gtk_window_center_on_monitor_with_pointer
                               (GtkWindow *window);

Determines the monitor that contains the pointer and centers the window on it. If it failes to determine the current pointer position, window is centered on the first monitor of the default screen on the default display.

Parameters

window

The Gtk window to center.

 

Types and Values

See Also

Gtk+ reference manual