2
* Copyright © 2010 Filippo Argiolas <filippo.argiolas@gmail.com>
3
* Copyright © 2007,2008 daniel g. siegel <dgsiegel@gnome.org>
4
* Copyright © 2007,2008 Jaap Haitsma <jaap@haitsma.org>
6
* Licensed under the GNU General Public License Version 2
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program. If not, see <http://www.gnu.org/licenses/>.
22
#include "cheese-commands.h"
26
cheese_cmd_quit (GtkAction *action, CheeseWindow *window)
28
gtk_widget_destroy (GTK_WIDGET (window));
32
cheese_cmd_bring_to_front (CheeseWindow *window)
34
guint32 startup_timestamp = gdk_x11_get_server_time (gtk_widget_get_window (GTK_WIDGET (window)));
36
gdk_x11_window_set_user_time (gtk_widget_get_window (GTK_WIDGET (window)), startup_timestamp);
38
gtk_window_present (GTK_WINDOW (window));