123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- #ifndef __WINDOWCK_H__
- #define __WINDOWCK_H__
- #ifdef HAVE_CONFIG_H
- #include <config.h>
- #endif
- #ifdef HAVE_STRING_H
- #include <string.h>
- #endif
- #include <gtk/gtk.h>
- #include <common/wck-utils.h>
- #include <common/wck-plugin.h>
- #define ICON_PADDING 3
- #define XFCE_PANEL_IS_SMALL (xfce_panel_plugin_get_size (wckp->plugin) < 23)
- G_BEGIN_DECLS
- typedef enum Alignment
- {
- LEFT = 0, CENTER = 5, RIGHT = 10
- } Alignment;
- typedef enum SizeMode
- {
- SHRINK = 1, FIXE = 2, EXPAND = 3
- } SizeMode;
- typedef struct {
- GtkEventBox *eventbox;
- GtkWidget *symbol;
- } WindowIcon;
- typedef struct {
- GtkBuilder *builder;
- gboolean only_maximized;
- gboolean show_on_desktop;
-
- gboolean hide_title;
- gboolean show_app_icon;
- gboolean icon_on_right;
- gboolean show_window_menu;
- gboolean full_name;
- gboolean two_lines;
- gboolean show_tooltips;
- SizeMode size_mode;
- gint title_size;
- gint title_padding;
- gboolean sync_wm_font;
- gchar *title_font;
- gchar *subtitle_font;
- gint title_alignment;
- gint inactive_text_alpha;
- gint inactive_text_shade;
- gchar *active_text_color;
- gchar *inactive_text_color;
- } WCKPreferences;
- typedef struct {
- XfcePanelPlugin *plugin;
-
- GtkWidget *ebox;
- GtkWidget *hvbox;
- GtkWidget *alignment;
- GtkLabel *title;
- WindowIcon *icon;
- WCKPreferences *prefs;
- WckUtils *win;
- gulong cnh;
- gulong cih;
- XfconfChannel *wm_channel;
- XfconfChannel *x_channel;
- } WindowckPlugin;
- void windowck_save(XfcePanelPlugin *plugin, WindowckPlugin *wckp);
- void create_symbol (gboolean show_app_icon, WindowckPlugin *wckp);
- G_END_DECLS
- #endif
|