1. #1
    Ext User sjzaluk's Avatar
    Join Date
    Apr 2008
    Posts
    40
    Vote Rating
    0
    sjzaluk is on a distinguished road

      0  

    Default [FIXED] [1.2.2] Desktop Shortcut

    [FIXED] [1.2.2] Desktop Shortcut


    I am having an issue with the image displayed for a shortcut on my desktop app. Here is the code that I have to create the shortcut:

    Code:
    Shortcut orShortcut = new Shortcut();
    orShortcut.setText("Object Repository");
    orShortcut.setId("object-repository-shortcut");
    orShortcut.addData("window", orWindow);
    desktop.addShortcut(orShortcut);
    I have this in my CSS file:

    Code:
    #object-repository-shortcut img {
    width: 48px;
    height: 48px;
    background-image: url(../images/icons/object-repository-shortcut.png);
    }
    When I view the shortcut on my desktop, the text is correct and I see the icon I am setting but there is also a broken link icon from the browser on top of my icon. I am not sure what is going on there. Attached is an image of the shortcut on my desktop.

    Any help would be appreciated.

    Thanks,
    Steve
    Attached Images

  2. #2
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    3
    gslender is on a distinguished road

      0  

    Default


    I've just noticed that the code for ShortCut tries to reference a file that probably won't exist - this might be bug. The work around would be to just place a blank s.gif in that location.

    Code:
      @Override
      protected void onRender(Element target, int index) {
        super.onRender(target, index);
        setElement(DOM.createElement("dt"), target, index);
        El a = el().createChild("<a href='#'></a>");
        a.createChild("<img src='images/default/s.gif'></img>"); ///<-- what the?
        El txt = a.createChild("<div></div>");
    
        if (txt != null) {
          txt.setInnerHtml(text);
        }
        el().updateZIndex(0);
        sinkEvents(Event.ONCLICK);
      }

  3. #3
    Ext User sjzaluk's Avatar
    Join Date
    Apr 2008
    Posts
    40
    Vote Rating
    0
    sjzaluk is on a distinguished road

      0  

    Default


    That worked. Thanks.

    There is an s.gif under <gwt.module>/images/default. I guess the Shortcut class needs to be updated to load that as opposed to just images/default/s.gif

    Thanks again for the help.

    --Steve

  4. #4
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Fixed in SVN.

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi