Going toward implementing creating icons on desktop

This commit is contained in:
Sanel Zukan
2012-04-25 16:28:09 +00:00
parent 3c314d9482
commit 27b8bd888a
5 changed files with 199 additions and 2 deletions

View File

@@ -49,6 +49,7 @@
#include "DesktopIcon.h"
#include "Utils.h"
#include "Wallpaper.h"
#include "IconDialog.h"
#define CONFIG_NAME "ede-desktop"
#define ICONS_CONFIG_NAME "ede-desktop-icons"
@@ -95,9 +96,10 @@ EDELIB_NS_USING(NETWM_CHANGED_CURRENT_WORKSPACE)
static void background_conf_cb(Fl_Widget*, void*);
static void icons_conf_cb(Fl_Widget*, void*);
static void folder_create_cb(Fl_Widget*, void*);
static void launcher_create_cb(Fl_Widget*, void*);
MenuItem desktop_menu[] = {
{_("Create &launcher..."), 0, 0},
{_("Create &launcher..."), 0, launcher_create_cb},
{_("Create &folder..."), 0, folder_create_cb, 0, FL_MENU_DIVIDER},
{_("&Icons settings..."), 0, icons_conf_cb, 0},
{_("&Background..."), 0, background_conf_cb, 0},
@@ -153,6 +155,10 @@ static void folder_create_cb(Fl_Widget*, void*) {
alert(_("Unable to create directory '%s'! Please check if directory already exists or you have enough permissions to create it"), dp.c_str());
}
static void launcher_create_cb(Fl_Widget*, void*) {
icon_dialog_icon_create();
}
static void desktop_message_handler(int action, Window xid, void *data) {
switch(action) {
case NETWM_CHANGED_CURRENT_WORKSPACE: