~ubuntu-branches/ubuntu/maverick/unity/maverick

« 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-17 14:02:54 UTC
  • mfrom: (1.1.17 upstream)
  • Revision ID: james.westby@ubuntu.com-20100917140254-6cbue12klia2f07l
Tags: 0.2.40-0ubuntu1
* New upstream release:
  - Fix inactive menus accessible (LP: #604505)
  - Fix some more memory leaks (LP: #604777, #621690, #628144)
  - Fix weird behaviors of quicklist (LP: #617339)
  - Provide an "open this folder" button (LP: #633201)
  - Hidden menu causing gap (LP: #600191)
  - Cannot go fullscreen for flash videos (LP: #631381)
  - Can't access menu items from the keyboard (LP: #636728)
  - Don't register for MDRAGs since they aren't used (LP: #632613)
  - Don't run indicator on special launchers (LP: #627488)
  - Center arrows position in folded launcher tiles (LP: #633084)
  - Launcher icons first appear as white upon login (LP: #601093)
  - Removes jittering when rubber band is in use on the launcher (LP: #632991)
  - Mutter restarts on closing almost any application (LP: #634701)
  - Can't launch apps like synaptic with root privileges from launch bar
    (LP: #599298)
  - Launcher tile dragging shouldn't be masked (LP: #631443)
  - Fix Carousel-ed icons have distorted perspective (LP: #607515)
  - Use no longer sync call (LP: #620011)
* update debian/libunity0.symbols

Show diffs side-by-side

added added

removed removed

Lines of Context:
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);
118
 
static void _lambda7_ (UnityPanelWindowButtons* self);
119
 
static void __lambda7__ctk_button_clicked (CtkButton* _sender, gpointer self);
120
 
static void _lambda8_ (UnityPanelWindowButtons* self);
121
 
static void __lambda8__ctk_button_clicked (CtkButton* _sender, gpointer self);
122
118
static void _lambda9_ (UnityPanelWindowButtons* self);
123
119
static void __lambda9__ctk_button_clicked (CtkButton* _sender, gpointer self);
 
120
static void _lambda10_ (UnityPanelWindowButtons* self);
 
121
static void __lambda10__ctk_button_clicked (CtkButton* _sender, gpointer self);
 
122
static void _lambda11_ (UnityPanelWindowButtons* self);
 
123
static void __lambda11__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
 
static gboolean _lambda11_ (UnityPanelWindowButtons* self);
127
 
static gboolean __lambda11__gsource_func (gpointer self);
128
 
static void __lambda10__unity_shell_active_window_state_changed (UnityShell* _sender, gpointer self);
129
 
static gboolean _lambda12_ (UnityPanelWindowButtons* self);
130
 
static gboolean __lambda12__gsource_func (gpointer self);
 
125
static void _lambda12_ (UnityPanelWindowButtons* self);
 
126
static gboolean _lambda13_ (UnityPanelWindowButtons* self);
 
127
static gboolean __lambda13__gsource_func (gpointer self);
 
128
static void __lambda12__unity_shell_active_window_state_changed (UnityShell* _sender, gpointer self);
 
129
static gboolean _lambda14_ (UnityPanelWindowButtons* self);
 
130
static gboolean __lambda14__gsource_func (gpointer self);
131
131
static GObject * unity_panel_window_buttons_constructor (GType type, guint n_construct_properties, GObjectConstructParam * construct_properties);
132
132
static void unity_panel_window_buttons_finalize (GObject* obj);
133
133
#define UNITY_PANEL_WINDOW_BUTTON_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_PANEL_TYPE_WINDOW_BUTTON, UnityPanelWindowButtonPrivate))
274
274
}
275
275
 
276
276
 
277
 
static void _lambda7_ (UnityPanelWindowButtons* self) {
 
277
static void _lambda9_ (UnityPanelWindowButtons* self) {
278
278
        if (self->priv->last_xid > 0) {
279
279
                unity_shell_do_window_action (unity_global_shell, self->priv->last_xid, UNITY_WINDOW_ACTION_CLOSE);
280
280
        }
281
281
}
282
282
 
283
283
 
284
 
static void __lambda7__ctk_button_clicked (CtkButton* _sender, gpointer self) {
285
 
        _lambda7_ (self);
 
284
static void __lambda9__ctk_button_clicked (CtkButton* _sender, gpointer self) {
 
285
        _lambda9_ (self);
286
286
}
287
287
 
288
288
 
289
 
static void _lambda8_ (UnityPanelWindowButtons* self) {
 
289
static void _lambda10_ (UnityPanelWindowButtons* self) {
290
290
        if (self->priv->last_xid > 0) {
291
291
                unity_shell_do_window_action (unity_global_shell, self->priv->last_xid, UNITY_WINDOW_ACTION_MINIMIZE);
292
292
        }
293
293
}
294
294
 
295
295
 
296
 
static void __lambda8__ctk_button_clicked (CtkButton* _sender, gpointer self) {
297
 
        _lambda8_ (self);
 
296
static void __lambda10__ctk_button_clicked (CtkButton* _sender, gpointer self) {
 
297
        _lambda10_ (self);
298
298
}
299
299
 
300
300
 
301
 
static void _lambda9_ (UnityPanelWindowButtons* self) {
 
301
static void _lambda11_ (UnityPanelWindowButtons* self) {
302
302
        if (self->priv->last_xid > 0) {
303
303
                unity_shell_do_window_action (unity_global_shell, self->priv->last_xid, UNITY_WINDOW_ACTION_UNMAXIMIZE);
304
304
        }
305
305
}
306
306
 
307
307
 
308
 
static void __lambda9__ctk_button_clicked (CtkButton* _sender, gpointer self) {
309
 
        _lambda9_ (self);
 
308
static void __lambda11__ctk_button_clicked (CtkButton* _sender, gpointer self) {
 
309
        _lambda11_ (self);
310
310
}
311
311
 
312
312
 
315
315
}
316
316
 
317
317
 
318
 
static gboolean _lambda11_ (UnityPanelWindowButtons* self) {
319
 
        gboolean result = FALSE;
320
 
        BamfWindow* win;
321
 
        BamfWindow* _tmp0_;
322
 
        win = bamf_matcher_get_active_window (self->priv->matcher);
323
 
        unity_panel_window_buttons_on_active_window_changed (self, NULL, (_tmp0_ = win, G_IS_OBJECT (_tmp0_) ? ((GObject*) _tmp0_) : NULL));
324
 
        result = FALSE;
325
 
        return result;
326
 
}
327
 
 
328
 
 
329
 
static gboolean __lambda11__gsource_func (gpointer self) {
330
 
        gboolean result;
331
 
        result = _lambda11_ (self);
332
 
        return result;
333
 
}
334
 
 
335
 
 
336
 
static void _lambda10_ (UnityPanelWindowButtons* self) {
337
 
        g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) 0, __lambda11__gsource_func, g_object_ref (self), g_object_unref);
338
 
}
339
 
 
340
 
 
341
 
static void __lambda10__unity_shell_active_window_state_changed (UnityShell* _sender, gpointer self) {
342
 
        _lambda10_ (self);
343
 
}
344
 
 
345
 
 
346
 
static gboolean _lambda12_ (UnityPanelWindowButtons* self) {
347
 
        gboolean result = FALSE;
348
 
        BamfWindow* win;
349
 
        BamfWindow* _tmp0_;
350
 
        win = bamf_matcher_get_active_window (self->priv->matcher);
351
 
        unity_panel_window_buttons_on_active_window_changed (self, NULL, (_tmp0_ = win, G_IS_OBJECT (_tmp0_) ? ((GObject*) _tmp0_) : NULL));
352
 
        result = FALSE;
353
 
        return result;
354
 
}
355
 
 
356
 
 
357
 
static gboolean __lambda12__gsource_func (gpointer self) {
358
 
        gboolean result;
359
 
        result = _lambda12_ (self);
 
318
static gboolean _lambda13_ (UnityPanelWindowButtons* self) {
 
319
        gboolean result = FALSE;
 
320
        BamfWindow* win;
 
321
        BamfWindow* _tmp0_;
 
322
        win = bamf_matcher_get_active_window (self->priv->matcher);
 
323
        unity_panel_window_buttons_on_active_window_changed (self, NULL, (_tmp0_ = win, G_IS_OBJECT (_tmp0_) ? ((GObject*) _tmp0_) : NULL));
 
324
        result = FALSE;
 
325
        return result;
 
326
}
 
327
 
 
328
 
 
329
static gboolean __lambda13__gsource_func (gpointer self) {
 
330
        gboolean result;
 
331
        result = _lambda13_ (self);
 
332
        return result;
 
333
}
 
334
 
 
335
 
 
336
static void _lambda12_ (UnityPanelWindowButtons* self) {
 
337
        g_timeout_add_full (G_PRIORITY_DEFAULT, (guint) 0, __lambda13__gsource_func, g_object_ref (self), g_object_unref);
 
338
}
 
339
 
 
340
 
 
341
static void __lambda12__unity_shell_active_window_state_changed (UnityShell* _sender, gpointer self) {
 
342
        _lambda12_ (self);
 
343
}
 
344
 
 
345
 
 
346
static gboolean _lambda14_ (UnityPanelWindowButtons* self) {
 
347
        gboolean result = FALSE;
 
348
        BamfWindow* win;
 
349
        BamfWindow* _tmp0_;
 
350
        win = bamf_matcher_get_active_window (self->priv->matcher);
 
351
        unity_panel_window_buttons_on_active_window_changed (self, NULL, (_tmp0_ = win, G_IS_OBJECT (_tmp0_) ? ((GObject*) _tmp0_) : NULL));
 
352
        result = FALSE;
 
353
        return result;
 
354
}
 
355
 
 
356
 
 
357
static gboolean __lambda14__gsource_func (gpointer self) {
 
358
        gboolean result;
 
359
        result = _lambda14_ (self);
360
360
        return result;
361
361
}
362
362
 
380
380
                ctk_box_pack ((CtkBox*) self, (ClutterActor*) self->priv->appname, TRUE, TRUE);
381
381
                self->priv->close = (_tmp1_ = g_object_ref_sink (unity_panel_window_button_new ("close")), _g_object_unref0 (self->priv->close), _tmp1_);
382
382
                ctk_box_pack ((CtkBox*) self, (ClutterActor*) self->priv->close, FALSE, FALSE);
383
 
                g_signal_connect_object ((CtkButton*) self->priv->close, "clicked", (GCallback) __lambda7__ctk_button_clicked, self, 0);
 
383
                g_signal_connect_object ((CtkButton*) self->priv->close, "clicked", (GCallback) __lambda9__ctk_button_clicked, self, 0);
384
384
                self->priv->minimize = (_tmp2_ = g_object_ref_sink (unity_panel_window_button_new ("minimize")), _g_object_unref0 (self->priv->minimize), _tmp2_);
385
385
                ctk_box_pack ((CtkBox*) self, (ClutterActor*) self->priv->minimize, FALSE, FALSE);
386
 
                g_signal_connect_object ((CtkButton*) self->priv->minimize, "clicked", (GCallback) __lambda8__ctk_button_clicked, self, 0);
 
386
                g_signal_connect_object ((CtkButton*) self->priv->minimize, "clicked", (GCallback) __lambda10__ctk_button_clicked, self, 0);
387
387
                self->priv->unmaximize = (_tmp3_ = g_object_ref_sink (unity_panel_window_button_new ("unmaximize")), _g_object_unref0 (self->priv->unmaximize), _tmp3_);
388
388
                ctk_box_pack ((CtkBox*) self, (ClutterActor*) self->priv->unmaximize, FALSE, FALSE);
389
 
                g_signal_connect_object ((CtkButton*) self->priv->unmaximize, "clicked", (GCallback) __lambda9__ctk_button_clicked, self, 0);
 
389
                g_signal_connect_object ((CtkButton*) self->priv->unmaximize, "clicked", (GCallback) __lambda11__ctk_button_clicked, self, 0);
390
390
                self->priv->appinfo = (_tmp4_ = unity_app_info_manager_get_instance (), _g_object_unref0 (self->priv->appinfo), _tmp4_);
391
391
                self->priv->matcher = bamf_matcher_get_default ();
392
392
                g_signal_connect_object (self->priv->matcher, "active-window-changed", (GCallback) _unity_panel_window_buttons_on_active_window_changed_bamf_matcher_active_window_changed, self, 0);
393
 
                g_signal_connect_object (unity_global_shell, "active-window-state-changed", (GCallback) __lambda10__unity_shell_active_window_state_changed, self, 0);
394
 
                g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, __lambda12__gsource_func, g_object_ref (self), g_object_unref);
 
393
                g_signal_connect_object (unity_global_shell, "active-window-state-changed", (GCallback) __lambda12__unity_shell_active_window_state_changed, self, 0);
 
394
                g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, __lambda14__gsource_func, g_object_ref (self), g_object_unref);
395
395
        }
396
396
        return obj;
397
397
}