Author: rmottola
Date: Wed Mar 23 17:33:10 2016
New Revision: 39597
URL: http://svn.gna.org/viewcvs/gnustep?rev=39597&view=rev
Log:
Enable thumbnail generation also for the desktop
Modified:
apps/gworkspace/trunk/ChangeLog
apps/gworkspace/trunk/GWorkspace/Desktop/GWDesktopManager.m
Modified: apps/gworkspace/trunk/ChangeLog
URL:
http://svn.gna.org/viewcvs/gnustep/apps/gworkspace/trunk/ChangeLog?rev=39597&r1=39596&r2=39597&view=diff
==============================================================================
--- apps/gworkspace/trunk/ChangeLog (original)
+++ apps/gworkspace/trunk/ChangeLog Wed Mar 23 17:33:10 2016
@@ -1,3 +1,8 @@
+2016-03-23 Riccardo Mottola <[email protected]>
+
+ * GWorkspace/Desktop/GWDesktopManager.m
+ Enable thumbnail generation also for the desktop
+
2016-03-22 Riccardo Mottola <[email protected]>
* GWorkspace/GWorkspace.h
Modified: apps/gworkspace/trunk/GWorkspace/Desktop/GWDesktopManager.m
URL:
http://svn.gna.org/viewcvs/gnustep/apps/gworkspace/trunk/GWorkspace/Desktop/GWDesktopManager.m?rev=39597&r1=39596&r2=39597&view=diff
==============================================================================
--- apps/gworkspace/trunk/GWorkspace/Desktop/GWDesktopManager.m (original)
+++ apps/gworkspace/trunk/GWorkspace/Desktop/GWDesktopManager.m Wed Mar 23
17:33:10 2016
@@ -1,6 +1,6 @@
/* GWDesktopManager.m
*
- * Copyright (C) 2005-2013 Free Software Foundation, Inc.
+ * Copyright (C) 2005-2016 Free Software Foundation, Inc.
*
* Author: Enrico Sersale <[email protected]>
* Date: January 2005
@@ -31,6 +31,7 @@
#import "GWorkspace.h"
#import "GWViewersManager.h"
#import "TShelf/TShelfWin.h"
+#import "Thumbnailer/GWThumbnailer.h"
#define RESV_MARGIN 10
@@ -443,6 +444,36 @@
NSLog(@"Error! A fatal error occured while detaching the thread.");
}
NS_ENDHANDLER
+}
+
+- (void)makeThumbnails:(id)sender
+{
+ NSString *path;
+
+ path = [dskNode path];
+ if (path)
+ {
+ Thumbnailer *t;
+
+ t = [Thumbnailer sharedThumbnailer];
+ [t makeThumbnails:path];
+ [t release];
+ }
+}
+
+- (void)removeThumbnails:(id)sender
+{
+ NSString *path;
+
+ path = [dskNode path];
+ if (path)
+ {
+ Thumbnailer *t;
+
+ t = [Thumbnailer sharedThumbnailer];
+ [t removeThumbnails:path];
+ [t release];
+ }
}
- (void)fileSystemWillChange:(NSNotification *)notif
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs