summaryrefslogtreecommitdiff
path: root/netspeed/src
diff options
context:
space:
mode:
Diffstat (limited to 'netspeed/src')
-rw-r--r--netspeed/src/netspeed.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/netspeed/src/netspeed.c b/netspeed/src/netspeed.c
index cd3bf909..4742b7c7 100644
--- a/netspeed/src/netspeed.c
+++ b/netspeed/src/netspeed.c
@@ -30,7 +30,6 @@
#include <glib.h>
#include <glib/gi18n.h>
#include <gio/gio.h>
-#include <libmate-desktop/mate-colorbutton.h>
#include "backend.h"
@@ -1125,13 +1124,13 @@ da_expose_event(GtkWidget *widget, GdkEventExpose *event, gpointer data)
}
static void
-incolor_changed_cb (MateColorButton *cb, gpointer data)
+incolor_changed_cb (GtkColorButton *cb, gpointer data)
{
MateNetspeedApplet *applet = (MateNetspeedApplet*)data;
gchar *color;
GdkColor clr;
- mate_color_button_get_color (cb, &clr);
+ gtk_color_button_get_color (cb, &clr);
applet->in_color = clr;
color = g_strdup_printf ("#%04x%04x%04x", clr.red, clr.green, clr.blue);
@@ -1140,13 +1139,13 @@ incolor_changed_cb (MateColorButton *cb, gpointer data)
}
static void
-outcolor_changed_cb (MateColorButton *cb, gpointer data)
+outcolor_changed_cb (GtkColorButton *cb, gpointer data)
{
MateNetspeedApplet *applet = (MateNetspeedApplet*)data;
gchar *color;
GdkColor clr;
- mate_color_button_get_color (cb, &clr);
+ gtk_color_button_get_color (cb, &clr);
applet->out_color = clr;
color = g_strdup_printf ("#%04x%04x%04x", clr.red, clr.green, clr.blue);
@@ -1227,11 +1226,11 @@ showinfo_cb(GtkAction *action, gpointer data)
incolor_label = gtk_label_new_with_mnemonic(_("_In graph color"));
outcolor_label = gtk_label_new_with_mnemonic(_("_Out graph color"));
- incolor_sel = mate_color_button_new ();
- outcolor_sel = mate_color_button_new ();
+ incolor_sel = gtk_color_button_new ();
+ outcolor_sel = gtk_color_button_new ();
- mate_color_button_set_color (MATE_COLOR_BUTTON (incolor_sel), &applet->in_color);
- mate_color_button_set_color (MATE_COLOR_BUTTON (outcolor_sel), &applet->out_color);
+ gtk_color_button_set_color (GTK_COLOR_BUTTON (incolor_sel), &applet->in_color);
+ gtk_color_button_set_color (GTK_COLOR_BUTTON (outcolor_sel), &applet->out_color);
gtk_label_set_mnemonic_widget(GTK_LABEL(incolor_label), incolor_sel);
gtk_label_set_mnemonic_widget(GTK_LABEL(outcolor_label), outcolor_sel);