~ubuntu-branches/ubuntu/precise/gwibber/precise

« back to all changes in this revision

Viewing changes to client/public-item.c

  • Committer: Package Import Robot
  • Author(s): Ken VanDine
  • Date: 2011-11-21 09:29:54 UTC
  • mfrom: (1.1.65)
  • Revision ID: package-import@ubuntu.com-20111121092954-v13j1zaju7dvqer3
Tags: 3.3.1-0ubuntu1
* New upstream release
  - Added a "debug" settings key to allow debug logging without running from 
    a terminal.  
  - Ensure _profile is passed a dict, if not it failed
  - Clean up indicator handling, setup the counts up front to ensure the 
    ordering is consistent.
  - Only trim the padding off the entry if we are running in the client.  
    This fixes the gray bar that was displayed below the poster entry 
    in gwibber-poster.
  - Translation fixes for liked and shared strings (LP: #833807)
  - Added LINGUAS file to ensure the po files make it in the 
    DIST (LP: #866038)
  - specify --shared-library when compiling the typelib, this fixes 
    GI (LP: #893125)
* lp_861903.patch, lp_882633.patch, and lp_884831.patch dropped, fixed 
  upstream
* debian/control
  - build depend on valac-0.14

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* public-item.c generated by valac 0.12.1, the Vala compiler
 
1
/* public-item.c generated by valac 0.14.0, the Vala compiler
2
2
 * generated from public-item.vala, do not modify */
3
3
 
4
4
/*
124
124
PublicItem* public_item_construct (GType object_type, GeeHashMap* streams) {
125
125
        PublicItem * self = NULL;
126
126
        const gchar* _tmp0_ = NULL;
 
127
        GeeHashMap* _tmp1_;
 
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"
 
133
        _tmp1_ = streams;
 
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"
130
137
        return self;
 
138
#line 139 "public-item.c"
131
139
}
132
140
 
133
141
 
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"
136
146
}
137
147
 
138
148
 
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"
143
157
}
144
158
 
145
159
 
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"
150
166
        result = NULL;
 
167
#line 40 "/home/ken/src/gwibber/trunk/client/public-item.vala"
151
168
        return result;
 
169
#line 170 "public-item.c"
152
170
}
153
171
 
154
172
 
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"
157
177
}
158
178
 
159
179
 
160
180
static GtkWidget* public_item_real_get_view (TabBarItem* base) {
161
181
        PublicItem * self;
162
182
        GtkWidget* result = NULL;
163
 
        GtkWidget* _tmp0_;
 
183
        GwibberGtkStreamView* _tmp0_;
 
184
        GtkWidget* _tmp1_;
 
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);
166
 
        result = _tmp0_;
 
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"
 
192
        result = _tmp1_;
 
193
#line 45 "/home/ken/src/gwibber/trunk/client/public-item.vala"
167
194
        return result;
 
195
#line 196 "public-item.c"
168
196
}
169
197
 
170
198
 
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"
173
203
}
174
204
 
175
205
 
177
207
        GObject * obj;
178
208
        GObjectClass * parent_class;
179
209
        PublicItem * self;
180
 
        DeeModel* _tmp0_ = NULL;
 
210
        GwibberGtkStreamView* _tmp0_;
 
211
        DeeModel* _tmp1_;
 
212
        DeeModel* _tmp2_;
 
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"
 
226
        _tmp2_ = _tmp1_;
 
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"
187
230
        return obj;
 
231
#line 232 "public-item.c"
188
232
}
189
233
 
190
234
 
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"
196
245
}
197
246
 
198
247