[libhandy/tab-fixes: 9/9] tab-box: A small cleanup
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy/tab-fixes: 9/9] tab-box: A small cleanup
- Date: Wed, 10 Feb 2021 08:51:15 +0000 (UTC)
commit 315fd442b81f1fea554c7091028309cba575114d
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Mon Feb 8 17:26:53 2021 +0500
tab-box: A small cleanup
src/hdy-tab-box.c | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
---
diff --git a/src/hdy-tab-box.c b/src/hdy-tab-box.c
index 30d0b671..42b9c299 100644
--- a/src/hdy-tab-box.c
+++ b/src/hdy-tab-box.c
@@ -1583,17 +1583,11 @@ appear_animation_value_cb (gdouble value,
gpointer user_data)
{
TabInfo *info = user_data;
- GtkWidget *parent;
-
- if (!GTK_IS_WIDGET (info->tab)) {
- info->appear_progress = value;
- return;
- }
-
- parent = gtk_widget_get_parent (GTK_WIDGET (info->tab));
info->appear_progress = value;
- gtk_widget_queue_resize (parent);
+
+ if (GTK_IS_WIDGET (info->tab))
+ gtk_widget_queue_resize (GTK_WIDGET (info->tab));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]