summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Dywan <christian@twotoasts.de>2018-09-13 17:37:04 +0200
committerChristian Dywan <christian@twotoasts.de>2018-09-13 17:50:02 +0200
commit5d91783c967459bac77facab063fa7074f527b38 (patch)
treeb35242afd71cdfa68d5dd39252aa2ec33c32a3fe
parentee3994177ab7d732aed829442c87779d9e5f9ee4 (diff)
downloadmidori-git-downloads-popover-tweaks.tar.gz
Size and spacing tweaks to downloads popoverdownloads-popover-tweaks
-rw-r--r--core/download-button.vala2
-rw-r--r--ui/download-button.ui8
2 files changed, 8 insertions, 2 deletions
diff --git a/core/download-button.vala b/core/download-button.vala
index b0b6083d..24c33ecb 100644
--- a/core/download-button.vala
+++ b/core/download-button.vala
@@ -139,6 +139,8 @@ namespace Midori {
item.bind_property ("icon", icon, "gicon");
filename.label = item.basename;
item.bind_property ("basename", filename, "label");
+ filename.tooltip_text = item.basename;
+ item.bind_property ("basename", filename, "tooltip-text");
progress.fraction = item.progress;
item.bind_property ("progress", progress, "fraction");
progress.visible = item.loading;
diff --git a/ui/download-button.ui b/ui/download-button.ui
index af45b7e2..96d5102e 100644
--- a/ui/download-button.ui
+++ b/ui/download-button.ui
@@ -10,11 +10,14 @@
<child>
<object class="GtkBox">
<property name="orientation">horizontal</property>
+ <property name="spacing">12</property>
+ <property name="margin">12</property>
<property name="visible">yes</property>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Downloads</property>
<property name="hexpand">yes</property>
+ <property name="width-chars">33</property>
<property name="visible">yes</property>
</object>
</child>
@@ -22,7 +25,7 @@
<object class="GtkButton">
<property name="focus-on-click">no</property>
<property name="relief">half</property>
- <property name="label" translatable="yes">_Clear</property>
+ <property name="label" translatable="yes" context="downloads">_Clear</property>
<property name="use-underline">yes</property>
<property name="visible">yes</property>
</object>
@@ -44,9 +47,10 @@
<template class="MidoriDownloadButton" parent="GtkButton">
<property name="focus-on-click">no</property>
<property name="action-name">win.show-downloads</property>
+ <property name="tooltip-text" translatable="yes">View downloaded files</property>
<child>
<object class="GtkImage">
- <property name="icon-name">browser-download-symbolic</property>
+ <property name="icon-name">folder-download-symbolic</property>
<property name="use-fallback">yes</property>
<property name="visible">yes</property>
</object>