[gnome-shell] [StTooltip] Fix _get_preferred_width
- From: Colin Walters <walters src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-shell] [StTooltip] Fix _get_preferred_width
- Date: Thu, 12 Nov 2009 16:41:30 +0000 (UTC)
commit 263d738ef66a0f1fc55f58d5c7fb369066a55df3
Author: Colin Walters <walters verbum org>
Date: Wed Nov 11 16:22:22 2009 -0500
[StTooltip] Fix _get_preferred_width
It was ignoring the label width.
https://bugzilla.gnome.org/show_bug.cgi?id=600734
src/st/st-tooltip.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/src/st/st-tooltip.c b/src/st/st-tooltip.c
index 5232dbc..1fbec22 100644
--- a/src/st/st-tooltip.c
+++ b/src/st/st-tooltip.c
@@ -148,7 +148,6 @@ st_tooltip_get_preferred_width (ClutterActor *self,
{
StTooltipPrivate *priv = ST_TOOLTIP (self)->priv;
StThemeNode *theme_node = st_widget_get_theme_node (ST_WIDGET (self));
- gfloat min_label_w, natural_label_w;
gfloat label_height, arrow_height;
ClutterActor *arrow_image;
@@ -180,13 +179,8 @@ st_tooltip_get_preferred_width (ClutterActor *self,
{
clutter_actor_get_preferred_width (priv->label,
label_height,
- &min_label_w,
- &natural_label_w);
- }
- else
- {
- min_label_w = 0;
- natural_label_w = 0;
+ min_width_p,
+ natural_width_p);
}
st_theme_node_adjust_preferred_width (theme_node, min_width_p, natural_width_p);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]