~ubuntu-branches/ubuntu/trusty/gnome-contacts/trusty

« back to all changes in this revision

Viewing changes to src/listbox/egg-list-box.h

  • Committer: Package Import Robot
  • Author(s): Michael Biebl, Jeremy Bicha, Michael Biebl
  • Date: 2013-09-19 18:23:06 UTC
  • mfrom: (1.3.10) (0.3.4 experimental)
  • mto: This revision was merged to the branch mainline in revision 40.
  • Revision ID: package-import@ubuntu.com-20130919182306-rcatwotzg94pr884
Tags: 3.8.3-1
[ Jeremy Bicha ]
* debian/control.in:
  - Drop alternate build-depends on valac-0.18 since it's no longer
    in Debian

[ Michael Biebl ]
* New upstream release.
* Loosen Build-Depends on libgnome-desktop-3-dev, we do not strictly require
  version (>= 3.6.0) which is not yet available in unstable.
* Bump Standards-Version to 3.9.4. No further changes.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __EGG_LIST_BOX_H__
 
2
#define __EGG_LIST_BOX_H__
 
3
 
 
4
#include <glib.h>
 
5
#include <gtk/gtk.h>
 
6
 
 
7
G_BEGIN_DECLS
 
8
 
 
9
 
 
10
#define EGG_TYPE_LIST_BOX (egg_list_box_get_type ())
 
11
#define EGG_LIST_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_LIST_BOX, EggListBox))
 
12
#define EGG_LIST_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EGG_TYPE_LIST_BOX, EggListBoxClass))
 
13
#define EGG_IS_LIST_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EGG_TYPE_LIST_BOX))
 
14
#define EGG_IS_LIST_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EGG_TYPE_LIST_BOX))
 
15
#define EGG_LIST_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EGG_TYPE_LIST_BOX, EggListBoxClass))
 
16
 
 
17
typedef struct _EggListBox EggListBox;
 
18
typedef struct _EggListBoxClass EggListBoxClass;
 
19
typedef struct _EggListBoxPrivate EggListBoxPrivate;
 
20
 
 
21
struct _EggListBox
 
22
{
 
23
  GtkContainer parent_instance;
 
24
  EggListBoxPrivate * priv;
 
25
};
 
26
 
 
27
struct _EggListBoxClass
 
28
{
 
29
  GtkContainerClass parent_class;
 
30
  void (*child_selected) (EggListBox* self, GtkWidget* child);
 
31
  void (*child_activated) (EggListBox* self, GtkWidget* child);
 
32
  void (*activate_cursor_child) (EggListBox* self);
 
33
  void (*toggle_cursor_child) (EggListBox* self);
 
34
  void (*move_cursor) (EggListBox* self, GtkMovementStep step, gint count);
 
35
  void (*refilter) (EggListBox* self);
 
36
};
 
37
 
 
38
typedef gboolean (*EggListBoxFilterFunc) (GtkWidget* child, void* user_data);
 
39
typedef void (*EggListBoxUpdateSeparatorFunc) (GtkWidget** separator, GtkWidget* child, GtkWidget* before, void* user_data);
 
40
 
 
41
GType egg_list_box_get_type (void) G_GNUC_CONST;
 
42
GtkWidget*  egg_list_box_get_selected_child           (EggListBox                    *self);
 
43
GtkWidget*  egg_list_box_get_child_at_y               (EggListBox                    *self,
 
44
                                                       gint                           y);
 
45
void        egg_list_box_select_child                 (EggListBox                    *self,
 
46
                                                       GtkWidget                     *child);
 
47
void        egg_list_box_set_adjustment               (EggListBox                    *self,
 
48
                                                       GtkAdjustment                 *adjustment);
 
49
void        egg_list_box_add_to_scrolled              (EggListBox                    *self,
 
50
                                                       GtkScrolledWindow             *scrolled);
 
51
void        egg_list_box_set_selection_mode           (EggListBox                    *self,
 
52
                                                       GtkSelectionMode               mode);
 
53
void        egg_list_box_set_filter_func              (EggListBox                    *self,
 
54
                                                       EggListBoxFilterFunc           f,
 
55
                                                       void                          *f_target,
 
56
                                                       GDestroyNotify                 f_target_destroy_notify);
 
57
void        egg_list_box_set_separator_funcs          (EggListBox                    *self,
 
58
                                                       EggListBoxUpdateSeparatorFunc  update_separator,
 
59
                                                       void                          *update_separator_target,
 
60
                                                       GDestroyNotify                 update_separator_target_destroy_notify);
 
61
void        egg_list_box_refilter                     (EggListBox                    *self);
 
62
void        egg_list_box_resort                       (EggListBox                    *self);
 
63
void        egg_list_box_reseparate                   (EggListBox                    *self);
 
64
void        egg_list_box_set_sort_func                (EggListBox                    *self,
 
65
                                                       GCompareDataFunc               f,
 
66
                                                       void                          *f_target,
 
67
                                                       GDestroyNotify                 f_target_destroy_notify);
 
68
void        egg_list_box_child_changed                (EggListBox                    *self,
 
69
                                                       GtkWidget                     *widget);
 
70
void        egg_list_box_set_activate_on_single_click (EggListBox                    *self,
 
71
                                                       gboolean                       single);
 
72
void        egg_list_box_drag_unhighlight_widget      (EggListBox                    *self);
 
73
void        egg_list_box_drag_highlight_widget        (EggListBox                    *self,
 
74
                                                       GtkWidget                     *widget);
 
75
EggListBox* egg_list_box_new                          (void);
 
76
 
 
77
G_END_DECLS
 
78
 
 
79
#endif