]> Pileus Git - ~andy/gtk/blob - gtk/gtkmountoperation-stub.c
Bug 587485 – GMountOperation::show-processes support
[~andy/gtk] / gtk / gtkmountoperation-stub.c
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* GTK - The GIMP Toolkit
3  * Copyright (C) David Zeuthen <davidz@redhat.com>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 /*
22  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
23  * file for a list of people on the GTK+ Team.  See the ChangeLog
24  * files for a list of changes.  These files are distributed with
25  * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
26  */
27
28 #include "config.h"
29
30 #include <gio/gio.h>
31 #include "gtkintl.h"
32
33 #include "gtkmountoperationprivate.h"
34
35 GtkMountOperationLookupContext *
36 _gtk_mount_operation_lookup_context_get (GdkDisplay *display)
37 {
38   return NULL;
39 }
40
41 void
42 _gtk_mount_operation_lookup_context_free (GtkMountOperationLookupContext *context)
43 {
44 }
45
46 gboolean
47 _gtk_mount_operation_lookup_info (GtkMountOperationLookupContext *context,
48                                   GPid                            pid,
49                                   gint                            size_pixels,
50                                   gchar                         **out_name,
51                                   gchar                         **out_command_line,
52                                   GdkPixbuf                     **out_pixbuf)
53 {
54   return FALSE;
55 }
56
57 gboolean
58 _gtk_mount_operation_kill_process (GPid      pid,
59                                    GError  **error)
60 {
61   g_set_error (error,
62                G_IO_ERROR,
63                G_IO_ERROR_NOT_SUPPORTED,
64                _("Cannot kill process with pid %d. Operation is not implemented."),
65                pid);
66   return FALSE;
67 }
68