diff options
-rwxr-xr-x | bin/ui-rules-enforcer.py | 16 | ||||
-rw-r--r-- | chart2/uiconfig/ui/sidebartype.ui | 1 | ||||
-rw-r--r-- | chart2/uiconfig/ui/tp_ChartType.ui | 1 |
3 files changed, 16 insertions, 2 deletions
diff --git a/bin/ui-rules-enforcer.py b/bin/ui-rules-enforcer.py index 6fec6293244e..5079d8e67ce1 100755 --- a/bin/ui-rules-enforcer.py +++ b/bin/ui-rules-enforcer.py @@ -294,6 +294,21 @@ def remove_label_pad(current): if ypad != None: current.remove(ypad) +def remove_label_angle(current): + angle = None + islabel = current.get('class') == "GtkLabel" + for child in current: + remove_label_angle(child) + if not islabel: + continue + if child.tag == "property": + attributes = child.attrib + if attributes.get("name") == "angle": + angle = child + + if angle != None: + current.remove(angle) + def remove_track_visited_links(current): track_visited_links = None islabel = current.get('class') == "GtkLabel" @@ -576,6 +591,7 @@ remove_spin_button_input_purpose(root) remove_spin_button_max_length(root) remove_track_visited_links(root) remove_label_pad(root) +remove_label_angle(root) remove_expander_label_fill(root) remove_expander_spacing(root) enforce_menubutton_indicator_consistency(root) diff --git a/chart2/uiconfig/ui/sidebartype.ui b/chart2/uiconfig/ui/sidebartype.ui index ae410375d1c0..686feacea397 100644 --- a/chart2/uiconfig/ui/sidebartype.ui +++ b/chart2/uiconfig/ui/sidebartype.ui @@ -126,7 +126,6 @@ <property name="label" translatable="yes" context="sidebartype|shapeft">Sh_ape</property> <property name="use_underline">True</property> <property name="mnemonic_widget">shape</property> - <property name="angle">0.02</property> <property name="xalign">0</property> </object> <packing> diff --git a/chart2/uiconfig/ui/tp_ChartType.ui b/chart2/uiconfig/ui/tp_ChartType.ui index a7cafb14e71b..68decb08f0d7 100644 --- a/chart2/uiconfig/ui/tp_ChartType.ui +++ b/chart2/uiconfig/ui/tp_ChartType.ui @@ -173,7 +173,6 @@ <property name="label" translatable="yes" context="tp_ChartType|shapeft">Sh_ape</property> <property name="use-underline">True</property> <property name="mnemonic-widget">shape</property> - <property name="angle">0.02</property> <property name="xalign">0</property> </object> <packing> |