109
109
#define UNITY_PANEL_WINDOW_BUTTONS_FORMAT "<b>%s</b>"
110
110
UnityPanelWindowButtons* unity_panel_window_buttons_new (void);
111
111
UnityPanelWindowButtons* unity_panel_window_buttons_construct (GType object_type);
112
static void unity_panel_window_buttons_on_active_window_changed (UnityPanelWindowButtons* self, GObject* object, GObject* object1);
113
112
static void unity_panel_window_buttons_on_last_view_destroyed (UnityPanelWindowButtons* self, GObject* object);
114
113
static void _unity_panel_window_buttons_on_last_view_destroyed_gweak_notify (gpointer self, GObject* object);
114
static void unity_panel_window_buttons_on_active_window_changed (UnityPanelWindowButtons* self, GObject* object, GObject* object1);
115
115
static void unity_panel_window_buttons_real_get_preferred_width (ClutterActor* base, float for_height, float* min_width, float* nat_width);
116
116
UnityPanelWindowButton* unity_panel_window_button_new (const char* filename);
117
117
UnityPanelWindowButton* unity_panel_window_button_construct (GType object_type, const char* filename);
122
122
static void _lambda9_ (UnityPanelWindowButtons* self);
123
123
static void __lambda9__ctk_button_clicked (CtkButton* _sender, gpointer self);
124
124
static void _unity_panel_window_buttons_on_active_window_changed_bamf_matcher_active_window_changed (BamfMatcher* _sender, GObject* object, GObject* p0, gpointer self);
125
static void _lambda10_ (UnityPanelWindowButtons* self);
126
125
static gboolean _lambda11_ (UnityPanelWindowButtons* self);
127
126
static gboolean __lambda11__gsource_func (gpointer self);
127
static void _lambda10_ (UnityPanelWindowButtons* self);
128
128
static void __lambda10__unity_shell_active_window_state_changed (UnityShell* _sender, gpointer self);
129
129
static gboolean _lambda12_ (UnityPanelWindowButtons* self);
130
130
static gboolean __lambda12__gsource_func (gpointer self);
212
212
info = unity_app_info_manager_lookup (self->priv->appinfo, bamf_application_get_desktop_file (app));
213
213
if (info != NULL) {
214
214
char* display_name;
221
221
display_name = g_strdup (g_app_info_get_display_name (info));
222
222
display_name = (_tmp4_ = g_strdup ((_tmp3_ = _tmp2_ = g_strsplit (display_name, " ", 0), _tmp3__length1 = _vala_array_length (_tmp2_), _tmp3_)[0]), _g_free0 (display_name), _tmp4_);
223
223
_tmp3_ = (_vala_array_free (_tmp3_, _tmp3__length1, (GDestroyNotify) g_free), NULL);
501
501
_inner_error_ = NULL;
503
503
if (self->priv->using_beta = g_file_test (UNITY_PANEL_WINDOW_BUTTON_AMBIANCE_BETA, G_FILE_TEST_EXISTS)) {
505
505
self->priv->icon_size = 19;
506
self->priv->directory = (_tmp0_ = g_strdup (UNITY_PANEL_WINDOW_BUTTON_AMBIANCE_BETA), _g_free0 (self->priv->directory), _tmp0_);
506
self->priv->directory = (_tmp5_ = g_strdup (UNITY_PANEL_WINDOW_BUTTON_AMBIANCE_BETA), _g_free0 (self->priv->directory), _tmp5_);
512
ClutterActor* _tmp4_;
509
ClutterActor* _tmp9_;
516
ClutterActor* _tmp8_;
513
ClutterActor* _tmp13_;
520
ClutterActor* _tmp12_;
521
self->bg = (_tmp4_ = (ClutterActor*) g_object_ref_sink ((CtkImage*) ctk_image_new_from_filename ((guint) self->priv->icon_size, _tmp3_ = g_strconcat (_tmp2_ = g_strconcat (_tmp1_ = g_strconcat (self->priv->directory, "/", NULL), self->priv->_filename, NULL), ".png", NULL))), _g_object_unref0 (self->bg), _tmp4_);
525
ctk_actor_set_background_for_state ((CtkActor*) self, CTK_STATE_NORMAL, self->bg);
526
clutter_actor_show (self->bg);
527
self->bg = (_tmp8_ = (ClutterActor*) g_object_ref_sink ((CtkImage*) ctk_image_new_from_filename ((guint) self->priv->icon_size, _tmp7_ = g_strconcat (_tmp6_ = g_strconcat (_tmp5_ = g_strconcat (self->priv->directory, "/", NULL), self->priv->_filename, NULL), "_focused_prelight.png", NULL))), _g_object_unref0 (self->bg), _tmp8_);
517
ClutterActor* _tmp17_;
521
self->bg = (_tmp9_ = (ClutterActor*) g_object_ref_sink ((CtkImage*) ctk_image_new_from_filename ((guint) self->priv->icon_size, _tmp8_ = g_strconcat (_tmp7_ = g_strconcat (_tmp6_ = g_strconcat (self->priv->directory, "/", NULL), self->priv->_filename, NULL), ".png", NULL))), _g_object_unref0 (self->bg), _tmp9_);
528
523
_g_free0 (_tmp7_);
529
524
_g_free0 (_tmp6_);
525
ctk_actor_set_background_for_state ((CtkActor*) self, CTK_STATE_NORMAL, self->bg);
526
clutter_actor_show (self->bg);
527
self->bg = (_tmp13_ = (ClutterActor*) g_object_ref_sink ((CtkImage*) ctk_image_new_from_filename ((guint) self->priv->icon_size, _tmp12_ = g_strconcat (_tmp11_ = g_strconcat (_tmp10_ = g_strconcat (self->priv->directory, "/", NULL), self->priv->_filename, NULL), "_focused_prelight.png", NULL))), _g_object_unref0 (self->bg), _tmp13_);
531
531
ctk_actor_set_background_for_state ((CtkActor*) self, CTK_STATE_PRELIGHT, self->bg);
532
532
clutter_actor_show (self->bg);
533
self->bg = (_tmp12_ = (ClutterActor*) g_object_ref_sink ((CtkImage*) ctk_image_new_from_filename ((guint) self->priv->icon_size, _tmp11_ = g_strconcat (_tmp10_ = g_strconcat (_tmp9_ = g_strconcat (self->priv->directory, "/", NULL), self->priv->_filename, NULL), "_focused_pressed.png", NULL))), _g_object_unref0 (self->bg), _tmp12_);
533
self->bg = (_tmp17_ = (ClutterActor*) g_object_ref_sink ((CtkImage*) ctk_image_new_from_filename ((guint) self->priv->icon_size, _tmp16_ = g_strconcat (_tmp15_ = g_strconcat (_tmp14_ = g_strconcat (self->priv->directory, "/", NULL), self->priv->_filename, NULL), "_focused_pressed.png", NULL))), _g_object_unref0 (self->bg), _tmp17_);
537
537
ctk_actor_set_background_for_state ((CtkActor*) self, CTK_STATE_ACTIVE, self->bg);
538
538
clutter_actor_show (self->bg);