Method

GtkWindowget_default_size

Declaration [src]

void
gtk_window_get_default_size (
  GtkWindow* window,
  int* width,
  int* height
)

Description [src]

Gets the default size of the window.

A value of 0 for the width or height indicates that a default size has not been explicitly set for that dimension, so the “natural” size of the window will be used.

This function is the recommended way for saving window state across restarts of applications.

Parameters

width

Type: int*

Location to store the default width.

The argument will be set by the function.
The argument can be NULL.
height

Type: int*

Location to store the default height.

The argument will be set by the function.
The argument can be NULL.