diff options
author | Stefano Karapetsas <[email protected]> | 2014-07-02 11:37:06 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-07-02 11:37:06 +0200 |
commit | b5ba5bb5a03e5880de0a3f44d2b699bed9a8ebfc (patch) | |
tree | ad4e64ca11562d4798761aae644b01352ea0b367 | |
parent | 1c49e3642bad900c438114c22767444cf6445130 (diff) | |
download | mate-desktop-b5ba5bb5a03e5880de0a3f44d2b699bed9a8ebfc.tar.bz2 mate-desktop-b5ba5bb5a03e5880de0a3f44d2b699bed9a8ebfc.tar.xz |
mate-color-select: Copy button available with GTK3 too
-rw-r--r-- | tools/mate-color-select.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/tools/mate-color-select.c b/tools/mate-color-select.c index 198c7df..7e30a76 100644 --- a/tools/mate-color-select.c +++ b/tools/mate-color-select.c @@ -33,7 +33,6 @@ bind_textdomain_codeset(package, codeset); \ textdomain(package); -#if !GTK_CHECK_VERSION (3, 0, 0) gboolean copy_color (GtkWidget *widget, GdkEvent *event, MateColorSelectionDialog *color_dialog) { @@ -42,13 +41,11 @@ copy_color (GtkWidget *widget, GdkEvent *event, MateColorSelectionDialog *color mate_color_selection_get_current_color (color_dialog->colorsel, &color); g_object_get (color_dialog->colorsel, "hex-string", &color_string, NULL); - g_print ("%s\n", color_string); gtk_clipboard_set_text (gtk_clipboard_get (GDK_SELECTION_CLIPBOARD), color_string, -1); g_free (color_string); } -#endif int main (int argc, char **argv) @@ -73,7 +70,6 @@ main (int argc, char **argv) /* quit signal */ g_signal_connect (color_dialog, "destroy", gtk_main_quit, NULL); -#if !GTK_CHECK_VERSION (3, 0, 0) widget = gtk_button_new_from_stock (GTK_STOCK_COPY); gtk_container_add (gtk_dialog_get_action_area (GTK_DIALOG (color_dialog)), widget); g_signal_connect (widget, "button-release-event", copy_color, color_dialog); @@ -81,7 +77,6 @@ main (int argc, char **argv) widget = gtk_button_new_from_stock (GTK_STOCK_CLOSE); gtk_container_add (gtk_dialog_get_action_area (GTK_DIALOG (color_dialog)), widget); g_signal_connect (widget, "button-release-event", gtk_main_quit, NULL); -#endif gtk_widget_show_all (color_dialog); gtk_widget_hide (MATE_COLOR_SELECTION_DIALOG (color_dialog)->ok_button); |