[gedit] Fix deprecated gtk+ margin left and right
- From: Sebastien Lafargue <slafargue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Fix deprecated gtk+ margin left and right
- Date: Wed, 2 Jul 2014 20:52:39 +0000 (UTC)
commit 4a33712cc740c8456284da03b13b329c7b6f780c
Author: Sebastien Lafargue <slafargue gnome org>
Date: Wed Jul 2 22:16:57 2014 +0200
Fix deprecated gtk+ margin left and right
_left is replaced by _start
_right is replaced by _end
gedit/gedit-statusbar.ui | 4 ++--
gedit/gedit-view-frame.c | 8 ++++----
plugins/externaltools/tools/outputpanel.ui | 2 +-
plugins/externaltools/tools/tools.ui | 4 ++--
plugins/pythonconsole/pythonconsole/config.ui | 4 ++--
plugins/snippets/snippets/snippets.ui | 4 ++--
plugins/time/gedit-time-dialog.ui | 4 ++--
plugins/time/gedit-time-setup-dialog.ui | 6 +++---
8 files changed, 18 insertions(+), 18 deletions(-)
---
diff --git a/gedit/gedit-statusbar.ui b/gedit/gedit-statusbar.ui
index c144121..2e79b43 100644
--- a/gedit/gedit-statusbar.ui
+++ b/gedit/gedit-statusbar.ui
@@ -4,9 +4,9 @@
<template class="GeditStatusbar" parent="GtkStatusbar">
<property name="can_focus">False</property>
<property name="margin_top">0</property>
- <property name="margin_right">0</property>
+ <property name="margin_end">0</property>
<property name="margin_bottom">0</property>
- <property name="margin_left">0</property>
+ <property name="margin_start">0</property>
<child>
<object class="GtkFrame" id="error_frame">
<property name="visible">False</property>
diff --git a/gedit/gedit-view-frame.c b/gedit/gedit-view-frame.c
index 02f3b41..a3d91bc 100644
--- a/gedit/gedit-view-frame.c
+++ b/gedit/gedit-view-frame.c
@@ -1484,13 +1484,13 @@ gedit_view_frame_init (GeditViewFrame *frame)
if (gtk_widget_get_direction (GTK_WIDGET (frame->priv->revealer)) == GTK_TEXT_DIR_LTR)
{
- gtk_widget_set_margin_right (GTK_WIDGET (frame->priv->revealer),
- SEARCH_POPUP_MARGIN);
+ gtk_widget_set_margin_end (GTK_WIDGET (frame->priv->revealer),
+ SEARCH_POPUP_MARGIN);
}
else
{
- gtk_widget_set_margin_left (GTK_WIDGET (frame->priv->revealer),
- SEARCH_POPUP_MARGIN);
+ gtk_widget_set_margin_start (GTK_WIDGET (frame->priv->revealer),
+ SEARCH_POPUP_MARGIN);
}
g_signal_connect (doc,
diff --git a/plugins/externaltools/tools/outputpanel.ui b/plugins/externaltools/tools/outputpanel.ui
index a4297a4..4c163c2 100644
--- a/plugins/externaltools/tools/outputpanel.ui
+++ b/plugins/externaltools/tools/outputpanel.ui
@@ -33,7 +33,7 @@
<property name="valign">end</property>
<property name="halign">end</property>
<property name="margin_bottom">2</property>
- <property name="margin_right">2</property>
+ <property name="margin_end">2</property>
<property name="tooltip_text" translatable="yes">Stop Tool</property>
<signal name="clicked" handler="on_stop_clicked" swapped="no"/>
<child>
diff --git a/plugins/externaltools/tools/tools.ui b/plugins/externaltools/tools/tools.ui
index ec2d70e..a3f0ab1 100644
--- a/plugins/externaltools/tools/tools.ui
+++ b/plugins/externaltools/tools/tools.ui
@@ -273,8 +273,8 @@
<object class="GtkGrid" id="tool-grid">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="margin_left">6</property>
- <property name="margin_right">6</property>
+ <property name="margin_start">6</property>
+ <property name="margin_end">6</property>
<property name="margin_top">6</property>
<property name="margin_bottom">6</property>
<property name="row_spacing">6</property>
diff --git a/plugins/pythonconsole/pythonconsole/config.ui b/plugins/pythonconsole/pythonconsole/config.ui
index f628f3f..4c0a2cb 100644
--- a/plugins/pythonconsole/pythonconsole/config.ui
+++ b/plugins/pythonconsole/pythonconsole/config.ui
@@ -17,8 +17,8 @@
<object class="GtkGrid" id="grid">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="margin_left">12</property>
- <property name="margin_right">12</property>
+ <property name="margin_start">12</property>
+ <property name="margin_end">12</property>
<property name="margin_top">12</property>
<property name="margin_bottom">12</property>
<property name="row_spacing">6</property>
diff --git a/plugins/snippets/snippets/snippets.ui b/plugins/snippets/snippets/snippets.ui
index 7c19578..d6c7e3d 100644
--- a/plugins/snippets/snippets/snippets.ui
+++ b/plugins/snippets/snippets/snippets.ui
@@ -210,8 +210,8 @@
<object class="GtkBox" id="vbox1">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="margin_left">6</property>
- <property name="margin_right">6</property>
+ <property name="margin_start">6</property>
+ <property name="margin_end">6</property>
<property name="margin_top">6</property>
<property name="margin_bottom">6</property>
<property name="orientation">vertical</property>
diff --git a/plugins/time/gedit-time-dialog.ui b/plugins/time/gedit-time-dialog.ui
index a63b24c..6733cd6 100644
--- a/plugins/time/gedit-time-dialog.ui
+++ b/plugins/time/gedit-time-dialog.ui
@@ -43,7 +43,7 @@
<property name="height_request">180</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="margin_left">12</property>
+ <property name="margin_start">12</property>
<property name="margin_bottom">8</property>
<property name="shadow_type">in</property>
<child>
@@ -89,7 +89,7 @@
<property name="hexpand">True</property>
<property name="invisible_char">●</property>
<property name="text" translatable="yes">%d/%m/%Y %H:%M:%S</property>
- <property name="margin_left">6</property>
+ <property name="margin_start">6</property>
</object>
<packing>
<property name="left_attach">1</property>
diff --git a/plugins/time/gedit-time-setup-dialog.ui b/plugins/time/gedit-time-setup-dialog.ui
index 9aa45d2..862d6f5 100644
--- a/plugins/time/gedit-time-setup-dialog.ui
+++ b/plugins/time/gedit-time-setup-dialog.ui
@@ -69,7 +69,7 @@
<object class="GtkGrid" id="grid1">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="margin_left">12</property>
+ <property name="margin_start">12</property>
<child>
<object class="GtkRadioButton" id="always_prompt">
<property name="label" translatable="yes">_Prompt for a format</property>
@@ -115,7 +115,7 @@
<object class="GtkScrolledWindow" id="formats_viewport">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="margin_left">12</property>
+ <property name="margin_start">12</property>
<property name="margin_bottom">8</property>
<property name="shadow_type">in</property>
<child>
@@ -166,7 +166,7 @@
<property name="hexpand">True</property>
<property name="invisible_char">●</property>
<property name="text" translatable="yes" comments="Translators: Use the more common date
format in your locale">%d/%m/%Y %H:%M:%S</property>
- <property name="margin_left">6</property>
+ <property name="margin_start">6</property>
</object>
<packing>
<property name="left_attach">1</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]