Пример #1
0
static void mainwindow_reset_position(void)
{
    int x, y;

    conf_get_position(&x, &y);
    gtk_window_move(GTK_WINDOW(mainwindow), x, y);
    gtk_window_resize(GTK_WINDOW(mainwindow), conf_get_width(), conf_get_height());
}
Пример #2
0
/*
 * Reset and move the window to its original position as set when 'conf_init' is
 * run (i.e. POS_TOP, defined in config.c)
 */
static void mainwindow_reset_position(void) {
    int x, y;
    conf_get_position(&x, &y);
    gtk_window_move(GTK_WINDOW(mainwindow), x, y);
}