[meld] Add labels to sizegroup to get better visual dialogue-wide alignment
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] Add labels to sizegroup to get better visual dialogue-wide alignment
- Date: Sun, 13 Jun 2010 01:09:31 +0000 (UTC)
commit dd18ee2741b00cba0d95b3a08a65f723f0c45097
Author: Kai Willadsen <kai willadsen gmail com>
Date: Fri Apr 30 17:17:25 2010 +1000
Add labels to sizegroup to get better visual dialogue-wide alignment
data/ui/preferences.glade | 2 ++
meld/preferences.py | 5 +++++
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/data/ui/preferences.glade b/data/ui/preferences.glade
index cab5ad7..46102f6 100644
--- a/data/ui/preferences.glade
+++ b/data/ui/preferences.glade
@@ -80,6 +80,7 @@
<child>
<widget class="GtkLabel" id="label1">
<property name="visible">True</property>
+ <property name="xalign">0</property>
<property name="label" translatable="yes">_Editor font:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">fontpicker</property>
@@ -372,6 +373,7 @@
<child>
<widget class="GtkLabel" id="label2">
<property name="visible">True</property>
+ <property name="xalign">0</property>
<property name="label" translatable="yes">Edito_r command:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">custom_edit_command_entry</property>
diff --git a/meld/preferences.py b/meld/preferences.py
index 9e48207..bc32feb 100644
--- a/meld/preferences.py
+++ b/meld/preferences.py
@@ -151,6 +151,11 @@ class PreferencesDialog(gnomeglade.Component):
self.checkbutton_split_words.set_active(False)
self.checkbutton_wrap_text.set_active(True)
self.checkbutton_supply_newline.set_active( self.prefs.supply_newline )
+
+ size_group = gtk.SizeGroup(gtk.SIZE_GROUP_HORIZONTAL)
+ size_group.add_widget(self.label1)
+ size_group.add_widget(self.label2)
+ size_group.add_widget(self.label16)
use_default = self.prefs.edit_command_type == "internal" or \
self.prefs.edit_command_type == "gnome"
self.system_editor_checkbutton.set_active(use_default)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]