~leprechaun-team/+junk/unity-use-patches

« back to all changes in this revision

Viewing changes to unity-private/panel/panel-window-buttons.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-09-09 19:13:29 UTC
  • mfrom: (1.1.15 upstream)
  • Revision ID: james.westby@ubuntu.com-20100909191329-j3odkmn02roj91b1
Tags: 0.2.36-0ubuntu1
* New upstream release:
  - Fix width of home-button on panel, so groove aligns with right edge of
    launcher, fixes (LP: #630031)
  - migration script to transition first time new people to unity
    (LP: #622146)
  - Quicklist name disappearing (LP: #627666)
* debian/unity.install:
  - install libexec in unity package (for migration tool)
* debian/libunity0.symbols:
  - update symbol

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* panel-window-buttons.c generated by valac 0.9.7, the Vala compiler
 
1
/* panel-window-buttons.c generated by valac, the Vala compiler
2
2
 * generated from panel-window-buttons.vala, do not modify */
3
3
 
4
4
/*
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;
 
215
                                char* _tmp4_;
 
216
                                gint _tmp3__length1;
 
217
                                char** _tmp3_;
215
218
                                char** _tmp2_;
216
 
                                char** _tmp3_;
217
 
                                gint _tmp3__length1;
218
 
                                char* _tmp4_;
 
219
                                char* _tmp6_;
219
220
                                char* _tmp5_;
220
 
                                char* _tmp6_;
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);
226
226
                                _g_free0 (_tmp5_);
227
227
                                _g_free0 (display_name);
228
228
                        } else {
 
229
                                char* _tmp9_;
 
230
                                char* _tmp8_;
229
231
                                char* _tmp7_;
230
 
                                char* _tmp8_;
231
 
                                char* _tmp9_;
232
232
                                clutter_text_set_markup ((ClutterText*) self->priv->appname, _tmp9_ = g_strdup_printf (UNITY_PANEL_WINDOW_BUTTONS_FORMAT, _tmp8_ = g_markup_escape_text (_tmp7_ = bamf_view_get_name ((BamfView*) win), -1)));
233
233
                                _g_free0 (_tmp9_);
234
234
                                _g_free0 (_tmp8_);
236
236
                        }
237
237
                        _g_object_unref0 (info);
238
238
                } else {
 
239
                        char* _tmp12_;
 
240
                        char* _tmp11_;
239
241
                        char* _tmp10_;
240
 
                        char* _tmp11_;
241
 
                        char* _tmp12_;
242
242
                        clutter_text_set_markup ((ClutterText*) self->priv->appname, _tmp12_ = g_strdup_printf (UNITY_PANEL_WINDOW_BUTTONS_FORMAT, _tmp11_ = g_markup_escape_text (_tmp10_ = bamf_view_get_name ((BamfView*) win), -1)));
243
243
                        _g_free0 (_tmp12_);
244
244
                        _g_free0 (_tmp11_);
501
501
        _inner_error_ = NULL;
502
502
        {
503
503
                if (self->priv->using_beta = g_file_test (UNITY_PANEL_WINDOW_BUTTON_AMBIANCE_BETA, G_FILE_TEST_EXISTS)) {
504
 
                        char* _tmp0_;
 
504
                        char* _tmp5_;
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_);
507
507
                }
508
508
                {
509
 
                        char* _tmp1_;
510
 
                        char* _tmp2_;
511
 
                        char* _tmp3_;
512
 
                        ClutterActor* _tmp4_;
513
 
                        char* _tmp5_;
 
509
                        ClutterActor* _tmp9_;
 
510
                        char* _tmp8_;
 
511
                        char* _tmp7_;
514
512
                        char* _tmp6_;
515
 
                        char* _tmp7_;
516
 
                        ClutterActor* _tmp8_;
517
 
                        char* _tmp9_;
 
513
                        ClutterActor* _tmp13_;
 
514
                        char* _tmp12_;
 
515
                        char* _tmp11_;
518
516
                        char* _tmp10_;
519
 
                        char* _tmp11_;
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_);
522
 
                        _g_free0 (_tmp3_);
523
 
                        _g_free0 (_tmp2_);
524
 
                        _g_free0 (_tmp1_);
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_;
 
518
                        char* _tmp16_;
 
519
                        char* _tmp15_;
 
520
                        char* _tmp14_;
 
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_);
 
522
                        _g_free0 (_tmp8_);
528
523
                        _g_free0 (_tmp7_);
529
524
                        _g_free0 (_tmp6_);
530
 
                        _g_free0 (_tmp5_);
 
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_);
 
528
                        _g_free0 (_tmp12_);
 
529
                        _g_free0 (_tmp11_);
 
530
                        _g_free0 (_tmp10_);
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_);
534
 
                        _g_free0 (_tmp11_);
535
 
                        _g_free0 (_tmp10_);
536
 
                        _g_free0 (_tmp9_);
 
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_);
 
534
                        _g_free0 (_tmp16_);
 
535
                        _g_free0 (_tmp15_);
 
536
                        _g_free0 (_tmp14_);
537
537
                        ctk_actor_set_background_for_state ((CtkActor*) self, CTK_STATE_ACTIVE, self->bg);
538
538
                        clutter_actor_show (self->bg);
539
539
                }
544
544
                        e = _inner_error_;
545
545
                        _inner_error_ = NULL;
546
546
                        {
547
 
                                char* _tmp13_;
548
 
                                g_warning ("panel-window-buttons.vala:247: %s", _tmp13_ = g_strconcat ("Unable to load window button theme: You need Ambiance installed: ", string_to_string (e->message), NULL));
549
 
                                _g_free0 (_tmp13_);
 
547
                                char* _tmp18_;
 
548
                                g_warning ("panel-window-buttons.vala:247: %s", _tmp18_ = g_strconcat ("Unable to load window button theme: You need Ambiance installed: ", string_to_string (e->message), NULL));
 
549
                                _g_free0 (_tmp18_);
550
550
                                _g_error_free0 (e);
551
551
                        }
552
552
                }