[gtk+] GtkColorEditor: Stop using deprecated API
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkColorEditor: Stop using deprecated API
- Date: Thu, 2 Oct 2014 04:38:19 +0000 (UTC)
commit d26c8e0536686af3b056b23eb504e28900cc5744
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Oct 2 00:11:02 2014 -0400
GtkColorEditor: Stop using deprecated API
This call was not needed at all.
gtk/gtkcoloreditor.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkcoloreditor.c b/gtk/gtkcoloreditor.c
index c647b8c..c202750 100644
--- a/gtk/gtkcoloreditor.c
+++ b/gtk/gtkcoloreditor.c
@@ -345,8 +345,6 @@ popup_draw (GtkWidget *popup,
static void
gtk_color_editor_init (GtkColorEditor *editor)
{
- GdkRGBA transparent = { 0, 0, 0, 0 };
-
editor->priv = gtk_color_editor_get_instance_private (editor);
editor->priv->use_alpha = TRUE;
@@ -370,8 +368,6 @@ gtk_color_editor_init (GtkColorEditor *editor)
gtk_style_context_add_class (gtk_widget_get_style_context (editor->priv->h_slider),
GTK_STYLE_CLASS_SCALE_HAS_MARKS_BELOW);
- gtk_widget_override_background_color (editor->priv->overlay, 0, &transparent);
-
/* Create the scaled popup adjustments manually here because connecting user data is not
* supported by template GtkBuilder xml (it would be possible to set this up in the xml
* but require 4 separate callbacks and would be rather ugly).
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]