124
124
PublicItem* public_item_construct (GType object_type, GeeHashMap* streams) {
125
125
PublicItem * self = NULL;
126
126
const gchar* _tmp0_ = NULL;
128
#line 21 "/home/ken/src/gwibber/trunk/client/public-item.vala"
127
129
g_return_val_if_fail (streams != NULL, NULL);
130
#line 23 "/home/ken/src/gwibber/trunk/client/public-item.vala"
128
131
_tmp0_ = _ ("Public");
129
self = (PublicItem*) g_object_new (object_type, "stream", "public", "icon-name", "emblem-web", "tooltip", _tmp0_, "streams", streams, NULL);
132
#line 23 "/home/ken/src/gwibber/trunk/client/public-item.vala"
134
#line 23 "/home/ken/src/gwibber/trunk/client/public-item.vala"
135
self = (PublicItem*) g_object_new (object_type, "stream", "public", "icon-name", "emblem-web", "tooltip", _tmp0_, "streams", _tmp1_, NULL);
136
#line 21 "/home/ken/src/gwibber/trunk/client/public-item.vala"
138
#line 139 "public-item.c"
134
142
PublicItem* public_item_new (GeeHashMap* streams) {
143
#line 21 "/home/ken/src/gwibber/trunk/client/public-item.vala"
135
144
return public_item_construct (TYPE_PUBLIC_ITEM, streams);
145
#line 146 "public-item.c"
139
149
static void public_item_on_row_added (PublicItem* self) {
150
#line 32 "/home/ken/src/gwibber/trunk/client/public-item.vala"
140
151
g_return_if_fail (self != NULL);
152
#line 34 "/home/ken/src/gwibber/trunk/client/public-item.vala"
141
153
gtk_widget_set_no_show_all ((GtkWidget*) self, FALSE);
154
#line 35 "/home/ken/src/gwibber/trunk/client/public-item.vala"
142
155
gtk_widget_show_all ((GtkWidget*) self);
156
#line 157 "public-item.c"
146
160
static GtkWidget* public_item_real_get_toolbar (TabBarItem* base) {
147
161
PublicItem * self;
148
162
GtkWidget* result = NULL;
163
#line 38 "/home/ken/src/gwibber/trunk/client/public-item.vala"
149
164
self = (PublicItem*) base;
165
#line 40 "/home/ken/src/gwibber/trunk/client/public-item.vala"
167
#line 40 "/home/ken/src/gwibber/trunk/client/public-item.vala"
169
#line 170 "public-item.c"
155
173
static gpointer _g_object_ref0 (gpointer self) {
174
#line 45 "/home/ken/src/gwibber/trunk/client/public-item.vala"
156
175
return self ? g_object_ref (self) : NULL;
176
#line 177 "public-item.c"
160
180
static GtkWidget* public_item_real_get_view (TabBarItem* base) {
161
181
PublicItem * self;
162
182
GtkWidget* result = NULL;
183
GwibberGtkStreamView* _tmp0_;
185
#line 43 "/home/ken/src/gwibber/trunk/client/public-item.vala"
164
186
self = (PublicItem*) base;
165
_tmp0_ = _g_object_ref0 ((GtkWidget*) ((TabBarStreamItem*) self)->view);
187
#line 45 "/home/ken/src/gwibber/trunk/client/public-item.vala"
188
_tmp0_ = ((TabBarStreamItem*) self)->view;
189
#line 45 "/home/ken/src/gwibber/trunk/client/public-item.vala"
190
_tmp1_ = _g_object_ref0 ((GtkWidget*) _tmp0_);
191
#line 45 "/home/ken/src/gwibber/trunk/client/public-item.vala"
193
#line 45 "/home/ken/src/gwibber/trunk/client/public-item.vala"
195
#line 196 "public-item.c"
171
199
static void _public_item_on_row_added_dee_model_row_added (DeeModel* _sender, DeeModelIter* iter, gpointer self) {
200
#line 29 "/home/ken/src/gwibber/trunk/client/public-item.vala"
172
201
public_item_on_row_added (self);
202
#line 203 "public-item.c"
178
208
GObjectClass * parent_class;
179
209
PublicItem * self;
180
DeeModel* _tmp0_ = NULL;
210
GwibberGtkStreamView* _tmp0_;
213
#line 26 "/home/ken/src/gwibber/trunk/client/public-item.vala"
181
214
parent_class = G_OBJECT_CLASS (public_item_parent_class);
215
#line 26 "/home/ken/src/gwibber/trunk/client/public-item.vala"
182
216
obj = parent_class->constructor (type, n_construct_properties, construct_properties);
217
#line 26 "/home/ken/src/gwibber/trunk/client/public-item.vala"
183
218
self = PUBLIC_ITEM (obj);
219
#line 28 "/home/ken/src/gwibber/trunk/client/public-item.vala"
184
220
gtk_widget_set_no_show_all ((GtkWidget*) self, TRUE);
185
_tmp0_ = gwibber_gtk_stream_view_get_model (((TabBarStreamItem*) self)->view);
186
g_signal_connect_object (_tmp0_, "row-added", (GCallback) _public_item_on_row_added_dee_model_row_added, self, 0);
221
#line 29 "/home/ken/src/gwibber/trunk/client/public-item.vala"
222
_tmp0_ = ((TabBarStreamItem*) self)->view;
223
#line 29 "/home/ken/src/gwibber/trunk/client/public-item.vala"
224
_tmp1_ = gwibber_gtk_stream_view_get_model (_tmp0_);
225
#line 29 "/home/ken/src/gwibber/trunk/client/public-item.vala"
227
#line 29 "/home/ken/src/gwibber/trunk/client/public-item.vala"
228
g_signal_connect_object (_tmp2_, "row-added", (GCallback) _public_item_on_row_added_dee_model_row_added, self, 0);
229
#line 26 "/home/ken/src/gwibber/trunk/client/public-item.vala"
231
#line 232 "public-item.c"
191
235
static void public_item_class_init (PublicItemClass * klass) {
236
#line 19 "/home/ken/src/gwibber/trunk/client/public-item.vala"
192
237
public_item_parent_class = g_type_class_peek_parent (klass);
238
#line 19 "/home/ken/src/gwibber/trunk/client/public-item.vala"
193
239
TAB_BAR_ITEM_CLASS (klass)->get_toolbar = public_item_real_get_toolbar;
240
#line 19 "/home/ken/src/gwibber/trunk/client/public-item.vala"
194
241
TAB_BAR_ITEM_CLASS (klass)->get_view = public_item_real_get_view;
242
#line 19 "/home/ken/src/gwibber/trunk/client/public-item.vala"
195
243
G_OBJECT_CLASS (klass)->constructor = public_item_constructor;
244
#line 245 "public-item.c"