~ubuntu-branches/ubuntu/utopic/awn-extras-applets/utopic

« back to all changes in this revision

Viewing changes to src/awnsystemmonitor/dashboard_util.h

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2010-01-13 21:50:33 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100113215033-kd9otcdjrajmiag0
Tags: 0.3.9~bzr1944-0ubuntu1
* New upstream snapshot.
 - Catch error in weather applet (LP: #359668)
* debian/patches: Refresh.
* debian/*.install: 
 - Update to new location and new applets.
 - Disable dialect applet until python-xklavier is in the archive.
 - Disable MiMenu and Pandora applets, there are unmaintained and not stable.
* debian/awn-applets-c-core: Dropped, not needed.
* debian/control:
 - Update description with new applets.
 - Remove libawn-extras and python-awnlib, all merged in python-awn-extras.
 - Replace awn-manager by awn-settings.
 - Drop build-depends on libgnome-desktop-dev, python*-dev, python2.5,
   awn-manager, libglade2-dev and libgnomeui-dev.
 - Add build-depends on libdesktop-agnostic-bin and vala-awn.
 - Bump build-depends of libawn-dev (>= 0.3.9~bzr1890), valac (>= 0.7.7) and
   debhelper (>= 7.0.50~).
 - Bump Standards-Version to 3.8.3 (no change needed).
 - Demote gconf-editor to Suggest, it's only needed for very advanced
   settings.
 - Update Recommends for python applets with new applets.
 - Suggest python-gconf for notification-area and alacarte for YAMA.
 - Add a debug package for C applets.
* debian/libawn-extras*: Removed, libawn-extras was removed upstream.
* debian/python-awnlib*: Merged with python-awn-extras.
* debian/rules:
 - Rewrite to use overrides.
* debian/copyright:
 - Update copyright and licenses.
* debian/README.source: Added.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (c) 2007 Rodney Cryderman <rcryderman@gmail.com>
3
 
 *
4
 
 * This library is free software; you can redistribute it and/or
5
 
 * modify it under the terms of the GNU Lesser General Public
6
 
 * License as published by the Free Software Foundation; either
7
 
 * version 2 of the License, or (at your option) any later version.
8
 
 *
9
 
 * This library 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 GNU
12
 
 * Lesser General Public License for more details.
13
 
 *
14
 
 * You should have received a copy of the GNU Lesser General Public
15
 
 * License along with this library; if not, write to the
16
 
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
 
 * Boston, MA 02111-1307, USA.
18
 
 */
19
 
 
20
 
 
21
 
#ifndef DASHBOARD_UTIL_H_
22
 
#define DASHBOARD_UTIL_H_
23
 
 
24
 
#include <libawn/awn-applet.h>
25
 
#include <libawn/awn-cairo-utils.h>
26
 
#include <libawn/awn-title.h>
27
 
#include <stdlib.h>
28
 
 
29
 
#include <gconf/gconf-client.h>
30
 
#define NDEBUG
31
 
enum { DASHBOARD_FONT_TINY, DASHBOARD_FONT_SMALL, DASHBOARD_FONT_MEDIUM, DASHBOARD_FONT_LARGE };
32
 
 
33
 
 
34
 
typedef struct
35
 
{
36
 
  float red;
37
 
  float green;
38
 
  float blue;
39
 
}rgb_colour;
40
 
 
41
 
typedef struct
42
 
{
43
 
  float red;
44
 
  float green;
45
 
  float blue;
46
 
  float alpha;
47
 
}rgba_colour;
48
 
 
49
 
typedef struct
50
 
{
51
 
  GdkPixmap *pixmap;
52
 
  cairo_t *cr;
53
 
  GdkColormap* cmap;
54
 
 
55
 
}dashboard_cairo_widget;
56
 
 
57
 
void draw_pie_graph(cairo_t *cr, double x, double y, double radius, double start, double * values, AwnColor * colours, int numel);
58
 
 
59
 
void pick_awn_color(AwnColor * awncolour, const char *mess, void * arb_data, void (*notify_color_change)(void *));
60
 
 
61
 
void set_dashboard_gconf(GConfClient* p);
62
 
GConfClient* get_dashboard_gconf(void);
63
 
 
64
 
void set_fg_rbg(GdkColor *);
65
 
void set_bg_rbg(GdkColor *);
66
 
 
67
 
void get_fg_rgb_colour(rgb_colour *);
68
 
void get_fg_rgba_colour(rgba_colour *);
69
 
void get_bg_rgb_colour(rgb_colour *);
70
 
void get_bg_rgba_colour(rgba_colour *);
71
 
 
72
 
void use_bg_rgb_colour(cairo_t * cr);
73
 
void use_bg_rgba_colour(cairo_t * cr);
74
 
void use_fg_rgb_colour(cairo_t * cr);
75
 
void use_fg_rgba_colour(cairo_t * cr);
76
 
 
77
 
GtkWidget * get_cairo_widget(dashboard_cairo_widget *, int width, int height);
78
 
 
79
 
void del_cairo_widget(dashboard_cairo_widget * d);
80
 
 
81
 
float dashboard_get_font_size(int size);
82
 
 
83
 
char * dashboard_cairo_colour_to_string(AwnColor * colour);
84
 
 
85
 
GtkWidget * dashboard_build_clickable_menu_item(GtkWidget * menu, GCallback fn, char * mess, void *data);
86
 
GtkWidget * dashboard_build_clickable_check_menu_item(GtkWidget * menu, GCallback fn, char * mess, void *data, gboolean state);
87
 
 
88
 
void enable_suppress_hide_main(void);
89
 
void disable_suppress_hide_main(void);
90
 
gboolean get_hide_main(void);
91
 
 
92
 
gboolean toggle_boolean_menu(GtkWidget *widget, GdkEventButton *event, gboolean *p);
93
 
 
94
 
void quick_message(gchar *message, GtkWidget * mainwin);
95
 
 
96
 
/*void set_tiles_x(int x);
97
 
void set_tiles_y(int y);
98
 
int get_tiles_x(void);
99
 
int get_tiles_y(void);
100
 
float get_tile_size_x(void);
101
 
float get_tile_size_y(void);
102
 
*/
103
 
 
104
 
 
105
 
#endif
106
 
 
107