-
Notifications
You must be signed in to change notification settings - Fork 345
Expand file tree
/
Copy pathnemo-selection-provider.h
More file actions
61 lines (49 loc) · 2.28 KB
/
nemo-selection-provider.h
File metadata and controls
61 lines (49 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
* nemo-selection-provider.h - Interface for Nemo extensions that
* want to be notified when the file
* selection changes.
*
* Copyright (C) 2026
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 51 Franklin Street, Suite 500, MA 02110-1335, USA.
*/
/* This interface is implemented by Nemo extensions that want to
* be notified when the user's file selection changes. Extensions
* receive a list of NemoFileInfo objects representing the current
* selection, and the GtkWidget of the parent window. */
#ifndef NEMO_SELECTION_PROVIDER_H
#define NEMO_SELECTION_PROVIDER_H
#include <glib-object.h>
#include <gtk/gtk.h>
#include "nemo-extension-types.h"
#include "nemo-file-info.h"
G_BEGIN_DECLS
#define NEMO_TYPE_SELECTION_PROVIDER (nemo_selection_provider_get_type ())
G_DECLARE_INTERFACE (NemoSelectionProvider, nemo_selection_provider,
NEMO, SELECTION_PROVIDER,
GObject)
typedef NemoSelectionProviderInterface NemoSelectionProviderIface;
struct _NemoSelectionProviderInterface {
GTypeInterface g_iface;
void (*selection_changed) (NemoSelectionProvider *provider,
GtkWidget *window,
GList *files);
};
/* Called by Nemo when the selection changes. files is a list of NemoFileInfo. */
void nemo_selection_provider_selection_changed (NemoSelectionProvider *provider,
GtkWidget *window,
GList *files);
G_END_DECLS
#endif /* NEMO_SELECTION_PROVIDER_H */