[libhandy/tabs: 20/62] tab: Don't have natural width
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy/tabs: 20/62] tab: Don't have natural width
- Date: Sat, 12 Sep 2020 19:27:43 +0000 (UTC)
commit 423b37d00933cc708d81f8a91c247d4c182960e0
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sun Sep 6 03:21:11 2020 +0500
tab: Don't have natural width
Looks like it causes problems for dnd icon
src/hdy-tab.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/src/hdy-tab.c b/src/hdy-tab.c
index 993aa960..93e43f79 100644
--- a/src/hdy-tab.c
+++ b/src/hdy-tab.c
@@ -213,17 +213,12 @@ hdy_tab_measure (GtkWidget *widget,
{
HdyTab *self = HDY_TAB (widget);
- if (!self->child) {
+ if (!self->child || orientation == GTK_ORIENTATION_HORIZONTAL) {
if (minimum)
*minimum = 0;
if (natural)
*natural = 0;
- } else if (orientation == GTK_ORIENTATION_HORIZONTAL) {
- if (minimum)
- *minimum = 0;
-
- gtk_widget_get_preferred_width (self->child, NULL, natural);
} else {
gtk_widget_get_preferred_height (self->child, minimum, natural);
hdy_css_measure (widget, orientation, minimum, natural);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]