|
|
@ -69,7 +69,7 @@ class Address |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Update title |
|
|
|
// Update title |
|
|
|
$this->title->gtk->set_text( |
|
|
|
$this->title->setText( |
|
|
|
$address->getHost() |
|
|
|
$address->getHost() |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
@ -93,7 +93,7 @@ class Address |
|
|
|
$this->navbar->address->tab->refresh(); |
|
|
|
$this->navbar->address->tab->refresh(); |
|
|
|
|
|
|
|
|
|
|
|
// Update statusbar indicator |
|
|
|
// Update statusbar indicator |
|
|
|
$this->statusbar->gtk->set_text( |
|
|
|
$this->statusbar->setText( |
|
|
|
'Loading...' |
|
|
|
'Loading...' |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
@ -125,12 +125,12 @@ class Address |
|
|
|
|
|
|
|
|
|
|
|
if ($title) // detect title by document h1 |
|
|
|
if ($title) // detect title by document h1 |
|
|
|
{ |
|
|
|
{ |
|
|
|
$this->title->gtk->set_text( |
|
|
|
$this->title->setText( |
|
|
|
$title |
|
|
|
$title |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$this->statusbar->gtk->set_text( |
|
|
|
$this->statusbar->setText( |
|
|
|
null |
|
|
|
null |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
@ -138,7 +138,7 @@ class Address |
|
|
|
|
|
|
|
|
|
|
|
default: |
|
|
|
default: |
|
|
|
|
|
|
|
|
|
|
|
$this->title->gtk->set_text( |
|
|
|
$this->title->setText( |
|
|
|
'Oops!' |
|
|
|
'Oops!' |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
@ -146,7 +146,7 @@ class Address |
|
|
|
'File extension not supported' |
|
|
|
'File extension not supported' |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
$this->statusbar->gtk->set_text( |
|
|
|
$this->statusbar->setText( |
|
|
|
null |
|
|
|
null |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
@ -154,7 +154,7 @@ class Address |
|
|
|
|
|
|
|
|
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
$this->title->gtk->set_text( |
|
|
|
$this->title->setText( |
|
|
|
'Failure' |
|
|
|
'Failure' |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
@ -162,7 +162,7 @@ class Address |
|
|
|
'Could not open file' |
|
|
|
'Could not open file' |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
$this->statusbar->gtk->set_text( |
|
|
|
$this->statusbar->setText( |
|
|
|
'Resource not found or not readable' |
|
|
|
'Resource not found or not readable' |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
@ -200,7 +200,7 @@ class Address |
|
|
|
|
|
|
|
|
|
|
|
if ($title) // detect title by document h1 |
|
|
|
if ($title) // detect title by document h1 |
|
|
|
{ |
|
|
|
{ |
|
|
|
$this->title->gtk->set_text( |
|
|
|
$this->title->setText( |
|
|
|
$title |
|
|
|
$title |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
@ -214,14 +214,14 @@ class Address |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$this->statusbar->gtk->set_text( |
|
|
|
$this->statusbar->setText( |
|
|
|
$response->getMeta() |
|
|
|
$response->getMeta() |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
$this->title->gtk->set_text( |
|
|
|
$this->title->setText( |
|
|
|
'Failure' |
|
|
|
'Failure' |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
@ -234,7 +234,7 @@ class Address |
|
|
|
) |
|
|
|
) |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
$this->statusbar->gtk->set_text( |
|
|
|
$this->statusbar->setText( |
|
|
|
'Request failed' |
|
|
|
'Request failed' |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
@ -258,7 +258,7 @@ class Address |
|
|
|
FILTER_FLAG_HOSTNAME |
|
|
|
FILTER_FLAG_HOSTNAME |
|
|
|
) |
|
|
|
) |
|
|
|
) { |
|
|
|
) { |
|
|
|
$this->navbar->request->gtk->set_text( |
|
|
|
$this->navbar->request->setValue( |
|
|
|
$address->get() |
|
|
|
$address->get() |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
@ -266,7 +266,7 @@ class Address |
|
|
|
// Search request |
|
|
|
// Search request |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
$this->navbar->request->gtk->set_text( |
|
|
|
$this->navbar->request->setValue( |
|
|
|
sprintf( |
|
|
|
sprintf( |
|
|
|
'gemini://tlgs.one/search?%s', // @TODO custom provider |
|
|
|
'gemini://tlgs.one/search?%s', // @TODO custom provider |
|
|
|
urlencode( |
|
|
|
urlencode( |
|
|
@ -282,7 +282,7 @@ class Address |
|
|
|
|
|
|
|
|
|
|
|
default: |
|
|
|
default: |
|
|
|
|
|
|
|
|
|
|
|
$this->title->gtk->set_text( |
|
|
|
$this->title->setText( |
|
|
|
'Oops!' |
|
|
|
'Oops!' |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
@ -295,7 +295,7 @@ class Address |
|
|
|
) |
|
|
|
) |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
$this->statusbar->gtk->set_text( |
|
|
|
$this->statusbar->setText( |
|
|
|
null |
|
|
|
null |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|