~ubuntu-branches/ubuntu/precise/gwibber/precise-proposed-201212050210

« back to all changes in this revision

Viewing changes to client/public-item.c

  • Committer: Package Import Robot
  • Author(s): Ken VanDine
  • Date: 2012-01-30 10:55:24 UTC
  • mfrom: (1.1.67)
  • Revision ID: package-import@ubuntu.com-20120130105524-lvj9m771qldotvi4
Tags: 3.3.3-0ubuntu1
* New upstream release
  - Fixed memory leak in ActionBoxItem (LP: #909085)
  - Fixed race conditions in async image loading while scrolling (LP: #911619)
  - Hide window while gwibber exits (Michal Hruby)
  - Improved scrolling by enclosing comments and image previews in a 
    Gtk.Expander, this fixes the tiles resizing while scrolling (LP: #875348)
  - Ported to valac-0.16
* debian/control
  - build depend on valac-0.16 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* public-item.c generated by valac 0.14.1, the Vala compiler
 
1
/* public-item.c generated by valac 0.15.1, the Vala compiler
2
2
 * generated from public-item.vala, do not modify */
3
3
 
4
4
/*
22
22
#include <glib.h>
23
23
#include <glib-object.h>
24
24
#include <gtk/gtk.h>
25
 
#include <gwibber-gtk.h>
 
25
#include "gwibber-gtk.h"
26
26
#include <gee.h>
27
27
#include <glib/gi18n-lib.h>
28
28
#include <dee.h>
112
112
enum  {
113
113
        PUBLIC_ITEM_DUMMY_PROPERTY
114
114
};
115
 
PublicItem* public_item_new (GeeHashMap* streams);
116
 
PublicItem* public_item_construct (GType object_type, GeeHashMap* streams);
 
115
PublicItem* public_item_new (GeeHashMap* streams_map);
 
116
PublicItem* public_item_construct (GType object_type, GeeHashMap* streams_map);
117
117
static void public_item_on_row_added (PublicItem* self);
118
118
static GtkWidget* public_item_real_get_toolbar (TabBarItem* base);
119
119
static GtkWidget* public_item_real_get_view (TabBarItem* base);
121
121
static void _public_item_on_row_added_dee_model_row_added (DeeModel* _sender, DeeModelIter* iter, gpointer self);
122
122
 
123
123
 
124
 
PublicItem* public_item_construct (GType object_type, GeeHashMap* streams) {
 
124
PublicItem* public_item_construct (GType object_type, GeeHashMap* streams_map) {
125
125
        PublicItem * self = NULL;
126
126
        const gchar* _tmp0_ = NULL;
127
127
        GeeHashMap* _tmp1_;
128
 
#line 21 "/home/ken/src/gwibber/trunk/client/public-item.vala"
129
 
        g_return_val_if_fail (streams != NULL, NULL);
130
 
#line 23 "/home/ken/src/gwibber/trunk/client/public-item.vala"
 
128
#line 21 "/storage/1/src/gwibber/trunk/client/public-item.vala"
 
129
        g_return_val_if_fail (streams_map != NULL, NULL);
 
130
#line 23 "/storage/1/src/gwibber/trunk/client/public-item.vala"
131
131
        _tmp0_ = _ ("Public");
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"
 
132
#line 23 "/storage/1/src/gwibber/trunk/client/public-item.vala"
 
133
        _tmp1_ = streams_map;
 
134
#line 23 "/storage/1/src/gwibber/trunk/client/public-item.vala"
 
135
        self = (PublicItem*) g_object_new (object_type, "stream", "public", "icon-name", "emblem-web", "tooltip", _tmp0_, "streams-map", _tmp1_, NULL);
 
136
#line 21 "/storage/1/src/gwibber/trunk/client/public-item.vala"
137
137
        return self;
138
138
#line 139 "public-item.c"
139
139
}
140
140
 
141
141
 
142
 
PublicItem* public_item_new (GeeHashMap* streams) {
143
 
#line 21 "/home/ken/src/gwibber/trunk/client/public-item.vala"
144
 
        return public_item_construct (TYPE_PUBLIC_ITEM, streams);
 
142
PublicItem* public_item_new (GeeHashMap* streams_map) {
 
143
#line 21 "/storage/1/src/gwibber/trunk/client/public-item.vala"
 
144
        return public_item_construct (TYPE_PUBLIC_ITEM, streams_map);
145
145
#line 146 "public-item.c"
146
146
}
147
147
 
148
148
 
149
149
static void public_item_on_row_added (PublicItem* self) {
150
 
#line 32 "/home/ken/src/gwibber/trunk/client/public-item.vala"
 
150
#line 32 "/storage/1/src/gwibber/trunk/client/public-item.vala"
151
151
        g_return_if_fail (self != NULL);
152
 
#line 34 "/home/ken/src/gwibber/trunk/client/public-item.vala"
 
152
#line 34 "/storage/1/src/gwibber/trunk/client/public-item.vala"
153
153
        gtk_widget_set_no_show_all ((GtkWidget*) self, FALSE);
154
 
#line 35 "/home/ken/src/gwibber/trunk/client/public-item.vala"
 
154
#line 35 "/storage/1/src/gwibber/trunk/client/public-item.vala"
155
155
        gtk_widget_show_all ((GtkWidget*) self);
156
156
#line 157 "public-item.c"
157
157
}
160
160
static GtkWidget* public_item_real_get_toolbar (TabBarItem* base) {
161
161
        PublicItem * self;
162
162
        GtkWidget* result = NULL;
163
 
#line 38 "/home/ken/src/gwibber/trunk/client/public-item.vala"
 
163
#line 38 "/storage/1/src/gwibber/trunk/client/public-item.vala"
164
164
        self = (PublicItem*) base;
165
 
#line 40 "/home/ken/src/gwibber/trunk/client/public-item.vala"
 
165
#line 40 "/storage/1/src/gwibber/trunk/client/public-item.vala"
166
166
        result = NULL;
167
 
#line 40 "/home/ken/src/gwibber/trunk/client/public-item.vala"
 
167
#line 40 "/storage/1/src/gwibber/trunk/client/public-item.vala"
168
168
        return result;
169
169
#line 170 "public-item.c"
170
170
}
171
171
 
172
172
 
173
173
static gpointer _g_object_ref0 (gpointer self) {
174
 
#line 45 "/home/ken/src/gwibber/trunk/client/public-item.vala"
 
174
#line 45 "/storage/1/src/gwibber/trunk/client/public-item.vala"
175
175
        return self ? g_object_ref (self) : NULL;
176
176
#line 177 "public-item.c"
177
177
}
182
182
        GtkWidget* result = NULL;
183
183
        GwibberGtkStreamView* _tmp0_;
184
184
        GtkWidget* _tmp1_;
185
 
#line 43 "/home/ken/src/gwibber/trunk/client/public-item.vala"
 
185
#line 43 "/storage/1/src/gwibber/trunk/client/public-item.vala"
186
186
        self = (PublicItem*) base;
187
 
#line 45 "/home/ken/src/gwibber/trunk/client/public-item.vala"
 
187
#line 45 "/storage/1/src/gwibber/trunk/client/public-item.vala"
188
188
        _tmp0_ = ((TabBarStreamItem*) self)->view;
189
 
#line 45 "/home/ken/src/gwibber/trunk/client/public-item.vala"
 
189
#line 45 "/storage/1/src/gwibber/trunk/client/public-item.vala"
190
190
        _tmp1_ = _g_object_ref0 ((GtkWidget*) _tmp0_);
191
 
#line 45 "/home/ken/src/gwibber/trunk/client/public-item.vala"
 
191
#line 45 "/storage/1/src/gwibber/trunk/client/public-item.vala"
192
192
        result = _tmp1_;
193
 
#line 45 "/home/ken/src/gwibber/trunk/client/public-item.vala"
 
193
#line 45 "/storage/1/src/gwibber/trunk/client/public-item.vala"
194
194
        return result;
195
195
#line 196 "public-item.c"
196
196
}
197
197
 
198
198
 
199
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"
 
200
#line 29 "/storage/1/src/gwibber/trunk/client/public-item.vala"
201
201
        public_item_on_row_added (self);
202
202
#line 203 "public-item.c"
203
203
}
210
210
        GwibberGtkStreamView* _tmp0_;
211
211
        DeeModel* _tmp1_;
212
212
        DeeModel* _tmp2_;
213
 
#line 26 "/home/ken/src/gwibber/trunk/client/public-item.vala"
 
213
#line 26 "/storage/1/src/gwibber/trunk/client/public-item.vala"
214
214
        parent_class = G_OBJECT_CLASS (public_item_parent_class);
215
 
#line 26 "/home/ken/src/gwibber/trunk/client/public-item.vala"
 
215
#line 26 "/storage/1/src/gwibber/trunk/client/public-item.vala"
216
216
        obj = parent_class->constructor (type, n_construct_properties, construct_properties);
217
 
#line 26 "/home/ken/src/gwibber/trunk/client/public-item.vala"
 
217
#line 26 "/storage/1/src/gwibber/trunk/client/public-item.vala"
218
218
        self = PUBLIC_ITEM (obj);
219
 
#line 28 "/home/ken/src/gwibber/trunk/client/public-item.vala"
 
219
#line 28 "/storage/1/src/gwibber/trunk/client/public-item.vala"
220
220
        gtk_widget_set_no_show_all ((GtkWidget*) self, TRUE);
221
 
#line 29 "/home/ken/src/gwibber/trunk/client/public-item.vala"
 
221
#line 29 "/storage/1/src/gwibber/trunk/client/public-item.vala"
222
222
        _tmp0_ = ((TabBarStreamItem*) self)->view;
223
 
#line 29 "/home/ken/src/gwibber/trunk/client/public-item.vala"
 
223
#line 29 "/storage/1/src/gwibber/trunk/client/public-item.vala"
224
224
        _tmp1_ = gwibber_gtk_stream_view_get_model (_tmp0_);
225
 
#line 29 "/home/ken/src/gwibber/trunk/client/public-item.vala"
 
225
#line 29 "/storage/1/src/gwibber/trunk/client/public-item.vala"
226
226
        _tmp2_ = _tmp1_;
227
 
#line 29 "/home/ken/src/gwibber/trunk/client/public-item.vala"
 
227
#line 29 "/storage/1/src/gwibber/trunk/client/public-item.vala"
228
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"
 
229
#line 26 "/storage/1/src/gwibber/trunk/client/public-item.vala"
230
230
        return obj;
231
231
#line 232 "public-item.c"
232
232
}
233
233
 
234
234
 
235
235
static void public_item_class_init (PublicItemClass * klass) {
236
 
#line 19 "/home/ken/src/gwibber/trunk/client/public-item.vala"
 
236
#line 19 "/storage/1/src/gwibber/trunk/client/public-item.vala"
237
237
        public_item_parent_class = g_type_class_peek_parent (klass);
238
 
#line 19 "/home/ken/src/gwibber/trunk/client/public-item.vala"
 
238
#line 19 "/storage/1/src/gwibber/trunk/client/public-item.vala"
239
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"
 
240
#line 19 "/storage/1/src/gwibber/trunk/client/public-item.vala"
241
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"
 
242
#line 19 "/storage/1/src/gwibber/trunk/client/public-item.vala"
243
243
        G_OBJECT_CLASS (klass)->constructor = public_item_constructor;
244
244
#line 245 "public-item.c"
245
245
}