Fixed minor media bug
0
ComposeWindow.java
Executable file → Normal file
0
ImageApi.java
Executable file → Normal file
0
JKomasto.java
Executable file → Normal file
0
LoginWindow.java
Executable file → Normal file
14
PostWindow.java
Executable file → Normal file
@ -110,7 +110,7 @@ implements ActionListener {
|
|||||||
postDisplay.setFavourited(f);
|
postDisplay.setFavourited(f);
|
||||||
postDisplay.setBoosted(b);
|
postDisplay.setBoosted(b);
|
||||||
|
|
||||||
if (media.size() > 0)
|
if (media.size() > 0)
|
||||||
{
|
{
|
||||||
Tree<String> first = media.get(0);
|
Tree<String> first = media.get(0);
|
||||||
String u1 = first.get("remote_url").value;
|
String u1 = first.get("remote_url").value;
|
||||||
@ -145,7 +145,7 @@ implements ActionListener {
|
|||||||
Tree<String> post = this.post;
|
Tree<String> post = this.post;
|
||||||
Tree<String> boosted = post.get("reblog");
|
Tree<String> boosted = post.get("reblog");
|
||||||
if (boosted.size() > 0) post = boosted;
|
if (boosted.size() > 0) post = boosted;
|
||||||
|
|
||||||
postDisplay.setCursor(new Cursor(Cursor.WAIT_CURSOR));
|
postDisplay.setCursor(new Cursor(Cursor.WAIT_CURSOR));
|
||||||
postDisplay.setFavouriteBoostEnabled(false);
|
postDisplay.setFavouriteBoostEnabled(false);
|
||||||
postDisplay.paintImmediately(postDisplay.getBounds());
|
postDisplay.paintImmediately(postDisplay.getBounds());
|
||||||
@ -193,7 +193,7 @@ implements ActionListener {
|
|||||||
Tree<String> post = this.post;
|
Tree<String> post = this.post;
|
||||||
Tree<String> boosted2 = post.get("reblog");
|
Tree<String> boosted2 = post.get("reblog");
|
||||||
if (boosted2.size() > 0) post = boosted2;
|
if (boosted2.size() > 0) post = boosted2;
|
||||||
|
|
||||||
postDisplay.setCursor(new Cursor(Cursor.WAIT_CURSOR));
|
postDisplay.setCursor(new Cursor(Cursor.WAIT_CURSOR));
|
||||||
postDisplay.setFavouriteBoostEnabled(false);
|
postDisplay.setFavouriteBoostEnabled(false);
|
||||||
postDisplay.paintImmediately(postDisplay.getBounds());
|
postDisplay.paintImmediately(postDisplay.getBounds());
|
||||||
@ -248,7 +248,7 @@ implements ActionListener {
|
|||||||
|
|
||||||
String id1 = post.get("account").get("id").value;
|
String id1 = post.get("account").get("id").value;
|
||||||
String id2 = api.getAccountDetails().get("id").value;
|
String id2 = api.getAccountDetails().get("id").value;
|
||||||
|
|
||||||
String vs = post.get("visibility").value;
|
String vs = post.get("visibility").value;
|
||||||
PostVisibility v = null;
|
PostVisibility v = null;
|
||||||
if (vs.equals("public")) v = PostVisibility.PUBLIC;
|
if (vs.equals("public")) v = PostVisibility.PUBLIC;
|
||||||
@ -271,7 +271,11 @@ implements ActionListener {
|
|||||||
public void
|
public void
|
||||||
openMedia()
|
openMedia()
|
||||||
{
|
{
|
||||||
|
Tree<String> post = this.post;
|
||||||
|
Tree<String> boosted = post.get("reblog");
|
||||||
|
if (boosted.size() > 0) post = boosted;
|
||||||
Tree<String> media = post.get("media_attachments");
|
Tree<String> media = post.get("media_attachments");
|
||||||
|
|
||||||
Attachment[] as = new Attachment[media.size()];
|
Attachment[] as = new Attachment[media.size()];
|
||||||
for (int o = 0; o < as.length; ++o)
|
for (int o = 0; o < as.length; ++o)
|
||||||
{
|
{
|
||||||
@ -279,7 +283,7 @@ implements ActionListener {
|
|||||||
String u1 = medium.get("remote_url").value;
|
String u1 = medium.get("remote_url").value;
|
||||||
String u2 = medium.get("text_url").value;
|
String u2 = medium.get("text_url").value;
|
||||||
String u3 = medium.get("url").value;
|
String u3 = medium.get("url").value;
|
||||||
|
|
||||||
Attachment a = as[o] = new Attachment();
|
Attachment a = as[o] = new Attachment();
|
||||||
a.url = u1 != null ? u1 : u2 != null ? u2 : u3;
|
a.url = u1 != null ? u1 : u2 != null ? u2 : u3;
|
||||||
a.type = medium.get("type").value;
|
a.type = medium.get("type").value;
|
||||||
|
0
TimelineWindow.java
Executable file → Normal file
0
TimelineWindowUpdater.java
Executable file → Normal file
0
TwoToggleButton.java
Executable file → Normal file
0
graphics/Flags.xcf
Executable file → Normal file
0
graphics/Hourglass.xcf
Executable file → Normal file
0
graphics/button.png
Executable file → Normal file
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
0
graphics/disabledOverlay.png
Executable file → Normal file
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
0
graphics/favouriteToggled.png
Executable file → Normal file
Before Width: | Height: | Size: 353 B After Width: | Height: | Size: 353 B |
0
graphics/ref1.png
Executable file → Normal file
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
0
graphics/selectedOverlay.png
Executable file → Normal file
Before Width: | Height: | Size: 313 B After Width: | Height: | Size: 313 B |
0
graphics/test1.png
Executable file → Normal file
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
0
graphics/test2.png
Executable file → Normal file
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
0
graphics/test3.png
Executable file → Normal file
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
0
graphics/test4.png
Executable file → Normal file
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |