[gtk+] modifierstyle: Fix compile errors



commit c24742e7890caba218ff19d3acce4c1c8ffc1f0d
Author: Benjamin Otte <otte redhat com>
Date:   Tue Dec 6 18:01:57 2011 +0100

    modifierstyle: Fix compile errors
    
    Introduced in 7bd2446801ffd0fc2ac5cc98fcd675ac4f3935d6

 gtk/gtkmodifierstyle.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkmodifierstyle.c b/gtk/gtkmodifierstyle.c
index fd84cae..e26075c 100644
--- a/gtk/gtkmodifierstyle.c
+++ b/gtk/gtkmodifierstyle.c
@@ -157,7 +157,6 @@ modifier_style_set_color (GtkModifierStyle *style,
                           const GdkRGBA    *color)
 {
   GtkModifierStylePrivate *priv;
-  GdkRGBA *old_color;
 
   g_return_if_fail (GTK_IS_MODIFIER_STYLE (style));
 
@@ -171,7 +170,6 @@ modifier_style_set_color (GtkModifierStyle *style,
     gtk_style_properties_unset_property (priv->style, prop, state);
 
   g_signal_emit (style, signals[CHANGED], 0);
-  gdk_rgba_free (old_color);
 }
 
 void
@@ -199,7 +197,6 @@ _gtk_modifier_style_set_font (GtkModifierStyle           *style,
                               const PangoFontDescription *font_desc)
 {
   GtkModifierStylePrivate *priv;
-  PangoFontDescription *old_font;
 
   g_return_if_fail (GTK_IS_MODIFIER_STYLE (style));
 
@@ -212,9 +209,6 @@ _gtk_modifier_style_set_font (GtkModifierStyle           *style,
   else
     gtk_style_properties_unset_property (priv->style, "font", 0);
 
-  if (old_font)
-    pango_font_description_free (old_font);
-
   g_signal_emit (style, signals[CHANGED], 0);
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]