Lines 29-35
Link Here
|
29 |
|
29 |
|
30 |
/********** PlacesBookmarkAction **********/ |
30 |
/********** PlacesBookmarkAction **********/ |
31 |
|
31 |
|
32 |
inline PlacesBookmarkAction* |
32 |
PlacesBookmarkAction* |
33 |
places_bookmark_action_create(gchar *label) |
33 |
places_bookmark_action_create(gchar *label) |
34 |
{ |
34 |
{ |
35 |
PlacesBookmarkAction *action; |
35 |
PlacesBookmarkAction *action; |
Lines 40-46
Link Here
|
40 |
return action; |
40 |
return action; |
41 |
} |
41 |
} |
42 |
|
42 |
|
43 |
inline void |
43 |
void |
44 |
places_bookmark_action_destroy(PlacesBookmarkAction *act) |
44 |
places_bookmark_action_destroy(PlacesBookmarkAction *act) |
45 |
{ |
45 |
{ |
46 |
g_assert(act != NULL); |
46 |
g_assert(act != NULL); |
Lines 51-57
Link Here
|
51 |
g_free(act); |
51 |
g_free(act); |
52 |
} |
52 |
} |
53 |
|
53 |
|
54 |
inline void |
54 |
void |
55 |
places_bookmark_action_call(PlacesBookmarkAction *act) |
55 |
places_bookmark_action_call(PlacesBookmarkAction *act) |
56 |
{ |
56 |
{ |
57 |
g_assert(act != NULL); |
57 |
g_assert(act != NULL); |
Lines 66-72
Link Here
|
66 |
static int bookmarks = 0; |
66 |
static int bookmarks = 0; |
67 |
#endif |
67 |
#endif |
68 |
|
68 |
|
69 |
inline PlacesBookmark* |
69 |
PlacesBookmark* |
70 |
places_bookmark_create(gchar *label) |
70 |
places_bookmark_create(gchar *label) |
71 |
{ |
71 |
{ |
72 |
PlacesBookmark *bookmark; |
72 |
PlacesBookmark *bookmark; |
Lines 81-87
Link Here
|
81 |
return bookmark; |
81 |
return bookmark; |
82 |
} |
82 |
} |
83 |
|
83 |
|
84 |
static inline void |
84 |
static void |
85 |
places_bookmark_actions_destroy(GList *actions) |
85 |
places_bookmark_actions_destroy(GList *actions) |
86 |
{ |
86 |
{ |
87 |
while(actions != NULL){ |
87 |
while(actions != NULL){ |
Lines 92-98
Link Here
|
92 |
g_list_free(actions); |
92 |
g_list_free(actions); |
93 |
} |
93 |
} |
94 |
|
94 |
|
95 |
inline void |
95 |
void |
96 |
places_bookmark_destroy(PlacesBookmark *bookmark) |
96 |
places_bookmark_destroy(PlacesBookmark *bookmark) |
97 |
{ |
97 |
{ |
98 |
g_assert(bookmark != NULL); |
98 |
g_assert(bookmark != NULL); |
Lines 121-127
Link Here
|
121 |
|
121 |
|
122 |
/********** PlacesBookmarkGroup **********/ |
122 |
/********** PlacesBookmarkGroup **********/ |
123 |
|
123 |
|
124 |
inline GList* |
124 |
GList* |
125 |
places_bookmark_group_get_bookmarks(PlacesBookmarkGroup *pbg) |
125 |
places_bookmark_group_get_bookmarks(PlacesBookmarkGroup *pbg) |
126 |
{ |
126 |
{ |
127 |
g_assert(pbg->get_bookmarks != NULL); |
127 |
g_assert(pbg->get_bookmarks != NULL); |
Lines 129-135
Link Here
|
129 |
return pbg->get_bookmarks(pbg); |
129 |
return pbg->get_bookmarks(pbg); |
130 |
} |
130 |
} |
131 |
|
131 |
|
132 |
inline gboolean |
132 |
gboolean |
133 |
places_bookmark_group_changed(PlacesBookmarkGroup *pbg) |
133 |
places_bookmark_group_changed(PlacesBookmarkGroup *pbg) |
134 |
{ |
134 |
{ |
135 |
g_assert(pbg->changed != NULL); |
135 |
g_assert(pbg->changed != NULL); |
Lines 137-143
Link Here
|
137 |
return pbg->changed(pbg); |
137 |
return pbg->changed(pbg); |
138 |
} |
138 |
} |
139 |
|
139 |
|
140 |
inline PlacesBookmarkGroup* |
140 |
PlacesBookmarkGroup* |
141 |
places_bookmark_group_create(void) |
141 |
places_bookmark_group_create(void) |
142 |
{ |
142 |
{ |
143 |
PlacesBookmarkGroup *bookmark_group; |
143 |
PlacesBookmarkGroup *bookmark_group; |
Lines 146-152
Link Here
|
146 |
return bookmark_group; |
146 |
return bookmark_group; |
147 |
} |
147 |
} |
148 |
|
148 |
|
149 |
inline void |
149 |
void |
150 |
places_bookmark_group_destroy(PlacesBookmarkGroup *pbg) |
150 |
places_bookmark_group_destroy(PlacesBookmarkGroup *pbg) |
151 |
{ |
151 |
{ |
152 |
if(pbg->finalize != NULL) |
152 |
if(pbg->finalize != NULL) |