Skip to content

Commit

Permalink
Fixed untimely icon creation (fails on headless machines, such as my …
Browse files Browse the repository at this point in the history
…build environment).

Updated deploy script to push to jmullan.com and update menalto.com.
  • Loading branch information
Pierre-Luc Paour committed Oct 9, 2003
1 parent d180d72 commit 603522b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
4 changes: 1 addition & 3 deletions com/gallery/GalleryRemote/GalleryRemote.java
Expand Up @@ -40,9 +40,7 @@ public class GalleryRemote {
public MainFrame mainFrame = null;
public PropertiesFile properties = null;
public PropertiesFile defaults = null;

public static Image iconImage = new ImageIcon(GalleryRemote.class.getResource( "/rar_icon_16.gif" )).getImage();


private GalleryRemote() {
defaults = new PropertiesFile("defaults");

Expand Down
3 changes: 2 additions & 1 deletion com/gallery/GalleryRemote/MainFrame.java
Expand Up @@ -129,6 +129,7 @@ public class MainFrame extends javax.swing.JFrame
public static ImageIcon iFlip;
public static ImageIcon iComputer;
public static ImageIcon iUploading;
public static Image iconImage = new ImageIcon(GalleryRemote.class.getResource( "/rar_icon_16.gif" )).getImage();

public static boolean IS_MAC_OS_X = (System.getProperty("mrj.version") != null);
//final static int MENU_MASK = Toolkit.getDefaultToolkit().getMenuShortcutKeyMask();
Expand Down Expand Up @@ -166,7 +167,7 @@ public MainFrame() {
galleries.addElement( g );
}*/

setIconImage(GalleryRemote.iconImage);
setIconImage(MainFrame.iconImage);

if ( System.getProperty("os.name").toLowerCase().startsWith("mac") ) {
// Install shutdown handler only on Mac
Expand Down
2 changes: 1 addition & 1 deletion com/gallery/GalleryRemote/PreviewFrame.java
Expand Up @@ -46,7 +46,7 @@ public class PreviewFrame extends javax.swing.JFrame {
public void initComponents() {
setTitle(GRI18n.getInstance().getString(MODULE, "title"));

setIconImage(GalleryRemote.iconImage);
setIconImage(MainFrame.iconImage);

setBounds(GalleryRemote.getInstance().properties.getPreviewBounds());

Expand Down
2 changes: 1 addition & 1 deletion com/gallery/GalleryRemote/Update.java
Expand Up @@ -113,7 +113,7 @@ public void showNotice() {

DialogUtil.center(this);

setIconImage(GalleryRemote.iconImage);
setIconImage(MainFrame.iconImage);

setVisible( true );
} catch ( Exception e ) {
Expand Down
4 changes: 3 additions & 1 deletion deploy.sh
@@ -1,4 +1,4 @@
cvs update -d;
cvs -q update -d;

. ant zip;

Expand All @@ -7,3 +7,5 @@ echo $version;

rm /var/www/html/gr-staging/*
cp gallery_remote.zip /var/www/html/gr-staging/gallery_remote_$version.zip

lynx -dump -head http://jpmullan.com/galleryupdates/remote/gallery_remote_$version.zip | grep "HTTP/1.1 404" && scp gallery_remote.zip paour@jpmullan.com:remote/gallery_remote_$version.zip && . ant post

0 comments on commit 603522b

Please sign in to comment.