[Xfce4-commits] [panel-plugins/xfce4-cpugraph-plugin] 02/02: Ignore deprecated functions

noreply at xfce.org noreply at xfce.org
Sat Jun 1 23:07:29 CEST 2019


This is an automated email from the git hooks/post-receive script.

a   n   d   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository panel-plugins/xfce4-cpugraph-plugin.

commit 7b4e9ebe4652ea6df9b0627e07fa4de86efbe415
Author: Andre Miranda <andreldm at xfce.org>
Date:   Sat Jun 1 18:07:09 2019 -0300

    Ignore deprecated functions
---
 panel-plugin/cpu.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/panel-plugin/cpu.c b/panel-plugin/cpu.c
index 915f228..30594e5 100644
--- a/panel-plugin/cpu.c
+++ b/panel-plugin/cpu.c
@@ -177,9 +177,11 @@ create_bars (CPUGraph *base)
         base->bars[i] = GTK_WIDGET (gtk_progress_bar_new ());
         /* Set bar colors */
         if (base->has_barcolor) {
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
             gtk_widget_override_background_color (base->bars[i], GTK_STATE_PRELIGHT, &base->colors[4]);
             gtk_widget_override_background_color (base->bars[i], GTK_STATE_SELECTED, &base->colors[4]);
             gtk_widget_override_color (base->bars[i], GTK_STATE_SELECTED, &base->colors[4]);
+G_GNUC_END_IGNORE_DEPRECATIONS
         }
 
         gtk_box_pack_end (GTK_BOX (base->box), base->bars[i], FALSE, FALSE, 0);
@@ -550,8 +552,10 @@ set_color (CPUGraph *base, guint number, GdkRGBA color)
 
     if (number == 0)
     {
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
         gtk_widget_override_background_color (base->draw_area, GTK_STATE_INSENSITIVE, &base->colors[0]);
         gtk_widget_override_background_color (base->draw_area, GTK_STATE_NORMAL, &base->colors[0]);
+G_GNUC_END_IGNORE_DEPRECATIONS
     }
 
     if (number == 4 && base->has_bars && base->has_barcolor)
@@ -560,10 +564,12 @@ set_color (CPUGraph *base, guint number, GdkRGBA color)
 
         for (i = 0; i < n; i++)
         {
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
             /* Set bar colors */
             gtk_widget_override_background_color (base->bars[i], GTK_STATE_PRELIGHT, &base->colors[4]);
             gtk_widget_override_background_color (base->bars[i], GTK_STATE_SELECTED, &base->colors[4]);
             gtk_widget_override_color (base->bars[i], GTK_STATE_SELECTED, &base->colors[4]);
+G_GNUC_END_IGNORE_DEPRECATIONS
         }
     }
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list