[gtk+] window: Don't draw titlebar background
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] window: Don't draw titlebar background
- Date: Mon, 18 Mar 2013 12:50:12 +0000 (UTC)
commit 4a2c3bbf3c23234e034f96ce5de7fbea65f39117
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Mar 18 08:32:27 2013 -0400
window: Don't draw titlebar background
GtkHeaderBar can do its own drawing, no need to do this
in gtk_window_draw.
gtk/gtkwindow.c | 21 ---------------------
1 files changed, 0 insertions(+), 21 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 843ef3c..d145501 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -8898,27 +8898,6 @@ gtk_window_draw (GtkWidget *widget,
gtk_style_context_restore (context);
}
- if (priv->title_box != NULL && gtk_widget_get_visible (priv->title_box))
- {
- gtk_style_context_save (context);
- gtk_style_context_add_class (context, "titlebar");
- gtk_widget_get_allocation (priv->title_box, &allocation);
-
- /* Why do these subtract ? */
- gtk_render_background (context, cr,
- allocation.x - title_border.left,
- allocation.y - title_border.top,
- allocation.width + title_border.left + title_border.right,
- allocation.height + title_border.top + title_border.left);
- gtk_render_frame (context, cr,
- allocation.x - title_border.left,
- allocation.y - title_border.top,
- allocation.width + title_border.left + title_border.right,
- allocation.height + title_border.top + title_border.left);
-
- gtk_style_context_restore (context);
- }
-
if (GTK_WIDGET_CLASS (gtk_window_parent_class)->draw)
ret = GTK_WIDGET_CLASS (gtk_window_parent_class)->draw (widget, cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]