summaryrefslogtreecommitdiff
path: root/cpufreq/src
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-04-08 11:27:17 +0200
committerraveit65 <[email protected]>2020-04-25 18:02:31 +0200
commit47928c3969e56bbfed6755a79096e48e61c36454 (patch)
tree4bfdfd68b00f35d6c865c37eec5a82d214c95d67 /cpufreq/src
parentd4b0c38f8292c7a10b9c126a1fa540f5733145b6 (diff)
downloadmate-applets-47928c3969e56bbfed6755a79096e48e61c36454.tar.bz2
mate-applets-47928c3969e56bbfed6755a79096e48e61c36454.tar.xz
Remove unused-function warnings
Diffstat (limited to 'cpufreq/src')
-rw-r--r--cpufreq/src/cpufreq-applet.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/cpufreq/src/cpufreq-applet.c b/cpufreq/src/cpufreq-applet.c
index bee5ddef..a93d5fea 100644
--- a/cpufreq/src/cpufreq-applet.c
+++ b/cpufreq/src/cpufreq-applet.c
@@ -280,24 +280,6 @@ cpufreq_applet_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
GTK_WIDGET_CLASS (cpufreq_applet_parent_class)->size_allocate (widget, allocation);
}
-static gint
-get_max_text_width (GtkWidget *widget,
- const char *text)
-{
- PangoContext *context;
- PangoLayout *layout;
- PangoRectangle logical_rect;
-
- context = gtk_widget_get_pango_context (widget);
- layout = pango_layout_new (context);
- pango_layout_set_text (layout, text, -1);
- pango_layout_get_pixel_extents (layout, NULL, &logical_rect);
-
- g_object_unref (layout);
-
- return logical_rect.width;
-}
-
static void
cpufreq_applet_menu_popup (CPUFreqApplet *applet,
guint32 time)
@@ -317,7 +299,7 @@ cpufreq_applet_menu_popup (CPUFreqApplet *applet,
if (!menu)
return;
-
+
/*Set up theme and transparency support*/
GtkWidget *toplevel = gtk_widget_get_toplevel (menu);
/* Fix any failures of compiz/other wm's to communicate with gtk for transparency */