launcher : limit launcher_icon_theme to 1 theme. Add XSETTINGS client and read launcher_icon_theme if manager is running.

git-svn-id: http://tint2.googlecode.com/svn/trunk@588 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
thilor77
2010-11-07 08:44:27 +00:00
parent c936265172
commit da27293d22
13 changed files with 998 additions and 42 deletions

View File

@@ -42,6 +42,7 @@
#include "panel.h"
#include "tooltip.h"
#include "timer.h"
#include "xsettings-client.h"
void signal_handler(int sig)
@@ -135,7 +136,7 @@ void init_X11()
setlocale (LC_ALL, "");
// config file use '.' as decimal separator
setlocale(LC_NUMERIC, "POSIX");
// load default icon
gchar *path;
const gchar * const *data_dirs;
@@ -803,6 +804,9 @@ start:
if (select(x11_fd+1, &fdset, 0, 0, timeout) > 0) {
while (XPending (server.dsp)) {
XNextEvent(server.dsp, &e);
if (xsettings_client != NULL) {
xsettings_client_process_event(xsettings_client, &e);
}
panel = get_panel(e.xany.window);
if (panel && panel_autohide) {