Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 608228 | Differences between
and this patch

Collapse All | Expand All

(-)xfce4-places-plugin-1.7.0_old/panel-plugin/model.c (-10 / +10 lines)
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)
(-)xfce4-places-plugin-1.7.0_old/panel-plugin/model.h (-9 / +9 lines)
Lines 36-48 Link Here
36
    void        (*finalize) (PlacesBookmarkAction *self);
36
    void        (*finalize) (PlacesBookmarkAction *self);
37
};
37
};
38
38
39
inline PlacesBookmarkAction*
39
PlacesBookmarkAction*
40
places_bookmark_action_create(gchar *label);
40
places_bookmark_action_create(gchar *label);
41
41
42
inline void
42
void
43
places_bookmark_action_destroy(PlacesBookmarkAction*);
43
places_bookmark_action_destroy(PlacesBookmarkAction*);
44
44
45
inline void
45
void
46
places_bookmark_action_call(PlacesBookmarkAction*);
46
places_bookmark_action_call(PlacesBookmarkAction*);
47
47
48
/* Places Bookmark */
48
/* Places Bookmark */
Lines 70-79 Link Here
70
    void                 (*finalize) (PlacesBookmark *self);
70
    void                 (*finalize) (PlacesBookmark *self);
71
};
71
};
72
72
73
inline PlacesBookmark*
73
PlacesBookmark*
74
places_bookmark_create(gchar *label);
74
places_bookmark_create(gchar *label);
75
75
76
inline void
76
void
77
places_bookmark_destroy(PlacesBookmark *bookmark);
77
places_bookmark_destroy(PlacesBookmark *bookmark);
78
78
79
/* Places Bookmark Group */
79
/* Places Bookmark Group */
Lines 86-101 Link Here
86
    gpointer    priv;
86
    gpointer    priv;
87
};
87
};
88
88
89
inline GList*
89
GList*
90
places_bookmark_group_get_bookmarks(PlacesBookmarkGroup*);
90
places_bookmark_group_get_bookmarks(PlacesBookmarkGroup*);
91
91
92
inline gboolean
92
gboolean
93
places_bookmark_group_changed(PlacesBookmarkGroup*);
93
places_bookmark_group_changed(PlacesBookmarkGroup*);
94
94
95
inline PlacesBookmarkGroup*
95
PlacesBookmarkGroup*
96
places_bookmark_group_create();
96
places_bookmark_group_create();
97
97
98
inline void
98
void
99
places_bookmark_group_destroy(PlacesBookmarkGroup*);
99
places_bookmark_group_destroy(PlacesBookmarkGroup*);
100
100
101
#endif
101
#endif

Return to bug 608228