diff options
author | Monsta <[email protected]> | 2015-12-12 23:14:17 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-01-11 14:05:07 +0300 |
commit | cbb995375f1b97679fd42090e31277666249cc84 (patch) | |
tree | 46f1d7dcbbb63837e2ddfe8013bb756d01b72fdb /src/callbacks.cpp | |
parent | 6a9264b25f20fe81d837217a6d4875d4e594983f (diff) | |
download | mate-system-monitor-cbb995375f1b97679fd42090e31277666249cc84.tar.bz2 mate-system-monitor-cbb995375f1b97679fd42090e31277666249cc84.tar.xz |
drop GTK+2 code and --with-gtk build option
Diffstat (limited to 'src/callbacks.cpp')
-rw-r--r-- | src/callbacks.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/callbacks.cpp b/src/callbacks.cpp index bb18e8b..87e6bdf 100644 --- a/src/callbacks.cpp +++ b/src/callbacks.cpp @@ -250,7 +250,6 @@ cb_end_process_button_pressed (GtkButton *button, gpointer data) static void change_settings_color(GSettings *settings, const char *key, GSMColorButton *cp) { -#if GTK_CHECK_VERSION(3,0,0) GdkRGBA c; char *color; @@ -258,14 +257,6 @@ static void change_settings_color(GSettings *settings, const char *key, color = gdk_rgba_to_string (&c); g_settings_set_string (settings, key, color); g_free (color); -#else - GdkColor c; - char color[24]; /* color should be 1 + 3*4 + 1 = 15 chars -> 24 */ - - gsm_color_button_get_color(cp, &c); - g_snprintf(color, sizeof color, "#%04x%04x%04x", c.red, c.green, c.blue); - g_settings_set_string (settings, key, color); -#endif } |