[gtk+] inspector: Always show clip
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: Always show clip
- Date: Thu, 17 Dec 2015 00:26:27 +0000 (UTC)
commit 117ab5092294b98a8f0a7385bd377aed5bfdbad3
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Dec 16 19:24:43 2015 -0500
inspector: Always show clip
It is less confusing than hiding it sometimes.
gtk/inspector/misc-info.c | 16 +++-------------
1 files changed, 3 insertions(+), 13 deletions(-)
---
diff --git a/gtk/inspector/misc-info.c b/gtk/inspector/misc-info.c
index e65ff65..84d0754 100644
--- a/gtk/inspector/misc-info.c
+++ b/gtk/inspector/misc-info.c
@@ -147,19 +147,9 @@ allocation_changed (GtkWidget *w, GdkRectangle *allocation, GtkInspectorMiscInfo
gtk_widget_get_clip (w, &clip);
- if (clip.width == gtk_widget_get_allocated_width (w) &&
- clip.height == gtk_widget_get_allocated_height (w))
- {
- gtk_widget_hide (sl->priv->clip_area_row);
- }
- else
- {
- gtk_widget_show (sl->priv->clip_area_row);
-
- size_label = g_strdup_printf ("%d × %d", clip.width, clip.height);
- gtk_label_set_label (GTK_LABEL (sl->priv->clip_area), size_label);
- g_free (size_label);
- }
+ size_label = g_strdup_printf ("%d × %d", clip.width, clip.height);
+ gtk_label_set_label (GTK_LABEL (sl->priv->clip_area), size_label);
+ g_free (size_label);
class = G_ENUM_CLASS (g_type_class_ref (GTK_TYPE_SIZE_REQUEST_MODE));
value = g_enum_get_value (class, gtk_widget_get_request_mode (w));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]