summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-02-01 15:11:42 +0300
committermonsta <[email protected]>2016-02-01 15:11:42 +0300
commitb96ac2ad8eea693c9a2f2cfdb380d8cc58c449f6 (patch)
treed0ad983e177aea46334ac921bb279affd387795f
parentdf8328797dfb41b8a3727d967173961aa81f18f8 (diff)
downloadmate-desktop-b96ac2ad8eea693c9a2f2cfdb380d8cc58c449f6.tar.bz2
mate-desktop-b96ac2ad8eea693c9a2f2cfdb380d8cc58c449f6.tar.xz
mate-color-select: fix some build warnings
-rw-r--r--tools/mate-color-select.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/mate-color-select.c b/tools/mate-color-select.c
index 73af718..5b8d2a7 100644
--- a/tools/mate-color-select.c
+++ b/tools/mate-color-select.c
@@ -39,7 +39,7 @@ copy_color (GtkWidget *widget, GdkEvent *event, MateColorSelectionDialog *color
GdkColor color;
gchar *color_string;
- mate_color_selection_get_current_color (color_dialog->colorsel, &color);
+ mate_color_selection_get_current_color (MATE_COLOR_SELECTION (color_dialog->colorsel), &color);
g_object_get (color_dialog->colorsel, "hex-string", &color_string, NULL);
gtk_clipboard_set_text (gtk_clipboard_get (GDK_SELECTION_CLIPBOARD), color_string, -1);
@@ -52,6 +52,7 @@ int
main (int argc, char **argv)
{
GtkWidget *color_dialog = NULL;
+ GtkWidget *color_selection;
GtkWidget *widget;
mate_gettext (GETTEXT_PACKAGE, LOCALE_DIR, "UTF-8");
@@ -61,17 +62,18 @@ main (int argc, char **argv)
gtk_window_set_default_icon_name ("gtk-select-color");
color_dialog = mate_color_selection_dialog_new (_("MATE Color Selection"));
- mate_color_selection_set_has_palette (MATE_COLOR_SELECTION_DIALOG (color_dialog)->colorsel, TRUE);
+ color_selection = MATE_COLOR_SELECTION_DIALOG (color_dialog)->colorsel;
+ mate_color_selection_set_has_palette (MATE_COLOR_SELECTION (color_selection), TRUE);
/* quit signal */
g_signal_connect (color_dialog, "destroy", gtk_main_quit, NULL);
widget = gtk_button_new_from_stock (GTK_STOCK_COPY);
- gtk_container_add (gtk_dialog_get_action_area (GTK_DIALOG (color_dialog)), widget);
+ gtk_container_add (GTK_CONTAINER (gtk_dialog_get_action_area (GTK_DIALOG (color_dialog))), widget);
g_signal_connect (widget, "button-release-event", copy_color, color_dialog);
widget = gtk_button_new_from_stock (GTK_STOCK_CLOSE);
- gtk_container_add (gtk_dialog_get_action_area (GTK_DIALOG (color_dialog)), widget);
+ gtk_container_add (GTK_CONTAINER (gtk_dialog_get_action_area (GTK_DIALOG (color_dialog))), widget);
g_signal_connect (widget, "button-release-event", gtk_main_quit, NULL);
gtk_widget_show_all (color_dialog);