[gedit] floating-slider: use the natural size
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] floating-slider: use the natural size
- Date: Sat, 20 Aug 2011 09:39:26 +0000 (UTC)
commit d109a2ec973aa1aa86a6d313b5a747fca241aac9
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sat Aug 20 11:40:20 2011 +0200
floating-slider: use the natural size
gedit/gedit-floating-slider.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gedit/gedit-floating-slider.c b/gedit/gedit-floating-slider.c
index 1ab37d7..6835f07 100644
--- a/gedit/gedit-floating-slider.c
+++ b/gedit/gedit-floating-slider.c
@@ -172,13 +172,13 @@ gedit_floating_slider_get_preferred_width (GtkWidget *widget,
gtk_widget_get_preferred_width (child, &child_min, &child_nat);
- priv->child_alloc.width = child_min;
+ priv->child_alloc.width = child_nat;
context = gtk_widget_get_style_context (widget);
gtk_style_context_get_padding (context, GTK_STATE_FLAG_NORMAL,
&padding);
- priv->widget_alloc.width = child_min + padding.left + padding.right;
+ priv->widget_alloc.width = child_nat + padding.left + padding.right;
}
@@ -215,13 +215,13 @@ gedit_floating_slider_get_preferred_height (GtkWidget *widget,
gtk_widget_get_preferred_height (child, &child_min, &child_nat);
- priv->child_alloc.height = child_min;
+ priv->child_alloc.height = child_nat;
context = gtk_widget_get_style_context (widget);
gtk_style_context_get_padding (context, GTK_STATE_FLAG_NORMAL,
&padding);
- priv->widget_alloc.height = child_min + padding.top + padding.bottom;
+ priv->widget_alloc.height = child_nat + padding.top + padding.bottom;
}
if (priv->orientation == GTK_ORIENTATION_HORIZONTAL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]