diff options
author | zhuyaliang <[email protected]> | 2021-07-18 08:46:46 +0800 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2021-07-19 15:30:33 -0400 |
commit | 81dacb6e8cdbc8e9a505140fb83a9653e368b5bb (patch) | |
tree | 13cd23895c89993e710493574765a4dc700faf3f /tools/mate-color-select.c | |
parent | 4b92d782d84f9bf543a1661218e333b27c43b0d0 (diff) | |
download | mate-desktop-81dacb6e8cdbc8e9a505140fb83a9653e368b5bb.tar.bz2 mate-desktop-81dacb6e8cdbc8e9a505140fb83a9653e368b5bb.tar.xz |
Fix compilation warning
Diffstat (limited to 'tools/mate-color-select.c')
-rw-r--r-- | tools/mate-color-select.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/mate-color-select.c b/tools/mate-color-select.c index b9c44b6..c222aa8 100644 --- a/tools/mate-color-select.c +++ b/tools/mate-color-select.c @@ -29,7 +29,7 @@ #include <libmate-desktop/mate-colorseldialog.h> #include <libmate-desktop/mate-colorsel.h> -gboolean +static gboolean copy_color (GtkWidget *widget, GdkEvent *event, MateColorSelectionDialog *color_dialog) { GdkColor color; @@ -70,13 +70,13 @@ main (int argc, char **argv) widget = gtk_button_new_with_mnemonic (_("_Copy")); image = gtk_image_new_from_icon_name ("edit-copy", GTK_ICON_SIZE_BUTTON); gtk_button_set_image (GTK_BUTTON (widget), image); - gtk_container_add (GTK_CONTAINER (gtk_dialog_get_action_area (GTK_DIALOG (color_dialog))), widget); + gtk_dialog_add_action_widget (GTK_DIALOG (color_dialog), widget, GTK_RESPONSE_ACCEPT); g_signal_connect (widget, "button-release-event", G_CALLBACK (copy_color), color_dialog); widget = gtk_button_new_with_mnemonic (_("_Close")); image = gtk_image_new_from_icon_name ("window-close", GTK_ICON_SIZE_BUTTON); gtk_button_set_image (GTK_BUTTON (widget), image); - gtk_container_add (GTK_CONTAINER (gtk_dialog_get_action_area (GTK_DIALOG (color_dialog))), widget); + gtk_dialog_add_action_widget (GTK_DIALOG (color_dialog), widget, GTK_RESPONSE_CLOSE); g_signal_connect (widget, "button-release-event", gtk_main_quit, NULL); gtk_widget_show_all (color_dialog); |