all repos — tint2 @ a3177fadd9b4e1ea6d29b85141adee68c16d84a6

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

fixed indentation inconsistency by dmitry

git-svn-id: http://tint2.googlecode.com/svn/trunk@193 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
lorthiois@bbsoft.fr lorthiois@bbsoft.fr@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
commit

a3177fadd9b4e1ea6d29b85141adee68c16d84a6

parent

a4ccce2cd34ac75faee5d747a1eb59d097442a18

M src/battery/battery.hsrc/battery/battery.h

@@ -18,12 +18,12 @@ #include "common.h"

#include "area.h" typedef struct Battery { - // always start with area - Area area; + // always start with area + Area area; - config_color font; - int bat1_posy; - int bat2_posy; + config_color font; + int bat1_posy; + int bat2_posy; } Battery; enum chargestate {
M src/clock/clock.hsrc/clock/clock.h

@@ -15,12 +15,12 @@ #include "area.h"

typedef struct Clock { - // always start with area - Area area; + // always start with area + Area area; - config_color font; - int time1_posy; - int time2_posy; + config_color font; + int time1_posy; + int time2_posy; } Clock;
M src/panel.hsrc/panel.h

@@ -58,39 +58,39 @@ extern Imlib_Image default_icon;

typedef struct { - // always start with area - // area.list own all objects of the panel according to config file - Area area; + // always start with area + // area.list own all objects of the panel according to config file + Area area; - // -------------------------------------------------- - // panel - Window main_win; - Pixmap temp_pmap; + // -------------------------------------------------- + // panel + Window main_win; + Pixmap temp_pmap; - // position relative to root window + // position relative to root window int posx, posy; - int marginx, marginy; - float initial_width, initial_height; - int pourcentx, pourcenty; - // location of the panel (monitor number) - int monitor; + int marginx, marginy; + float initial_width, initial_height; + int pourcentx, pourcenty; + // location of the panel (monitor number) + int monitor; - // -------------------------------------------------- - // task and taskbar parameter per panel + // -------------------------------------------------- + // task and taskbar parameter per panel Area g_taskbar; Global_task g_task; - // -------------------------------------------------- - // taskbar point to the first taskbar in panel.area.list. - // number of tasbar == nb_desktop + // -------------------------------------------------- + // taskbar point to the first taskbar in panel.area.list. + // number of tasbar == nb_desktop // taskbar[i] is used to loop over taskbar, // while panel->area.list is used to loop over all panel's objects - Taskbar *taskbar; - int nb_desktop; + Taskbar *taskbar; + int nb_desktop; - // -------------------------------------------------- - // clock - Clock clock; + // -------------------------------------------------- + // clock + Clock clock; // -------------------------------------------------- // battery
M src/systray/systraybar.hsrc/systray/systraybar.h

@@ -20,8 +20,8 @@ #define XEMBED_MAPPED (1 << 0)

typedef struct { - // always start with area - Area area; + // always start with area + Area area; GSList *list_icons; int sort;

@@ -30,9 +30,9 @@

typedef struct { - Window id; - int x, y; - int width, height; + Window id; + int x, y; + int width, height; int hide; } TrayWindow;
M src/taskbar/taskbar.hsrc/taskbar/taskbar.h

@@ -12,15 +12,15 @@ #include "task.h"

typedef struct { - // always start with area - Area area; + // always start with area + Area area; - int desktop; + int desktop; - // task parameters - int task_width; - int task_modulo; - int text_width; + // task parameters + int task_width; + int task_modulo; + int text_width; } Taskbar;
M src/tint2conf/main.csrc/tint2conf/main.c

@@ -69,34 +69,34 @@

// define menubar and toolbar static const char *fallback_ui_file = - "<ui>" - " <menubar name='MenuBar'>" - " <menu action='ThemeMenu'>" - " <menuitem action='ThemeAdd'/>" - " <menuitem action='ThemeSaveAs'/>" - " <separator/>" - " <menuitem action='ThemeProperties'/>" - " <menuitem action='ThemeRename'/>" - " <separator/>" - " <menuitem action='ThemeDelete'/>" - " <separator/>" - " <menuitem action='ThemeQuit'/>" - " </menu>" - " <menu action='ViewMenu'>" - " <menuitem action='ViewRefresh'/>" - " <menuitem action='ViewRefreshAll'/>" - " </menu>" - " <menu action='HelpMenu'>" - " <menuitem action='HelpAbout'/>" - " </menu>" - " </menubar>" - " <toolbar name='ToolBar'>" - " <toolitem action='ViewRefreshAll'/>" - " <separator/>" - " <toolitem action='ThemeProperties'/>" - " <toolitem action='ViewApply'/>" - " </toolbar>" - "</ui>"; + "<ui>" + " <menubar name='MenuBar'>" + " <menu action='ThemeMenu'>" + " <menuitem action='ThemeAdd'/>" + " <menuitem action='ThemeSaveAs'/>" + " <separator/>" + " <menuitem action='ThemeProperties'/>" + " <menuitem action='ThemeRename'/>" + " <separator/>" + " <menuitem action='ThemeDelete'/>" + " <separator/>" + " <menuitem action='ThemeQuit'/>" + " </menu>" + " <menu action='ViewMenu'>" + " <menuitem action='ViewRefresh'/>" + " <menuitem action='ViewRefreshAll'/>" + " </menu>" + " <menu action='HelpMenu'>" + " <menuitem action='HelpAbout'/>" + " </menu>" + " </menubar>" + " <toolbar name='ToolBar'>" + " <toolitem action='ViewRefreshAll'/>" + " <separator/>" + " <toolitem action='ThemeProperties'/>" + " <toolitem action='ViewApply'/>" + " </toolbar>" + "</ui>"; // define menubar and toolbar action static GtkActionEntry entries[] = {
M src/util/area.hsrc/util/area.h

@@ -27,58 +27,58 @@

typedef struct { - double color[3]; - double alpha; - int width; - int rounded; + double color[3]; + double alpha; + int width; + int rounded; } Border; typedef struct { - double color[3]; - double alpha; + double color[3]; + double alpha; } Color; typedef struct { - Pixmap pmap; - Color back; - Border border; + Pixmap pmap; + Color back; + Border border; } Pmap; typedef struct { - // absolute coordinate in panel - int posx, posy; - // width and height including border - int width, height; - Pmap pix; - Pmap pix_active; + // absolute coordinate in panel + int posx, posy; + // width and height including border + int width, height; + Pmap pix; + Pmap pix_active; - // list of child : Area object - GSList *list; + // list of child : Area object + GSList *list; int on_screen; // need compute position and width int resize; - // need redraw Pixmap - int redraw; - int use_active, is_active; - // paddingxlr = horizontal padding left/right - // paddingx = horizontal padding between childs - int paddingxlr, paddingx, paddingy; - // parent Area - void *parent; - // panel - void *panel; + // need redraw Pixmap + int redraw; + int use_active, is_active; + // paddingxlr = horizontal padding left/right + // paddingx = horizontal padding between childs + int paddingxlr, paddingx, paddingy; + // parent Area + void *parent; + // panel + void *panel; - // each object can overwrite following function - void (*_draw_foreground)(void *obj, cairo_t *c, int active); - void (*_resize)(void *obj); - void (*_add_child)(void *obj); - int (*_remove_child)(void *obj); + // each object can overwrite following function + void (*_draw_foreground)(void *obj, cairo_t *c, int active); + void (*_resize)(void *obj); + void (*_add_child)(void *obj); + int (*_remove_child)(void *obj); } Area;
M src/util/common.hsrc/util/common.h

@@ -36,17 +36,17 @@

typedef struct config_border { - double color[3]; - double alpha; - int width; - int rounded; + double color[3]; + double alpha; + int width; + int rounded; } config_border; typedef struct config_color { - double color[3]; - double alpha; + double color[3]; + double alpha; } config_color;