[gnome-builder] pnl: don't add/remove class in draw handler
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] pnl: don't add/remove class in draw handler
- Date: Thu, 28 Apr 2016 06:53:00 +0000 (UTC)
commit 41d015486e432318f69f4997446f89747b5c8ed2
Author: Christian Hergert <chergert redhat com>
Date: Wed Apr 27 23:48:27 2016 -0700
pnl: don't add/remove class in draw handler
This causes a bunch of idle sizer operations to be queued, so we will just
avoid it altogether until we can have css nodes for the handles.
contrib/pnl/pnl-dock-bin.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/contrib/pnl/pnl-dock-bin.c b/contrib/pnl/pnl-dock-bin.c
index 4386cc4..34f5498 100644
--- a/contrib/pnl/pnl-dock-bin.c
+++ b/contrib/pnl/pnl-dock-bin.c
@@ -1378,8 +1378,6 @@ pnl_dock_bin_draw (GtkWidget *widget,
style_context = gtk_widget_get_style_context (widget);
- gtk_style_context_add_class (style_context, GTK_STYLE_CLASS_PANE_SEPARATOR);
-
for (i = 0; i < PNL_DOCK_BIN_CHILD_CENTER; i++)
{
PnlDockBinChild *child = &priv->children [i];
@@ -1435,8 +1433,6 @@ pnl_dock_bin_draw (GtkWidget *widget,
}
}
- gtk_style_context_remove_class (style_context, GTK_STYLE_CLASS_PANE_SEPARATOR);
-
return ret;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]