gtkappchooserprivate.h 1.6 KB
Newer Older
1
/*
2
 * gtkappchooserprivate.h: app-chooser interface
3 4 5 6 7 8 9 10 11 12 13 14 15 16
 *
 * Copyright (C) 2010 Red Hat, Inc.
 *
 * 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
Javier Jardon's avatar
Javier Jardon committed
17
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
18 19 20 21
 *
 * Authors: Cosimo Cecchi <ccecchi@redhat.com>
 */

22 23
#ifndef __GTK_APP_CHOOSER_PRIVATE_H__
#define __GTK_APP_CHOOSER_PRIVATE_H__
24 25 26 27

#include <glib.h>
#include <gio/gio.h>

Matthias Clasen's avatar
Matthias Clasen committed
28
#include "gtkappchooser.h"
29
#include "gtkappchooserwidget.h"
30
#include "gtkentry.h"
31

32 33
G_BEGIN_DECLS

34 35
typedef struct _GtkAppChooserIface GtkAppChooserIface;
typedef GtkAppChooserIface GtkAppChooserInterface;
36

Matthias Clasen's avatar
Matthias Clasen committed
37
#define GTK_APP_CHOOSER_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), GTK_TYPE_APP_CHOOSER, GtkAppChooserIface))
38

39
struct _GtkAppChooserIface {
40 41
  GTypeInterface base_iface;

42 43
  GAppInfo * (* get_app_info) (GtkAppChooser *object);
  void       (* refresh)      (GtkAppChooser *object);
44 45
};

46 47 48 49
void
_gtk_app_chooser_widget_set_search_entry (GtkAppChooserWidget *self,
                                          GtkEntry            *entry);

50 51 52

G_END_DECLS

53
#endif /* __GTK_APP_CHOOSER_PRIVATE_H__ */