~jamespharaoh/ubuntu/oneiric/unity/fix-for-880672

« back to all changes in this revision

Viewing changes to plugins/unityshell/src/PlacesSettings.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2011-08-25 15:40:18 UTC
  • mfrom: (1.1.52 upstream)
  • Revision ID: james.westby@ubuntu.com-20110825154018-enhrknkztdco821i
Tags: 4.10.0-0ubuntu1
* New upstream release:
  - unity task switcher (alt-tab, alt-down) shows empty spaces for iconified 
    windows in window detail mode (lp: #828348)
  - compiz crashed with SIGSEGV in 
    unity::DeviceLauncherIcon::OnStopDriveReady() (lp: #824093)
  - Dash performance issues with 'Active Blur' enabled (lp: #824890)
  - compiz crashed with SIGABRT in raise() when setting background 
    to full color (lp: #829049)
  - Dragging from dash to launcher still doesn't work (lp: #824833)
  - .desktops dragged on to unity launcher will not be added to 
     com.canonical.Unity.Launcher favorites unless moved in the launcher
     (lp: #830536)
  - application's menu shown when the cursor is a little left 
    to window controls (lp: #820293)
  - Ubuntu Start launcher item should always start the dash with 
    the Home screen (lp: #825034)
  - search spinner does not stop hence nothing can be launched with 
    the Return key (lp: #824836)
* debian/control: updated nux requirement
* debian/rules: updated shlibs

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
2
 
/*
3
 
* Copyright (C) 2010 Canonical Ltd
4
 
*
5
 
* This program is free software: you can redistribute it and/or modify
6
 
* it under the terms of the GNU General Public License version 3 as
7
 
* published by the Free Software Foundation.
8
 
*
9
 
* This program is distributed in the hope that it will be useful,
10
 
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 
* GNU General Public License for more details.
13
 
*
14
 
* You should have received a copy of the GNU General Public License
15
 
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
 
*
17
 
* Authored by: Neil Jagdish Patel <neil.patel@canonical.com>
18
 
*/
19
 
 
20
 
#ifndef PLACES_SETTINGS_H
21
 
#define PLACES_SETTINGS_H
22
 
 
23
 
#include <gio/gio.h>
24
 
#include <Nux/Nux.h>
25
 
 
26
 
#include "PlacesSettings.h"
27
 
 
28
 
class PlacesSettings : public nux::Object
29
 
{
30
 
public:
31
 
  enum FormFactor
32
 
  {
33
 
    DESKTOP = 1,
34
 
    NETBOOK
35
 
 
36
 
  };
37
 
 
38
 
  PlacesSettings();
39
 
  ~PlacesSettings();
40
 
 
41
 
  static PlacesSettings* GetDefault();
42
 
 
43
 
  FormFactor GetFormFactor();
44
 
  int        GetDefaultTileWidth();
45
 
 
46
 
  bool GetHomeExpanded();
47
 
  void SetHomeExpanded(bool expanded);
48
 
 
49
 
  sigc::signal<void, PlacesSettings*> changed;
50
 
 
51
 
private:
52
 
  void Refresh();
53
 
  static void Changed(GSettings* settings, gchar* key, PlacesSettings* self);
54
 
 
55
 
private:
56
 
  GSettings*   _settings;
57
 
  int          _raw_from_factor;
58
 
  FormFactor   _form_factor;
59
 
};
60
 
 
61
 
#endif // PLACES_SETTINGS_H