/* tab-bar-item.c generated by valac 0.15.2, the Vala compiler * generated from tab-bar-item.vala, do not modify */ /* * Copyright (C) 2011 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License version 3, as published * by the Free Software Foundation. * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranties of * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR * PURPOSE. See the GNU General Public License for more details. * You should have received a copy of the GNU General Public License along * with this program. If not, see . * * Authored by Neil Jagdish Patel */ #include #include #include #include "gwibber-gtk.h" #include #include #include #include #include #define TYPE_TAB_BAR_ITEM (tab_bar_item_get_type ()) #define TAB_BAR_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAB_BAR_ITEM, TabBarItem)) #define TAB_BAR_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAB_BAR_ITEM, TabBarItemClass)) #define IS_TAB_BAR_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAB_BAR_ITEM)) #define IS_TAB_BAR_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAB_BAR_ITEM)) #define TAB_BAR_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAB_BAR_ITEM, TabBarItemClass)) typedef struct _TabBarItem TabBarItem; typedef struct _TabBarItemClass TabBarItemClass; typedef struct _TabBarItemPrivate TabBarItemPrivate; #define TYPE_STREAM_ENTRY (stream_entry_get_type ()) #define STREAM_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_STREAM_ENTRY, StreamEntry)) #define STREAM_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_STREAM_ENTRY, StreamEntryClass)) #define IS_STREAM_ENTRY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_STREAM_ENTRY)) #define IS_STREAM_ENTRY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_STREAM_ENTRY)) #define STREAM_ENTRY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_STREAM_ENTRY, StreamEntryClass)) typedef struct _StreamEntry StreamEntry; typedef struct _StreamEntryClass StreamEntryClass; #define TYPE_TAB_BAR_STREAM_ITEM (tab_bar_stream_item_get_type ()) #define TAB_BAR_STREAM_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TAB_BAR_STREAM_ITEM, TabBarStreamItem)) #define TAB_BAR_STREAM_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TAB_BAR_STREAM_ITEM, TabBarStreamItemClass)) #define IS_TAB_BAR_STREAM_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TAB_BAR_STREAM_ITEM)) #define IS_TAB_BAR_STREAM_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TAB_BAR_STREAM_ITEM)) #define TAB_BAR_STREAM_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TAB_BAR_STREAM_ITEM, TabBarStreamItemClass)) typedef struct _TabBarStreamItem TabBarStreamItem; typedef struct _TabBarStreamItemClass TabBarStreamItemClass; typedef struct _TabBarStreamItemPrivate TabBarStreamItemPrivate; #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL))) typedef struct _StreamEntryPrivate StreamEntryPrivate; #define _g_free0(var) (var = (g_free (var), NULL)) struct _TabBarItem { GtkButton parent_instance; TabBarItemPrivate * priv; StreamEntry* entry; }; struct _TabBarItemClass { GtkButtonClass parent_class; GtkWidget* (*get_toolbar) (TabBarItem* self); GtkWidget* (*get_view) (TabBarItem* self); }; struct _TabBarStreamItem { TabBarItem parent_instance; TabBarStreamItemPrivate * priv; GwibberGtkStreamView* view; }; struct _TabBarStreamItemClass { TabBarItemClass parent_class; }; struct _StreamEntry { GtkAlignment parent_instance; StreamEntryPrivate * priv; GwibberGtkInputTextView* text_view; GtkImage* private; gboolean in_client; GwibberGtkAccountTargetBar* target_bar; }; struct _StreamEntryClass { GtkAlignmentClass parent_class; }; struct _TabBarItemPrivate { gchar* _stream; gchar* _tooltip; gchar* _icon_name; GeeHashMap* _streams_map; GtkImage* _image; gboolean _active; }; static gpointer tab_bar_stream_item_parent_class = NULL; static gpointer tab_bar_item_parent_class = NULL; GType tab_bar_item_get_type (void) G_GNUC_CONST; GType stream_entry_get_type (void) G_GNUC_CONST; GType tab_bar_stream_item_get_type (void) G_GNUC_CONST; enum { TAB_BAR_STREAM_ITEM_DUMMY_PROPERTY }; TabBarStreamItem* tab_bar_stream_item_construct (GType object_type, const gchar* stream, const gchar* icon_name, const gchar* tooltip, GeeHashMap* streams_map); static GObject * tab_bar_stream_item_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties); static void _tab_bar_stream_item___lambda23_ (TabBarStreamItem* self); static void __tab_bar_stream_item___lambda23__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self); GeeHashMap* tab_bar_item_get_streams_map (TabBarItem* self); const gchar* tab_bar_item_get_stream (TabBarItem* self); static void _tab_bar_stream_item___lambda24_ (TabBarStreamItem* self, const gchar* mid, const gchar* account, const gchar* sender, const gchar* action); void stream_entry_set_showing (StreamEntry* self, gboolean value); static void __tab_bar_stream_item___lambda24__gwibber_gtk_stream_view_send (GwibberGtkStreamView* _sender, const gchar* mid, const gchar* account, const gchar* recipient, const gchar* action, gpointer self); static void _tab_bar_stream_item___lambda25_ (TabBarStreamItem* self); gboolean tab_bar_item_get_active (TabBarItem* self); static void __tab_bar_stream_item___lambda25__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self); static void tab_bar_stream_item_finalize (GObject* obj); #define TAB_BAR_ITEM_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TAB_BAR_ITEM, TabBarItemPrivate)) enum { TAB_BAR_ITEM_DUMMY_PROPERTY, TAB_BAR_ITEM_STREAM, TAB_BAR_ITEM_TOOLTIP, TAB_BAR_ITEM_ICON_NAME, TAB_BAR_ITEM_STREAMS_MAP, TAB_BAR_ITEM_ACTIVE }; TabBarItem* tab_bar_item_construct (GType object_type, const gchar* stream, const gchar* icon_name, const gchar* tooltip, GeeHashMap* streams_map); static gboolean tab_bar_item_real_draw (GtkWidget* base, cairo_t* cr); StreamEntry* tab_bar_item_get_entry (TabBarItem* self); GtkWidget* tab_bar_item_get_toolbar (TabBarItem* self); static GtkWidget* tab_bar_item_real_get_toolbar (TabBarItem* self); GtkWidget* tab_bar_item_get_view (TabBarItem* self); static GtkWidget* tab_bar_item_real_get_view (TabBarItem* self); void tab_bar_item_set_stream (TabBarItem* self, const gchar* value); const gchar* tab_bar_item_get_tooltip (TabBarItem* self); void tab_bar_item_set_tooltip (TabBarItem* self, const gchar* value); const gchar* tab_bar_item_get_icon_name (TabBarItem* self); void tab_bar_item_set_icon_name (TabBarItem* self, const gchar* value); void tab_bar_item_set_streams_map (TabBarItem* self, GeeHashMap* value); void tab_bar_item_set_active (TabBarItem* self, gboolean value); static gboolean _tab_bar_item_active___lambda12_ (TabBarItem* self); static gboolean __tab_bar_item_active___lambda12__gsource_func (gpointer self); static GObject * tab_bar_item_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties); static void tab_bar_item_finalize (GObject* obj); static void _vala_tab_bar_item_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec); static void _vala_tab_bar_item_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec); TabBarStreamItem* tab_bar_stream_item_construct (GType object_type, const gchar* stream, const gchar* icon_name, const gchar* tooltip, GeeHashMap* streams_map) { TabBarStreamItem * self = NULL; const gchar* _tmp0_; const gchar* _tmp1_; const gchar* _tmp2_; GeeHashMap* _tmp3_; #line 25 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_return_val_if_fail (stream != NULL, NULL); #line 25 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_return_val_if_fail (icon_name != NULL, NULL); #line 25 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_return_val_if_fail (tooltip != NULL, NULL); #line 25 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_return_val_if_fail (streams_map != NULL, NULL); #line 27 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp0_ = stream; #line 27 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp1_ = tooltip; #line 27 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp2_ = icon_name; #line 27 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp3_ = streams_map; #line 27 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" self = (TabBarStreamItem*) g_object_new (object_type, "stream", _tmp0_, "tooltip", _tmp1_, "icon-name", _tmp2_, "streams-map", _tmp3_, NULL); #line 25 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" return self; #line 193 "tab-bar-item.c" } static void _tab_bar_stream_item___lambda23_ (TabBarStreamItem* self) { GwibberGtkStreamView* _tmp0_; GwibberGtkStreamView* _tmp1_; #line 35 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp0_ = self->view; #line 35 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" gtk_widget_set_no_show_all ((GtkWidget*) _tmp0_, FALSE); #line 36 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp1_ = self->view; #line 36 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" gtk_widget_show_all ((GtkWidget*) _tmp1_); #line 208 "tab-bar-item.c" } static void __tab_bar_stream_item___lambda23__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) { #line 34 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tab_bar_stream_item___lambda23_ (self); #line 215 "tab-bar-item.c" } static void _tab_bar_stream_item___lambda24_ (TabBarStreamItem* self, const gchar* mid, const gchar* account, const gchar* sender, const gchar* action) { StreamEntry* _tmp0_; GwibberGtkInputTextView* _tmp1_; const gchar* _tmp2_; gboolean _tmp3_ = FALSE; const gchar* _tmp4_; gboolean _tmp7_; StreamEntry* _tmp14_; GwibberGtkAccountTargetBar* _tmp15_; const gchar* _tmp16_; StreamEntry* _tmp17_; StreamEntry* _tmp18_; GwibberGtkInputTextView* _tmp19_; const gchar* _tmp20_; const gchar* _tmp21_; StreamEntry* _tmp29_; GwibberGtkInputTextView* _tmp30_; #line 41 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_return_if_fail (mid != NULL); #line 41 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_return_if_fail (account != NULL); #line 41 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_return_if_fail (sender != NULL); #line 41 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_return_if_fail (action != NULL); #line 42 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp0_ = ((TabBarItem*) self)->entry; #line 42 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp1_ = _tmp0_->text_view; #line 42 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp2_ = mid; #line 42 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" gwibber_gtk_input_text_view_set_mid (_tmp1_, _tmp2_); #line 43 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp4_ = action; #line 43 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" if (g_strcmp0 (_tmp4_, "private") == 0) { #line 43 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp3_ = TRUE; #line 258 "tab-bar-item.c" } else { const gchar* _tmp5_; const gchar* _tmp6_; #line 43 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp5_ = tab_bar_item_get_stream ((TabBarItem*) self); #line 43 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp6_ = _tmp5_; #line 43 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp3_ = g_strcmp0 (_tmp6_, "private") == 0; #line 268 "tab-bar-item.c" } #line 43 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp7_ = _tmp3_; #line 43 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" if (_tmp7_) { #line 274 "tab-bar-item.c" StreamEntry* _tmp8_; GwibberGtkInputTextView* _tmp9_; StreamEntry* _tmp10_; GtkImage* _tmp11_; #line 45 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp8_ = ((TabBarItem*) self)->entry; #line 45 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp9_ = _tmp8_->text_view; #line 45 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" gwibber_gtk_input_text_view_set_action (_tmp9_, "private"); #line 46 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp10_ = ((TabBarItem*) self)->entry; #line 46 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp11_ = _tmp10_->private; #line 46 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" gtk_widget_show ((GtkWidget*) _tmp11_); #line 291 "tab-bar-item.c" } else { StreamEntry* _tmp12_; GwibberGtkInputTextView* _tmp13_; #line 49 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp12_ = ((TabBarItem*) self)->entry; #line 49 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp13_ = _tmp12_->text_view; #line 49 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" gwibber_gtk_input_text_view_set_action (_tmp13_, "reply"); #line 301 "tab-bar-item.c" } #line 50 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp14_ = ((TabBarItem*) self)->entry; #line 50 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp15_ = _tmp14_->target_bar; #line 50 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp16_ = account; #line 50 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" gwibber_gtk_account_target_bar_set_selected (_tmp15_, _tmp16_); #line 51 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp17_ = ((TabBarItem*) self)->entry; #line 51 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" stream_entry_set_showing (_tmp17_, TRUE); #line 52 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp18_ = ((TabBarItem*) self)->entry; #line 52 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp19_ = _tmp18_->text_view; #line 52 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp20_ = gwibber_gtk_input_text_view_get_action (_tmp19_); #line 52 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp21_ = _tmp20_; #line 52 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" if (g_strcmp0 (_tmp21_, "private") != 0) { #line 325 "tab-bar-item.c" StreamEntry* _tmp22_; GwibberGtkInputTextView* _tmp23_; GtkTextBuffer* _tmp24_; GtkTextBuffer* _tmp25_; const gchar* _tmp26_; gchar* _tmp27_; gchar* _tmp28_; #line 53 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp22_ = ((TabBarItem*) self)->entry; #line 53 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp23_ = _tmp22_->text_view; #line 53 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp24_ = gtk_text_view_get_buffer ((GtkTextView*) _tmp23_); #line 53 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp25_ = _tmp24_; #line 53 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp26_ = sender; #line 53 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp27_ = g_strconcat (_tmp26_, " ", NULL); #line 53 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp28_ = _tmp27_; #line 53 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_object_set (_tmp25_, "text", _tmp28_, NULL); #line 53 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _g_free0 (_tmp28_); #line 351 "tab-bar-item.c" } #line 54 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp29_ = ((TabBarItem*) self)->entry; #line 54 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp30_ = _tmp29_->text_view; #line 54 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" gtk_widget_grab_focus ((GtkWidget*) _tmp30_); #line 359 "tab-bar-item.c" } static void __tab_bar_stream_item___lambda24__gwibber_gtk_stream_view_send (GwibberGtkStreamView* _sender, const gchar* mid, const gchar* account, const gchar* recipient, const gchar* action, gpointer self) { #line 41 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tab_bar_stream_item___lambda24_ (self, mid, account, recipient, action); #line 366 "tab-bar-item.c" } static void _tab_bar_stream_item___lambda25_ (TabBarStreamItem* self) { GwibberGtkStreamView* _tmp0_; gboolean _tmp1_; gboolean _tmp2_; #line 58 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp0_ = self->view; #line 58 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp1_ = tab_bar_item_get_active ((TabBarItem*) self); #line 58 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp2_ = _tmp1_; #line 58 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" gwibber_gtk_stream_view_set_showing (_tmp0_, _tmp2_); #line 382 "tab-bar-item.c" } static void __tab_bar_stream_item___lambda25__g_object_notify (GObject* _sender, GParamSpec* pspec, gpointer self) { #line 57 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tab_bar_stream_item___lambda25_ (self); #line 389 "tab-bar-item.c" } static GObject * tab_bar_stream_item_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) { GObject * obj; GObjectClass * parent_class; TabBarStreamItem * self; GwibberGtkStreamView* _tmp0_; GwibberGtkStreamView* _tmp1_; GwibberGtkStreamView* _tmp2_; GwibberGtkStreamView* _tmp3_; GwibberGtkStreamView* _tmp4_; GeeHashMap* _tmp5_; GeeHashMap* _tmp6_; const gchar* _tmp7_; const gchar* _tmp8_; gpointer _tmp9_ = NULL; DeeModel* _tmp10_; GwibberGtkStreamView* _tmp11_; const gchar* _tmp12_; const gchar* _tmp13_; GwibberGtkStreamView* _tmp14_; #line 30 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" parent_class = G_OBJECT_CLASS (tab_bar_stream_item_parent_class); #line 30 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" obj = parent_class->constructor (type, n_construct_properties, construct_properties); #line 30 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" self = TAB_BAR_STREAM_ITEM (obj); #line 32 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp0_ = gwibber_gtk_stream_view_new (); #line 32 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp1_ = g_object_ref_sink (_tmp0_); #line 32 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _g_object_unref0 (self->view); #line 32 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" self->view = _tmp1_; #line 33 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp2_ = self->view; #line 33 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" gtk_widget_set_no_show_all ((GtkWidget*) _tmp2_, TRUE); #line 34 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp3_ = self->view; #line 34 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_signal_connect_object ((GObject*) _tmp3_, "notify::prepared", (GCallback) __tab_bar_stream_item___lambda23__g_object_notify, self, 0); #line 39 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp4_ = self->view; #line 39 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp5_ = tab_bar_item_get_streams_map ((TabBarItem*) self); #line 39 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp6_ = _tmp5_; #line 39 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp7_ = tab_bar_item_get_stream ((TabBarItem*) self); #line 39 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp8_ = _tmp7_; #line 39 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp9_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp6_, _tmp8_); #line 39 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp10_ = (DeeModel*) _tmp9_; #line 39 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" gwibber_gtk_stream_view_set_model (_tmp4_, _tmp10_); #line 39 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _g_object_unref0 (_tmp10_); #line 40 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp11_ = self->view; #line 40 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp12_ = tab_bar_item_get_stream ((TabBarItem*) self); #line 40 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp13_ = _tmp12_; #line 40 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" gwibber_gtk_stream_view_set_stream (_tmp11_, _tmp13_); #line 41 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp14_ = self->view; #line 41 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_signal_connect_object (_tmp14_, "send", (GCallback) __tab_bar_stream_item___lambda24__gwibber_gtk_stream_view_send, self, 0); #line 57 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_signal_connect_object ((GObject*) self, "notify::active", (GCallback) __tab_bar_stream_item___lambda25__g_object_notify, self, 0); #line 30 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" return obj; #line 468 "tab-bar-item.c" } static void tab_bar_stream_item_class_init (TabBarStreamItemClass * klass) { #line 21 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" tab_bar_stream_item_parent_class = g_type_class_peek_parent (klass); #line 21 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" G_OBJECT_CLASS (klass)->constructor = tab_bar_stream_item_constructor; #line 21 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" G_OBJECT_CLASS (klass)->finalize = tab_bar_stream_item_finalize; #line 479 "tab-bar-item.c" } static void tab_bar_stream_item_instance_init (TabBarStreamItem * self) { #line 23 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" self->view = NULL; #line 486 "tab-bar-item.c" } static void tab_bar_stream_item_finalize (GObject* obj) { TabBarStreamItem * self; #line 21 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" self = TAB_BAR_STREAM_ITEM (obj); #line 23 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _g_object_unref0 (self->view); #line 21 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" G_OBJECT_CLASS (tab_bar_stream_item_parent_class)->finalize (obj); #line 498 "tab-bar-item.c" } GType tab_bar_stream_item_get_type (void) { static volatile gsize tab_bar_stream_item_type_id__volatile = 0; if (g_once_init_enter (&tab_bar_stream_item_type_id__volatile)) { static const GTypeInfo g_define_type_info = { sizeof (TabBarStreamItemClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tab_bar_stream_item_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TabBarStreamItem), 0, (GInstanceInitFunc) tab_bar_stream_item_instance_init, NULL }; GType tab_bar_stream_item_type_id; tab_bar_stream_item_type_id = g_type_register_static (TYPE_TAB_BAR_ITEM, "TabBarStreamItem", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); g_once_init_leave (&tab_bar_stream_item_type_id__volatile, tab_bar_stream_item_type_id); } return tab_bar_stream_item_type_id__volatile; } TabBarItem* tab_bar_item_construct (GType object_type, const gchar* stream, const gchar* icon_name, const gchar* tooltip, GeeHashMap* streams_map) { TabBarItem * self = NULL; const gchar* _tmp0_; const gchar* _tmp1_; const gchar* _tmp2_; GeeHashMap* _tmp3_; #line 86 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_return_val_if_fail (stream != NULL, NULL); #line 86 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_return_val_if_fail (icon_name != NULL, NULL); #line 86 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_return_val_if_fail (tooltip != NULL, NULL); #line 86 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_return_val_if_fail (streams_map != NULL, NULL); #line 88 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp0_ = stream; #line 88 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp1_ = tooltip; #line 88 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp2_ = icon_name; #line 88 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp3_ = streams_map; #line 88 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" self = (TabBarItem*) g_object_new (object_type, "stream", _tmp0_, "tooltip", _tmp1_, "icon-name", _tmp2_, "streams-map", _tmp3_, NULL); #line 86 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" return self; #line 540 "tab-bar-item.c" } static gboolean tab_bar_item_real_draw (GtkWidget* base, cairo_t* cr) { TabBarItem * self; gboolean result = FALSE; GtkImage* _tmp0_; cairo_t* _tmp1_; #line 101 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" self = (TabBarItem*) base; #line 101 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_return_val_if_fail (cr != NULL, FALSE); #line 103 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp0_ = self->priv->_image; #line 103 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp1_ = cr; #line 103 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" gtk_container_propagate_draw ((GtkContainer*) self, (GtkWidget*) _tmp0_, _tmp1_); #line 104 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" result = TRUE; #line 104 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" return result; #line 563 "tab-bar-item.c" } static gpointer _g_object_ref0 (gpointer self) { #line 109 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" return self ? g_object_ref (self) : NULL; #line 570 "tab-bar-item.c" } StreamEntry* tab_bar_item_get_entry (TabBarItem* self) { StreamEntry* result = NULL; StreamEntry* _tmp0_; StreamEntry* _tmp1_; #line 107 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_return_val_if_fail (self != NULL, NULL); #line 109 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp0_ = self->entry; #line 109 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp1_ = _g_object_ref0 (_tmp0_); #line 109 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" result = _tmp1_; #line 109 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" return result; #line 588 "tab-bar-item.c" } static GtkWidget* tab_bar_item_real_get_toolbar (TabBarItem* self) { #line 113 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_critical ("Type `%s' does not implement abstract method `tab_bar_item_get_toolbar'", g_type_name (G_TYPE_FROM_INSTANCE (self))); #line 113 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" return NULL; #line 597 "tab-bar-item.c" } GtkWidget* tab_bar_item_get_toolbar (TabBarItem* self) { #line 113 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_return_val_if_fail (self != NULL, NULL); #line 113 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" return TAB_BAR_ITEM_GET_CLASS (self)->get_toolbar (self); #line 606 "tab-bar-item.c" } static GtkWidget* tab_bar_item_real_get_view (TabBarItem* self) { #line 114 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_critical ("Type `%s' does not implement abstract method `tab_bar_item_get_view'", g_type_name (G_TYPE_FROM_INSTANCE (self))); #line 114 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" return NULL; #line 615 "tab-bar-item.c" } GtkWidget* tab_bar_item_get_view (TabBarItem* self) { #line 114 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_return_val_if_fail (self != NULL, NULL); #line 114 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" return TAB_BAR_ITEM_GET_CLASS (self)->get_view (self); #line 624 "tab-bar-item.c" } const gchar* tab_bar_item_get_stream (TabBarItem* self) { const gchar* result; const gchar* _tmp0_; #line 65 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_return_val_if_fail (self != NULL, NULL); #line 65 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp0_ = self->priv->_stream; #line 65 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" result = _tmp0_; #line 65 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" return result; #line 639 "tab-bar-item.c" } void tab_bar_item_set_stream (TabBarItem* self, const gchar* value) { const gchar* _tmp0_; gchar* _tmp1_; #line 65 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_return_if_fail (self != NULL); #line 65 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp0_ = value; #line 65 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp1_ = g_strdup (_tmp0_); #line 65 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _g_free0 (self->priv->_stream); #line 65 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" self->priv->_stream = _tmp1_; #line 65 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_object_notify ((GObject *) self, "stream"); #line 658 "tab-bar-item.c" } const gchar* tab_bar_item_get_tooltip (TabBarItem* self) { const gchar* result; const gchar* _tmp0_; #line 66 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_return_val_if_fail (self != NULL, NULL); #line 66 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp0_ = self->priv->_tooltip; #line 66 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" result = _tmp0_; #line 66 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" return result; #line 673 "tab-bar-item.c" } void tab_bar_item_set_tooltip (TabBarItem* self, const gchar* value) { const gchar* _tmp0_; gchar* _tmp1_; #line 66 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_return_if_fail (self != NULL); #line 66 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp0_ = value; #line 66 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp1_ = g_strdup (_tmp0_); #line 66 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _g_free0 (self->priv->_tooltip); #line 66 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" self->priv->_tooltip = _tmp1_; #line 66 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_object_notify ((GObject *) self, "tooltip"); #line 692 "tab-bar-item.c" } const gchar* tab_bar_item_get_icon_name (TabBarItem* self) { const gchar* result; const gchar* _tmp0_; #line 67 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_return_val_if_fail (self != NULL, NULL); #line 67 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp0_ = self->priv->_icon_name; #line 67 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" result = _tmp0_; #line 67 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" return result; #line 707 "tab-bar-item.c" } void tab_bar_item_set_icon_name (TabBarItem* self, const gchar* value) { const gchar* _tmp0_; gchar* _tmp1_; #line 67 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_return_if_fail (self != NULL); #line 67 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp0_ = value; #line 67 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp1_ = g_strdup (_tmp0_); #line 67 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _g_free0 (self->priv->_icon_name); #line 67 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" self->priv->_icon_name = _tmp1_; #line 67 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_object_notify ((GObject *) self, "icon-name"); #line 726 "tab-bar-item.c" } GeeHashMap* tab_bar_item_get_streams_map (TabBarItem* self) { GeeHashMap* result; GeeHashMap* _tmp0_; #line 68 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_return_val_if_fail (self != NULL, NULL); #line 68 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp0_ = self->priv->_streams_map; #line 68 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" result = _tmp0_; #line 68 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" return result; #line 741 "tab-bar-item.c" } void tab_bar_item_set_streams_map (TabBarItem* self, GeeHashMap* value) { GeeHashMap* _tmp0_; GeeHashMap* _tmp1_; #line 68 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_return_if_fail (self != NULL); #line 68 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp0_ = value; #line 68 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp1_ = _g_object_ref0 (_tmp0_); #line 68 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _g_object_unref0 (self->priv->_streams_map); #line 68 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" self->priv->_streams_map = _tmp1_; #line 68 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_object_notify ((GObject *) self, "streams-map"); #line 760 "tab-bar-item.c" } gboolean tab_bar_item_get_active (TabBarItem* self) { gboolean result; gboolean _tmp0_; #line 72 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_return_val_if_fail (self != NULL, FALSE); #line 72 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp0_ = self->priv->_active; #line 72 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" result = _tmp0_; #line 72 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" return result; #line 775 "tab-bar-item.c" } static gboolean _tab_bar_item_active___lambda12_ (TabBarItem* self) { gboolean result = FALSE; #line 77 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" gtk_widget_queue_draw ((GtkWidget*) self); #line 78 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" result = FALSE; #line 78 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" return result; #line 787 "tab-bar-item.c" } static gboolean __tab_bar_item_active___lambda12__gsource_func (gpointer self) { gboolean result; result = _tab_bar_item_active___lambda12_ (self); #line 76 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" return result; #line 796 "tab-bar-item.c" } void tab_bar_item_set_active (TabBarItem* self, gboolean value) { gboolean _tmp0_; #line 73 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_return_if_fail (self != NULL); #line 75 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp0_ = value; #line 75 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" self->priv->_active = _tmp0_; #line 76 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, __tab_bar_item_active___lambda12__gsource_func, g_object_ref (self), g_object_unref); #line 73 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_object_notify ((GObject *) self, "active"); #line 812 "tab-bar-item.c" } static GObject * tab_bar_item_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties) { GObject * obj; GObjectClass * parent_class; TabBarItem * self; StreamEntry* _tmp0_ = NULL; const gchar* _tmp1_; GtkImage* _tmp2_; GtkImage* _tmp3_; GtkImage* _tmp4_; const gchar* _tmp5_; GtkImage* _tmp6_; #line 91 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" parent_class = G_OBJECT_CLASS (tab_bar_item_parent_class); #line 91 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" obj = parent_class->constructor (type, n_construct_properties, construct_properties); #line 91 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" self = TAB_BAR_ITEM (obj); #line 93 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp0_ = tab_bar_item_get_entry (self); #line 93 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _g_object_unref0 (self->entry); #line 93 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" self->entry = _tmp0_; #line 94 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" gtk_widget_set_size_request ((GtkWidget*) self, 40, 32); #line 96 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp1_ = self->priv->_icon_name; #line 96 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp2_ = (GtkImage*) gtk_image_new_from_icon_name (_tmp1_, GTK_ICON_SIZE_BUTTON); #line 96 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp3_ = g_object_ref_sink (_tmp2_); #line 96 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _g_object_unref0 (self->priv->_image); #line 96 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" self->priv->_image = _tmp3_; #line 97 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp4_ = self->priv->_image; #line 97 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp5_ = self->priv->_tooltip; #line 97 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" gtk_widget_set_tooltip_text ((GtkWidget*) _tmp4_, _tmp5_); #line 98 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _tmp6_ = self->priv->_image; #line 98 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" gtk_container_add ((GtkContainer*) self, (GtkWidget*) _tmp6_); #line 91 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" return obj; #line 863 "tab-bar-item.c" } static void tab_bar_item_class_init (TabBarItemClass * klass) { #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" tab_bar_item_parent_class = g_type_class_peek_parent (klass); #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_type_class_add_private (klass, sizeof (TabBarItemPrivate)); #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" GTK_WIDGET_CLASS (klass)->draw = tab_bar_item_real_draw; #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" TAB_BAR_ITEM_CLASS (klass)->get_toolbar = tab_bar_item_real_get_toolbar; #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" TAB_BAR_ITEM_CLASS (klass)->get_view = tab_bar_item_real_get_view; #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" G_OBJECT_CLASS (klass)->get_property = _vala_tab_bar_item_get_property; #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" G_OBJECT_CLASS (klass)->set_property = _vala_tab_bar_item_set_property; #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" G_OBJECT_CLASS (klass)->constructor = tab_bar_item_constructor; #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" G_OBJECT_CLASS (klass)->finalize = tab_bar_item_finalize; #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_object_class_install_property (G_OBJECT_CLASS (klass), TAB_BAR_ITEM_STREAM, g_param_spec_string ("stream", "stream", "stream", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT)); #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_object_class_install_property (G_OBJECT_CLASS (klass), TAB_BAR_ITEM_TOOLTIP, g_param_spec_string ("tooltip", "tooltip", "tooltip", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT)); #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_object_class_install_property (G_OBJECT_CLASS (klass), TAB_BAR_ITEM_ICON_NAME, g_param_spec_string ("icon-name", "icon-name", "icon-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT)); #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_object_class_install_property (G_OBJECT_CLASS (klass), TAB_BAR_ITEM_STREAMS_MAP, g_param_spec_object ("streams-map", "streams-map", "streams-map", GEE_TYPE_HASH_MAP, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT)); #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_object_class_install_property (G_OBJECT_CLASS (klass), TAB_BAR_ITEM_ACTIVE, g_param_spec_boolean ("active", "active", "active", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE)); #line 896 "tab-bar-item.c" } static void tab_bar_item_instance_init (TabBarItem * self) { #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" self->priv = TAB_BAR_ITEM_GET_PRIVATE (self); #line 69 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" self->entry = NULL; #line 84 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" self->priv->_active = FALSE; #line 907 "tab-bar-item.c" } static void tab_bar_item_finalize (GObject* obj) { TabBarItem * self; #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" self = TAB_BAR_ITEM (obj); #line 65 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _g_free0 (self->priv->_stream); #line 66 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _g_free0 (self->priv->_tooltip); #line 67 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _g_free0 (self->priv->_icon_name); #line 68 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _g_object_unref0 (self->priv->_streams_map); #line 69 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _g_object_unref0 (self->entry); #line 83 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" _g_object_unref0 (self->priv->_image); #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" G_OBJECT_CLASS (tab_bar_item_parent_class)->finalize (obj); #line 929 "tab-bar-item.c" } GType tab_bar_item_get_type (void) { static volatile gsize tab_bar_item_type_id__volatile = 0; if (g_once_init_enter (&tab_bar_item_type_id__volatile)) { static const GTypeInfo g_define_type_info = { sizeof (TabBarItemClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) tab_bar_item_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TabBarItem), 0, (GInstanceInitFunc) tab_bar_item_instance_init, NULL }; GType tab_bar_item_type_id; tab_bar_item_type_id = g_type_register_static (GTK_TYPE_BUTTON, "TabBarItem", &g_define_type_info, G_TYPE_FLAG_ABSTRACT); g_once_init_leave (&tab_bar_item_type_id__volatile, tab_bar_item_type_id); } return tab_bar_item_type_id__volatile; } static void _vala_tab_bar_item_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) { TabBarItem * self; self = TAB_BAR_ITEM (object); #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" switch (property_id) { #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" case TAB_BAR_ITEM_STREAM: #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_value_set_string (value, tab_bar_item_get_stream (self)); #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" break; #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" case TAB_BAR_ITEM_TOOLTIP: #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_value_set_string (value, tab_bar_item_get_tooltip (self)); #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" break; #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" case TAB_BAR_ITEM_ICON_NAME: #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_value_set_string (value, tab_bar_item_get_icon_name (self)); #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" break; #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" case TAB_BAR_ITEM_STREAMS_MAP: #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_value_set_object (value, tab_bar_item_get_streams_map (self)); #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" break; #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" case TAB_BAR_ITEM_ACTIVE: #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" g_value_set_boolean (value, tab_bar_item_get_active (self)); #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" break; #line 980 "tab-bar-item.c" default: #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" break; #line 986 "tab-bar-item.c" } } static void _vala_tab_bar_item_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) { TabBarItem * self; self = TAB_BAR_ITEM (object); #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" switch (property_id) { #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" case TAB_BAR_ITEM_STREAM: #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" tab_bar_item_set_stream (self, g_value_get_string (value)); #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" break; #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" case TAB_BAR_ITEM_TOOLTIP: #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" tab_bar_item_set_tooltip (self, g_value_get_string (value)); #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" break; #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" case TAB_BAR_ITEM_ICON_NAME: #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" tab_bar_item_set_icon_name (self, g_value_get_string (value)); #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" break; #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" case TAB_BAR_ITEM_STREAMS_MAP: #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" tab_bar_item_set_streams_map (self, g_value_get_object (value)); #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" break; #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" case TAB_BAR_ITEM_ACTIVE: #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" tab_bar_item_set_active (self, g_value_get_boolean (value)); #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" break; #line 1026 "tab-bar-item.c" default: #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec); #line 63 "/storage/1/src/gwibber/trunk/client/tab-bar-item.vala" break; #line 1032 "tab-bar-item.c" } }