[gnome-panel] libgnome-panel: remove gp_applet_add_text_class



commit 9a33ae141419b7a9a22e20a0ededbd451819639e
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Jan 22 16:44:35 2018 +0200

    libgnome-panel: remove gp_applet_add_text_class

 libgnome-panel/gp-applet.c |   19 -------------------
 libgnome-panel/gp-applet.h |    3 ---
 2 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/libgnome-panel/gp-applet.c b/libgnome-panel/gp-applet.c
index c0ea2c1..04ef1ce 100644
--- a/libgnome-panel/gp-applet.c
+++ b/libgnome-panel/gp-applet.c
@@ -1071,22 +1071,3 @@ gp_applet_get_menu (GpApplet *applet)
 
   return gtk_menu_new_from_model (G_MENU_MODEL (object));
 }
-
-/**
- * gp_applet_add_text_class:
- * @applet: a #GpApplet
- * @widget: a #GtkWidget
- *
- * Use this function to add css class to widgets that are visible on panel
- * and shows text.
- */
-void
-gp_applet_add_text_class (GpApplet  *applet,
-                          GtkWidget *widget)
-{
-  GtkStyleContext *context;
-
-  context = gtk_widget_get_style_context (widget);
-
-  gtk_style_context_add_class (context, "gp-text-color");
-}
diff --git a/libgnome-panel/gp-applet.h b/libgnome-panel/gp-applet.h
index ff3ab70..bb885a5 100644
--- a/libgnome-panel/gp-applet.h
+++ b/libgnome-panel/gp-applet.h
@@ -111,9 +111,6 @@ void             gp_applet_setup_menu_from_resource (GpApplet           *applet,
 GAction         *gp_applet_menu_lookup_action       (GpApplet           *applet,
                                                      const gchar        *action_name);
 
-void             gp_applet_add_text_class           (GpApplet           *applet,
-                                                     GtkWidget          *widget);
-
 G_END_DECLS
 
 #endif


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