[epiphany] Fix color of add button on add language dialog
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Fix color of add button on add language dialog
- Date: Tue, 3 Feb 2015 15:20:42 +0000 (UTC)
commit a9dd55510ce3918357b52ec47b0031d97d21ab8c
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Thu Dec 11 16:36:05 2014 +0100
Fix color of add button on add language dialog
This button should be blue when sensitive.
Instead of manually packing the buttons into the header bar, let GTK+
handle them, so we don't screw with its heuristics for setting the color
of the buttons.
https://bugzilla.gnome.org/show_bug.cgi?id=741403
src/resources/prefs-lang-dialog.ui | 62 ++++++++++++-----------------------
1 files changed, 21 insertions(+), 41 deletions(-)
---
diff --git a/src/resources/prefs-lang-dialog.ui b/src/resources/prefs-lang-dialog.ui
index 6c4df49..56103cd 100644
--- a/src/resources/prefs-lang-dialog.ui
+++ b/src/resources/prefs-lang-dialog.ui
@@ -10,47 +10,27 @@
<property name="default_width">300</property>
<property name="default_height">420</property>
<property name="use_header_bar">1</property>
- <child internal-child="headerbar">
- <object class="GtkHeaderBar" id="headerbar1">
- <property name="title" translatable="yes">Add Language</property>
+ <property name="title" translatable="yes">Add Language</property>
+ <child type="action">
+ <object class="GtkButton" id="cancelbutton1">
+ <property name="label" translatable="yes">_Cancel</property>
<property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="show-close-button">False</property>
- <child>
- <object class="GtkButton" id="cancelbutton1">
- <property name="label" translatable="yes">_Cancel</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="can_default">True</property>
- <property name="receives_default">False</property>
- <property name="use_underline">True</property>
- <property name="valign">center</property>
- <style>
- <class name="text-button"/>
- </style>
- </object>
- <packing>
- <property name="pack_type">start</property>
- </packing>
- </child>
- <child>
- <object class="GtkButton" id="add_button">
- <property name="label" translatable="yes">_Add</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="can_default">True</property>
- <property name="receives_default">False</property>
- <property name="use_underline">True</property>
- <property name="valign">center</property>
- <style>
- <class name="suggested-action"/>
- <class name="text-button"/>
- </style>
- </object>
- <packing>
- <property name="pack_type">end</property>
- </packing>
- </child>
+ <property name="can_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_underline">True</property>
+ <property name="valign">center</property>
+ </object>
+ </child>
+ <child type="action">
+ <object class="GtkButton" id="add_button">
+ <property name="label" translatable="yes">_Add</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_underline">True</property>
+ <property name="valign">center</property>
</object>
</child>
<child internal-child="vbox">
@@ -128,7 +108,7 @@
</child>
<action-widgets>
<action-widget response="-6">cancelbutton1</action-widget>
- <action-widget response="-3">add_button</action-widget>
+ <action-widget response="-3" default="true">add_button</action-widget>
</action-widgets>
</object>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]