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

« back to all changes in this revision

Viewing changes to client/home-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
 
/* home-item.c generated by valac 0.14.1, the Vala compiler
 
1
/* home-item.c generated by valac 0.15.1, the Vala compiler
2
2
 * generated from home-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
 
111
111
enum  {
112
112
        HOME_ITEM_DUMMY_PROPERTY
113
113
};
114
 
HomeItem* home_item_new (GeeHashMap* streams);
115
 
HomeItem* home_item_construct (GType object_type, GeeHashMap* streams);
 
114
HomeItem* home_item_new (GeeHashMap* streams_map);
 
115
HomeItem* home_item_construct (GType object_type, GeeHashMap* streams_map);
116
116
static GtkWidget* home_item_real_get_toolbar (TabBarItem* base);
117
117
static GtkWidget* home_item_real_get_view (TabBarItem* base);
118
118
static GObject * home_item_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
119
119
 
120
120
 
121
 
HomeItem* home_item_construct (GType object_type, GeeHashMap* streams) {
 
121
HomeItem* home_item_construct (GType object_type, GeeHashMap* streams_map) {
122
122
        HomeItem * self = NULL;
123
123
        const gchar* _tmp0_ = NULL;
124
124
        GeeHashMap* _tmp1_;
125
 
#line 20 "/home/ken/src/gwibber/trunk/client/home-item.vala"
126
 
        g_return_val_if_fail (streams != NULL, NULL);
127
 
#line 22 "/home/ken/src/gwibber/trunk/client/home-item.vala"
 
125
#line 20 "/storage/1/src/gwibber/trunk/client/home-item.vala"
 
126
        g_return_val_if_fail (streams_map != NULL, NULL);
 
127
#line 22 "/storage/1/src/gwibber/trunk/client/home-item.vala"
128
128
        _tmp0_ = _ ("Home");
129
 
#line 22 "/home/ken/src/gwibber/trunk/client/home-item.vala"
130
 
        _tmp1_ = streams;
131
 
#line 22 "/home/ken/src/gwibber/trunk/client/home-item.vala"
132
 
        self = (HomeItem*) g_object_new (object_type, "stream", "home", "icon-name", "gtk-home", "tooltip", _tmp0_, "streams", _tmp1_, NULL);
133
 
#line 20 "/home/ken/src/gwibber/trunk/client/home-item.vala"
 
129
#line 22 "/storage/1/src/gwibber/trunk/client/home-item.vala"
 
130
        _tmp1_ = streams_map;
 
131
#line 22 "/storage/1/src/gwibber/trunk/client/home-item.vala"
 
132
        self = (HomeItem*) g_object_new (object_type, "stream", "home", "icon-name", "gtk-home", "tooltip", _tmp0_, "streams-map", _tmp1_, NULL);
 
133
#line 20 "/storage/1/src/gwibber/trunk/client/home-item.vala"
134
134
        return self;
135
135
#line 136 "home-item.c"
136
136
}
137
137
 
138
138
 
139
 
HomeItem* home_item_new (GeeHashMap* streams) {
140
 
#line 20 "/home/ken/src/gwibber/trunk/client/home-item.vala"
141
 
        return home_item_construct (TYPE_HOME_ITEM, streams);
 
139
HomeItem* home_item_new (GeeHashMap* streams_map) {
 
140
#line 20 "/storage/1/src/gwibber/trunk/client/home-item.vala"
 
141
        return home_item_construct (TYPE_HOME_ITEM, streams_map);
142
142
#line 143 "home-item.c"
143
143
}
144
144
 
146
146
static GtkWidget* home_item_real_get_toolbar (TabBarItem* base) {
147
147
        HomeItem * self;
148
148
        GtkWidget* result = NULL;
149
 
#line 29 "/home/ken/src/gwibber/trunk/client/home-item.vala"
 
149
#line 29 "/storage/1/src/gwibber/trunk/client/home-item.vala"
150
150
        self = (HomeItem*) base;
151
 
#line 31 "/home/ken/src/gwibber/trunk/client/home-item.vala"
 
151
#line 31 "/storage/1/src/gwibber/trunk/client/home-item.vala"
152
152
        result = NULL;
153
 
#line 31 "/home/ken/src/gwibber/trunk/client/home-item.vala"
 
153
#line 31 "/storage/1/src/gwibber/trunk/client/home-item.vala"
154
154
        return result;
155
155
#line 156 "home-item.c"
156
156
}
157
157
 
158
158
 
159
159
static gpointer _g_object_ref0 (gpointer self) {
160
 
#line 36 "/home/ken/src/gwibber/trunk/client/home-item.vala"
 
160
#line 36 "/storage/1/src/gwibber/trunk/client/home-item.vala"
161
161
        return self ? g_object_ref (self) : NULL;
162
162
#line 163 "home-item.c"
163
163
}
168
168
        GtkWidget* result = NULL;
169
169
        GwibberGtkStreamView* _tmp0_;
170
170
        GtkWidget* _tmp1_;
171
 
#line 34 "/home/ken/src/gwibber/trunk/client/home-item.vala"
 
171
#line 34 "/storage/1/src/gwibber/trunk/client/home-item.vala"
172
172
        self = (HomeItem*) base;
173
 
#line 36 "/home/ken/src/gwibber/trunk/client/home-item.vala"
 
173
#line 36 "/storage/1/src/gwibber/trunk/client/home-item.vala"
174
174
        _tmp0_ = ((TabBarStreamItem*) self)->view;
175
 
#line 36 "/home/ken/src/gwibber/trunk/client/home-item.vala"
 
175
#line 36 "/storage/1/src/gwibber/trunk/client/home-item.vala"
176
176
        _tmp1_ = _g_object_ref0 ((GtkWidget*) _tmp0_);
177
 
#line 36 "/home/ken/src/gwibber/trunk/client/home-item.vala"
 
177
#line 36 "/storage/1/src/gwibber/trunk/client/home-item.vala"
178
178
        result = _tmp1_;
179
 
#line 36 "/home/ken/src/gwibber/trunk/client/home-item.vala"
 
179
#line 36 "/storage/1/src/gwibber/trunk/client/home-item.vala"
180
180
        return result;
181
181
#line 182 "home-item.c"
182
182
}
186
186
        GObject * obj;
187
187
        GObjectClass * parent_class;
188
188
        HomeItem * self;
189
 
#line 25 "/home/ken/src/gwibber/trunk/client/home-item.vala"
 
189
#line 25 "/storage/1/src/gwibber/trunk/client/home-item.vala"
190
190
        parent_class = G_OBJECT_CLASS (home_item_parent_class);
191
 
#line 25 "/home/ken/src/gwibber/trunk/client/home-item.vala"
 
191
#line 25 "/storage/1/src/gwibber/trunk/client/home-item.vala"
192
192
        obj = parent_class->constructor (type, n_construct_properties, construct_properties);
193
 
#line 25 "/home/ken/src/gwibber/trunk/client/home-item.vala"
 
193
#line 25 "/storage/1/src/gwibber/trunk/client/home-item.vala"
194
194
        self = HOME_ITEM (obj);
195
 
#line 25 "/home/ken/src/gwibber/trunk/client/home-item.vala"
 
195
#line 25 "/storage/1/src/gwibber/trunk/client/home-item.vala"
196
196
        return obj;
197
197
#line 198 "home-item.c"
198
198
}
199
199
 
200
200
 
201
201
static void home_item_class_init (HomeItemClass * klass) {
202
 
#line 18 "/home/ken/src/gwibber/trunk/client/home-item.vala"
 
202
#line 18 "/storage/1/src/gwibber/trunk/client/home-item.vala"
203
203
        home_item_parent_class = g_type_class_peek_parent (klass);
204
 
#line 18 "/home/ken/src/gwibber/trunk/client/home-item.vala"
 
204
#line 18 "/storage/1/src/gwibber/trunk/client/home-item.vala"
205
205
        TAB_BAR_ITEM_CLASS (klass)->get_toolbar = home_item_real_get_toolbar;
206
 
#line 18 "/home/ken/src/gwibber/trunk/client/home-item.vala"
 
206
#line 18 "/storage/1/src/gwibber/trunk/client/home-item.vala"
207
207
        TAB_BAR_ITEM_CLASS (klass)->get_view = home_item_real_get_view;
208
 
#line 18 "/home/ken/src/gwibber/trunk/client/home-item.vala"
 
208
#line 18 "/storage/1/src/gwibber/trunk/client/home-item.vala"
209
209
        G_OBJECT_CLASS (klass)->constructor = home_item_constructor;
210
210
#line 211 "home-item.c"
211
211
}