source: trunk/third/gnome-panel/gnome-panel/panel-config.h @ 18631

Revision 18631, 3.0 KB checked in by ghudson, 21 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18630, which included commits to RCS files with non-trunk default branches.
Line 
1#ifndef PANEL_CONFIG_H
2#define PANEL_CONFIG_H
3
4#include "panel-widget.h"
5#include "border-widget.h"
6#include "aligned-widget.h"
7#include "sliding-widget.h"
8
9#include "panel-util.h"
10
11/* used to temporarily store config values until the 'Apply'
12   button is pressed. */
13typedef struct _PerPanelConfig PerPanelConfig;
14struct _PerPanelConfig {
15        GtkWidget               *panel;
16
17        UpdateFunction          update_function;
18        gpointer                update_data;
19
20        /*basep types*/
21        int                     screen;
22        int                     monitor;
23        gboolean                hidebuttons;
24        gboolean                hidebutton_pixmaps;
25        BasePMode               mode;
26
27        /*floating widget*/
28        GtkOrientation        orient;
29        gint16                x, y;
30
31        /*indexes for toggle*/
32        int edge;
33        int align;
34
35        gint16                  offset;
36
37       
38        /*panel types*/
39        int                     sz;
40        gboolean                fit_pixmap_bg;
41        gboolean                stretch_pixmap_bg;
42        gboolean                rotate_pixmap_bg;
43        PanelBackgroundType     back_type;
44        char                    *back_pixmap;
45        PanelColor              back_color;
46       
47        gboolean                register_changes; /*used for startup*/
48        gboolean                ppc_origin_change; /* if true then the dialog
49                                                      will NOT be updated on changes,
50                                                      so that we don't get into infinite
51                                                      loops, set before we ourselves
52                                                      apply changes. */
53        GtkWidget               *config_window;
54        GtkWidget               *type_tab; /* the type specific tab of
55                                              the notebook, this is just
56                                              an eventbox, which we will
57                                              be able to change contents
58                                              of */
59        GtkWidget               *type_tab_label;
60
61        GtkWidget               *pix_entry;
62
63        /*screen number spinners*/
64        GtkWidget               *screen_spin;
65        GtkWidget               *monitor_spin;
66
67        /*hiding stuff*/
68        GtkWidget               *autohide_button;
69        GtkWidget               *hidebuttons_button;
70        GtkWidget               *hidebutton_pixmaps_button;
71
72        /*size*/
73        GtkWidget               *size_menu;
74
75        /*color buttons*/
76        GtkWidget               *col_label;
77        GtkWidget               *pix_frame;
78        GtkWidget               *backsel;
79        GtkWidget               *back_om; /* the back type option menu */
80
81        /*position widgets*/
82#define POSITION_EDGES 4
83#define POSITION_ALIGNS 3
84        GtkWidget               *toggle[POSITION_EDGES][POSITION_ALIGNS];
85
86        /*floating buttons*/
87        GtkWidget               *h_orient;
88        GtkWidget               *v_orient;
89        GtkWidget               *x_spin;
90        GtkWidget               *y_spin;
91
92        /*sliding buttons*/
93        GtkWidget               *offset_spin;
94};
95
96void panel_config_register_changes (PerPanelConfig *ppc);
97
98void panel_config (GtkWidget *panel);
99void update_config_size (GtkWidget *panel);
100void update_config_screen (BasePWidget *panel);
101void update_config_back (PanelWidget *panel);
102void update_config_edge (BasePWidget *w);
103void update_config_anchor (BasePWidget *w);
104void update_config_offset (BasePWidget *w);
105void update_config_offset_limit (BasePWidget *panel);
106void update_config_align (BasePWidget *w);
107void update_config_floating_pos (BasePWidget *panel);
108void update_config_floating_orient (BasePWidget *panel);
109void update_config_floating_pos_limits (BasePWidget *panel);
110void update_config_type (BasePWidget *panel);
111void kill_config_dialog (GtkWidget *panel);
112
113GtkWidget *make_size_widget (PerPanelConfig *ppc);
114
115
116#endif /* PANEL_CONFIG_H */
Note: See TracBrowser for help on using the repository browser.