Synced code with edelib changes.

Directory notifier added (still needs a work).
Internal changes for easier directory events handling.
This commit is contained in:
Sanel Zukan
2007-09-03 12:26:58 +00:00
parent 7a299bc70c
commit b571876fe6
4 changed files with 235 additions and 86 deletions

View File

@@ -19,10 +19,10 @@
#include <FL/Fl_Shared_Image.h>
#include <FL/Fl_Menu_Button.h>
#include <FL/x.h>
#include <FL/fl_ask.h>
#include <edelib/Debug.h>
#include <edelib/IconTheme.h>
#include <edelib/MessageBox.h>
#include <edelib/Nls.h>
#define USE_SHAPE 1
@@ -63,7 +63,7 @@ void rename_cb(Fl_Widget*, void* d) {
DesktopIcon* di = (DesktopIcon*)d;
EASSERT(di != NULL);
const char* new_name = fl_input(_("New name"), di->label());
const char* new_name = edelib::input(_("New name"), di->label());
if(!new_name)
return;
if(new_name[0] == '\0')
@@ -261,6 +261,10 @@ void DesktopIcon::rename(const char* str) {
redraw();
}
const edelib::String& DesktopIcon::path(void) {
return settings->full_path;
}
void DesktopIcon::fast_redraw(void) {
EASSERT(parent() != NULL && "Impossible !");