Also reset icon when resetting location
This commit is contained in:
parent
d3863a0abf
commit
32eb583cb5
1 changed files with 8 additions and 4 deletions
|
@ -3744,10 +3744,14 @@ static void
|
||||||
_action_location_reset_uri (GtkAction* action,
|
_action_location_reset_uri (GtkAction* action,
|
||||||
MidoriBrowser* browser)
|
MidoriBrowser* browser)
|
||||||
{
|
{
|
||||||
const gchar* uri;
|
GtkWidget* view;
|
||||||
|
if ((view = midori_browser_get_current_tab (browser)))
|
||||||
uri = midori_browser_get_current_uri (browser);
|
{
|
||||||
midori_location_action_set_text (MIDORI_LOCATION_ACTION (action), uri);
|
midori_location_action_set_text (MIDORI_LOCATION_ACTION (action),
|
||||||
|
midori_view_get_display_uri (MIDORI_VIEW (view)));
|
||||||
|
midori_location_action_set_icon (MIDORI_LOCATION_ACTION (action),
|
||||||
|
midori_view_get_icon (MIDORI_VIEW (view)));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue