[geary] Fix conversation viewer's spinners being huge with some themes.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary] Fix conversation viewer's spinners being huge with some themes.
- Date: Mon, 24 Oct 2016 23:03:53 +0000 (UTC)
commit 797bb44b7c7e978517828a4fe883d951eb24389d
Author: Michael James Gratton <mike vee net>
Date: Sat Oct 22 09:20:08 2016 +1100
Fix conversation viewer's spinners being huge with some themes.
Bug 773054
* src/client/conversation-viewer/conversation-list-box.vala
(ConversationListBox::show_loading), ui/conversation-viewer.ui: Specify
a width and height request for the spinners, ensure they are centered.
.../conversation-viewer/conversation-list-box.vala | 2 ++
ui/conversation-viewer.ui | 6 +++++-
2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/client/conversation-viewer/conversation-list-box.vala
b/src/client/conversation-viewer/conversation-list-box.vala
index ac15caf..dc90c68 100644
--- a/src/client/conversation-viewer/conversation-list-box.vala
+++ b/src/client/conversation-viewer/conversation-list-box.vala
@@ -761,6 +761,8 @@ public class ConversationListBox : Gtk.ListBox {
private void show_loading() {
Gtk.Spinner spinner = new Gtk.Spinner();
+ spinner.set_size_request(32, 32);
+ spinner.halign = spinner.valign = Gtk.Align.CENTER;
spinner.start();
spinner.show();
set_placeholder(spinner);
diff --git a/ui/conversation-viewer.ui b/ui/conversation-viewer.ui
index 1c0ac63..2e87072 100644
--- a/ui/conversation-viewer.ui
+++ b/ui/conversation-viewer.ui
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.20.0 -->
<interface>
- <requires lib="gtk+" version="3.10"/>
+ <requires lib="gtk+" version="3.14"/>
<template class="ConversationViewer" parent="GtkStack">
<property name="name">conversation_viewer</property>
<property name="visible">True</property>
@@ -9,8 +9,12 @@
<property name="transition_type">crossfade</property>
<child>
<object class="GtkSpinner" id="loading_page">
+ <property name="width_request">32</property>
+ <property name="height_request">32</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="halign">center</property>
+ <property name="valign">center</property>
<property name="active">True</property>
</object>
<packing>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]