~ubuntu-branches/ubuntu/saucy/baobab/saucy-proposed

« back to all changes in this revision

Viewing changes to src/baobab-location-list.c

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-08-21 12:15:25 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120821121525-bawfsoc9xvd1qsvf
Tags: 3.5.90-0ubuntu1
* New upstream release
* debian/control:
  - Bump build-depends on valac-0.18

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* baobab-location-list.c generated by valac 0.17.3.12-6a5ea3, the Vala compiler
 
1
/* baobab-location-list.c generated by valac 0.17.4.2-5a035, the Vala compiler
2
2
 * generated from baobab-location-list.vala, do not modify */
3
3
 
4
4
/* -*- indent-tabs-mode: nil; c-basic-offset: 4 -*- */
23
23
 
24
24
#include <glib.h>
25
25
#include <glib-object.h>
 
26
#include "egg-list-box.h"
 
27
#include <gio/gio.h>
26
28
#include <gtk/gtk.h>
27
 
#include <gio/gio.h>
28
29
#include <string.h>
29
30
#include <stdlib.h>
30
31
 
31
32
 
32
 
#define EGG_TYPE_LIST_BOX (egg_list_box_get_type ())
33
 
#define EGG_LIST_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_LIST_BOX, EggListBox))
34
 
#define EGG_LIST_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EGG_TYPE_LIST_BOX, EggListBoxClass))
35
 
#define EGG_IS_LIST_BOX(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), EGG_TYPE_LIST_BOX))
36
 
#define EGG_IS_LIST_BOX_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), EGG_TYPE_LIST_BOX))
37
 
#define EGG_LIST_BOX_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), EGG_TYPE_LIST_BOX, EggListBoxClass))
38
 
 
39
 
typedef struct _EggListBox EggListBox;
40
 
typedef struct _EggListBoxClass EggListBoxClass;
41
 
typedef struct _EggListBoxPrivate EggListBoxPrivate;
42
 
 
43
33
#define BAOBAB_TYPE_LOCATION_LIST (baobab_location_list_get_type ())
44
34
#define BAOBAB_LOCATION_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), BAOBAB_TYPE_LOCATION_LIST, BaobabLocationList))
45
35
#define BAOBAB_LOCATION_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), BAOBAB_TYPE_LOCATION_LIST, BaobabLocationListClass))
78
68
#define __g_list_free__gtk_recent_info_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_list_free__gtk_recent_info_unref0_ (var), NULL)))
79
69
#define _g_free0(var) (var = (g_free (var), NULL))
80
70
 
81
 
struct _EggListBox {
82
 
        GtkContainer parent_instance;
83
 
        EggListBoxPrivate * priv;
84
 
};
85
 
 
86
 
struct _EggListBoxClass {
87
 
        GtkContainerClass parent_class;
88
 
        void (*child_selected) (EggListBox* self, GtkWidget* child);
89
 
        void (*child_activated) (EggListBox* self, GtkWidget* child);
90
 
        void (*activate_cursor_child) (EggListBox* self);
91
 
        void (*toggle_cursor_child) (EggListBox* self);
92
 
        void (*move_cursor) (EggListBox* self, GtkMovementStep step, gint count);
93
 
};
94
 
 
95
71
struct _BaobabLocationList {
96
72
        EggListBox parent_instance;
97
73
        BaobabLocationListPrivate * priv;
110
86
        GDestroyNotify location_action_target_destroy_notify;
111
87
};
112
88
 
113
 
typedef void (*EggListBoxUpdateSeparatorFunc) (GtkWidget** separator, GtkWidget* child, GtkWidget* before, void* user_data);
114
89
 
115
90
static gpointer baobab_location_list_parent_class = NULL;
116
91
 
117
 
GType egg_list_box_get_type (void) G_GNUC_CONST;
118
92
GType baobab_location_list_get_type (void) G_GNUC_CONST;
119
93
gpointer baobab_location_ref (gpointer instance);
120
94
void baobab_location_unref (gpointer instance);
161
135
static void _gtk_recent_info_unref0_ (gpointer var);
162
136
static void _g_list_free__gtk_recent_info_unref0_ (GList* self);
163
137
void baobab_location_list_set_action (BaobabLocationList* self, BaobabLocationListLocationAction action, void* action_target, GDestroyNotify action_target_destroy_notify);
164
 
static void __lambda4_ (BaobabLocationList* self, GtkWidget* widget);
165
 
static void ___lambda4__gtk_callback (GtkWidget* widget, gpointer self);
 
138
static void __lambda3_ (BaobabLocationList* self, GtkWidget* widget);
 
139
static void ___lambda3__gtk_callback (GtkWidget* widget, gpointer self);
166
140
BaobabLocationWidget* baobab_location_widget_new (BaobabLocation* location_);
167
141
BaobabLocationWidget* baobab_location_widget_construct (GType object_type, BaobabLocation* location_);
168
142
void baobab_location_list_add_location (BaobabLocationList* self, BaobabLocation* location);
170
144
static void gtk_recent_data_destroy (GtkRecentData* self);
171
145
BaobabLocationList* baobab_location_list_new (void);
172
146
BaobabLocationList* baobab_location_list_construct (GType object_type);
173
 
EggListBox* egg_list_box_new (void);
174
 
EggListBox* egg_list_box_construct (GType object_type);
175
147
static GObject * baobab_location_list_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
176
148
static void _baobab_location_list_mount_changed_g_volume_monitor_mount_changed (GVolumeMonitor* _sender, GMount* mount, gpointer self);
177
149
static void _baobab_location_list_mount_removed_g_volume_monitor_mount_removed (GVolumeMonitor* _sender, GMount* mount, gpointer self);
179
151
static void _baobab_location_list_volume_changed_g_volume_monitor_volume_changed (GVolumeMonitor* _sender, GVolume* volume, gpointer self);
180
152
static void _baobab_location_list_volume_removed_g_volume_monitor_volume_removed (GVolumeMonitor* _sender, GVolume* volume, gpointer self);
181
153
static void _baobab_location_list_volume_added_g_volume_monitor_volume_added (GVolumeMonitor* _sender, GVolume* volume, gpointer self);
182
 
void egg_list_box_set_selection_mode (EggListBox* self, GtkSelectionMode mode);
183
 
void egg_list_box_set_separator_funcs (EggListBox* self, EggListBoxUpdateSeparatorFunc update_separator, void* update_separator_target, GDestroyNotify update_separator_target_destroy_notify);
184
154
static void _baobab_location_list_update_separator_egg_list_box_update_separator_func (GtkWidget** separator, GtkWidget* child, GtkWidget* before, gpointer self);
185
155
static void baobab_location_list_finalize (GObject* obj);
186
156
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
678
648
}
679
649
 
680
650
 
681
 
static void __lambda4_ (BaobabLocationList* self, GtkWidget* widget) {
 
651
static void __lambda3_ (BaobabLocationList* self, GtkWidget* widget) {
682
652
        GtkWidget* _tmp0_;
683
653
        g_return_if_fail (widget != NULL);
684
654
        _tmp0_ = widget;
686
656
}
687
657
 
688
658
 
689
 
static void ___lambda4__gtk_callback (GtkWidget* widget, gpointer self) {
690
 
        __lambda4_ (self, widget);
 
659
static void ___lambda3__gtk_callback (GtkWidget* widget, gpointer self) {
 
660
        __lambda3_ (self, widget);
691
661
}
692
662
 
693
663
 
694
664
void baobab_location_list_update (BaobabLocationList* self) {
695
665
        GList* _tmp0_;
696
666
        g_return_if_fail (self != NULL);
697
 
        gtk_container_foreach ((GtkContainer*) self, ___lambda4__gtk_callback, self);
 
667
        gtk_container_foreach ((GtkContainer*) self, ___lambda3__gtk_callback, self);
698
668
        _tmp0_ = self->priv->locations;
699
669
        {
700
670
                GList* location_collection = NULL;
834
804
 
835
805
BaobabLocationList* baobab_location_list_construct (GType object_type) {
836
806
        BaobabLocationList * self = NULL;
837
 
        self = (BaobabLocationList*) egg_list_box_construct (object_type);
 
807
        self = (BaobabLocationList*) g_object_new (object_type, NULL);
838
808
        return self;
839
809
}
840
810