~ubuntu-branches/ubuntu/oneiric/avant-window-navigator/oneiric

« back to all changes in this revision

Viewing changes to libawn/awn-gconf.h

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2008-05-24 14:42:01 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080524144201-r3v8e4g2hv2q1i9x
Tags: 0.2.6-6
* debian/patches/04-fix-colormap.patch
 - Fix crash in awn-manager if colormap == None. Thanks Emme for the 
   patch. (Closes: #482030) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 *  Copyright (C) 2007 Neil Jagdish Patel <njpatel@gmail.com>
3
 
 *
4
 
 *  This program is free software; you can redistribute it and/or modify
5
 
 *  it under the terms of the GNU General Public License as published by
6
 
 *  the Free Software Foundation; either version 2 of the License, or
7
 
 *  (at your option) any later version.
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, write to the Free Software
16
 
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA.
17
 
 *
18
 
 *  Author : Neil Jagdish Patel <njpatel@gmail.com>
19
 
 *
20
 
 *  Notes : This is the actual icon on the app, the "Application Icon" 
21
 
*/
22
 
 
23
 
#ifndef _AWN_GCONF_H
24
 
#define _AWN_GCONF_H
25
 
 
26
 
#include <glib.h>
27
 
#include <gtk/gtk.h>
28
 
 
29
 
#include <gconf/gconf-client.h>
30
 
 
31
 
#include <libawn/awn-cairo-utils.h>
32
 
 
33
 
 
34
 
typedef struct {
35
 
        
36
 
        /* Misc globals */
37
 
        GtkIconTheme *icon_theme;
38
 
        GtkWidget *bar;
39
 
        GtkWidget *window;
40
 
        GtkWidget *title;
41
 
        GtkWidget *appman;
42
 
        GtkWidget *hot;
43
 
        gint task_width;
44
 
        
45
 
        /* monitor settings */
46
 
        GdkRectangle monitor;
47
 
        gboolean force_monitor;
48
 
        int monitor_height;
49
 
        int monitor_width;
50
 
        gboolean panel_mode;
51
 
        
52
 
        gboolean auto_hide;
53
 
        gboolean hidden;
54
 
        gboolean hiding;
55
 
        gint auto_hide_delay;
56
 
        gboolean keep_below;
57
 
        
58
 
        int bar_height;
59
 
        int bar_angle;
60
 
        gfloat bar_pos;
61
 
 
62
 
        /* Bar appearance settings */
63
 
        gboolean rounded_corners;
64
 
        gfloat corner_radius;
65
 
        gboolean render_pattern;
66
 
        
67
 
        gchar *pattern_uri;
68
 
        gfloat pattern_alpha;
69
 
        
70
 
        AwnColor g_step_1;
71
 
        AwnColor g_step_2;
72
 
        AwnColor g_histep_1;
73
 
        AwnColor g_histep_2;
74
 
        AwnColor border_color;
75
 
        AwnColor hilight_color;
76
 
        
77
 
        gboolean show_separator;
78
 
        AwnColor sep_color;
79
 
        
80
 
        /* Window Manager Settings */
81
 
        gboolean show_all_windows;
82
 
        GSList *launchers;
83
 
        
84
 
        /* Task settings */
85
 
        gboolean use_png;
86
 
        gchar *active_png;
87
 
        
88
 
        AwnColor arrow_color;
89
 
        int arrow_offset;
90
 
        gboolean tasks_have_arrows;
91
 
        
92
 
        gboolean name_change_notify;
93
 
        gboolean alpha_effect;
94
 
        gint icon_effect;
95
 
        
96
 
        int icon_offset;
97
 
        
98
 
        /* Title settings */
99
 
        AwnColor text_color;
100
 
        AwnColor shadow_color;
101
 
        AwnColor background;
102
 
        gchar *font_face;       
103
 
        
104
 
        gboolean btest;
105
 
        float ftest;
106
 
        char* stest;
107
 
        AwnColor ctest;
108
 
        GSList *ltest;
109
 
                
110
 
} AwnSettings;
111
 
 
112
 
 
113
 
AwnSettings* awn_gconf_new(void);
114
 
 
115
 
AwnSettings* awn_get_settings(void);
116
 
 
117
 
void awn_gconf_set_window_to_update(GtkWidget *window);
118
 
 
119
 
#endif /* _AWN_GCONF_H */