[gedit] prefs dialog: remove NO_SENSITIVITY flag and bind sensitivity to grid
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] prefs dialog: remove NO_SENSITIVITY flag and bind sensitivity to grid
- Date: Wed, 10 Jul 2013 16:36:43 +0000 (UTC)
commit effb6ce45390ac034238f8062ac44b09193e4b98
Author: Ignacio Casal Quinteiro <ignacio casal nice-software com>
Date: Wed Jul 10 18:36:11 2013 +0200
prefs dialog: remove NO_SENSITIVITY flag and bind sensitivity to grid
gedit/gedit-preferences-dialog.c | 6 ++++--
gedit/gedit-preferences-dialog.ui | 21 +++++++++++++--------
2 files changed, 17 insertions(+), 10 deletions(-)
---
diff --git a/gedit/gedit-preferences-dialog.c b/gedit/gedit-preferences-dialog.c
index c0d8ac4..55b91af 100644
--- a/gedit/gedit-preferences-dialog.c
+++ b/gedit/gedit-preferences-dialog.c
@@ -118,6 +118,7 @@ struct _GeditPreferencesDialogPrivate
/* Right margin */
GtkWidget *right_margin_checkbutton;
+ GtkWidget *right_margin_position_grid;
GtkWidget *right_margin_position_spinbutton;
/* Highlighting */
@@ -179,6 +180,7 @@ gedit_preferences_dialog_class_init (GeditPreferencesDialogClass *klass)
gtk_widget_class_bind_child (widget_class, GeditPreferencesDialogPrivate, notebook);
gtk_widget_class_bind_child (widget_class, GeditPreferencesDialogPrivate,
display_line_numbers_checkbutton);
gtk_widget_class_bind_child (widget_class, GeditPreferencesDialogPrivate, right_margin_checkbutton);
+ gtk_widget_class_bind_child (widget_class, GeditPreferencesDialogPrivate, right_margin_position_grid);
gtk_widget_class_bind_child (widget_class, GeditPreferencesDialogPrivate,
right_margin_position_spinbutton);
gtk_widget_class_bind_child (widget_class, GeditPreferencesDialogPrivate,
highlight_current_line_checkbutton);
gtk_widget_class_bind_child (widget_class, GeditPreferencesDialogPrivate,
bracket_matching_checkbutton);
@@ -367,14 +369,14 @@ setup_view_page (GeditPreferencesDialog *dlg)
G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
g_settings_bind (dlg->priv->editor,
GEDIT_SETTINGS_DISPLAY_RIGHT_MARGIN,
- dlg->priv->right_margin_position_spinbutton,
+ dlg->priv->right_margin_position_grid,
"sensitive",
G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
g_settings_bind (dlg->priv->editor,
GEDIT_SETTINGS_RIGHT_MARGIN_POSITION,
dlg->priv->right_margin_position_spinbutton,
"value",
- G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET | G_SETTINGS_BIND_NO_SENSITIVITY);
+ G_SETTINGS_BIND_GET | G_SETTINGS_BIND_SET);
g_settings_bind (dlg->priv->editor,
GEDIT_SETTINGS_AUTO_SAVE_INTERVAL,
dlg->priv->auto_save_spinbutton,
diff --git a/gedit/gedit-preferences-dialog.ui b/gedit/gedit-preferences-dialog.ui
index 209fb96..6989ca5 100644
--- a/gedit/gedit-preferences-dialog.ui
+++ b/gedit/gedit-preferences-dialog.ui
@@ -132,15 +132,20 @@
</packing>
</child>
<child>
- <object class="GtkSpinButton" id="right_margin_position_spinbutton">
+ <object class="GtkGrid" id="right_margin_position_grid">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="invisible_char">●</property>
- <property name="invisible_char_set">True</property>
- <property name="adjustment">adjustment1</property>
- <property name="climb_rate">1</property>
- <property name="snap_to_ticks">True</property>
- <property name="numeric">True</property>
+ <child>
+ <object class="GtkSpinButton" id="right_margin_position_spinbutton">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="invisible_char">●</property>
+ <property name="invisible_char_set">True</property>
+ <property name="adjustment">adjustment1</property>
+ <property name="climb_rate">1</property>
+ <property name="snap_to_ticks">True</property>
+ <property name="numeric">True</property>
+ </object>
+ </child>
</object>
<packing>
<property name="left_attach">1</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]