summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-01-26 13:14:43 +0300
committermonsta <[email protected]>2016-01-26 13:14:43 +0300
commit6b552f7968a844990a1b920da01d8dafc5cc0c33 (patch)
tree5f1d3e452e46cfa4605b578b953dbe7b4179ae0b
parentebf820f112dd840b73183c693a832001f53b7bae (diff)
downloadcaja-6b552f7968a844990a1b920da01d8dafc5cc0c33.tar.bz2
caja-6b552f7968a844990a1b920da01d8dafc5cc0c33.tar.xz
fix a few build warnings
-rw-r--r--libcaja-private/caja-bookmark.c2
-rw-r--r--src/caja-file-management-properties.c8
-rw-r--r--src/caja-freedesktop-dbus.c2
3 files changed, 6 insertions, 6 deletions
diff --git a/libcaja-private/caja-bookmark.c b/libcaja-private/caja-bookmark.c
index 04a63242..940af551 100644
--- a/libcaja-private/caja-bookmark.c
+++ b/libcaja-private/caja-bookmark.c
@@ -480,7 +480,7 @@ caja_bookmark_set_icon_to_default (CajaBookmark *bookmark)
if (caja_bookmark_uri_known_not_to_exist (bookmark))
{
- icon = gtk_image_new_from_icon_name ("dialog-warning", GTK_ICON_SIZE_BUTTON);
+ icon = g_themed_icon_new ("dialog-warning");
emblem = g_emblem_new (icon);
emblemed_icon = g_emblemed_icon_new (folder, emblem);
diff --git a/src/caja-file-management-properties.c b/src/caja-file-management-properties.c
index 24283611..258eaca3 100644
--- a/src/caja-file-management-properties.c
+++ b/src/caja-file-management-properties.c
@@ -622,7 +622,7 @@ extension_about_clicked (GtkButton *button, Extension *ext)
{
MateAboutDialog *extension_about_dialog;
- extension_about_dialog = mate_about_dialog_new();
+ extension_about_dialog = (MateAboutDialog *) mate_about_dialog_new();
mate_about_dialog_set_program_name (extension_about_dialog, ext->name != NULL ? ext->name : ext->filename);
mate_about_dialog_set_comments (extension_about_dialog, ext->description);
mate_about_dialog_set_logo_icon_name (extension_about_dialog, ext->icon != NULL ? ext->icon : "system-run");
@@ -632,7 +632,7 @@ extension_about_clicked (GtkButton *button, Extension *ext)
mate_about_dialog_set_website (extension_about_dialog, ext->website);
gtk_window_set_title (GTK_WINDOW(extension_about_dialog), _("About Extension"));
gtk_dialog_run (GTK_DIALOG (extension_about_dialog));
- gtk_widget_destroy (extension_about_dialog);
+ gtk_widget_destroy (GTK_WIDGET (extension_about_dialog));
}
static void
@@ -642,7 +642,7 @@ extension_list_selection_changed (GtkTreeSelection *selection, GtkButton *about_
GtkTreeIter iter;
Extension *ext;
- gtk_widget_set_sensitive (about_button, FALSE);
+ gtk_widget_set_sensitive (GTK_WIDGET (about_button), FALSE);
if (extension_about_id > 0)
{
@@ -655,7 +655,7 @@ extension_list_selection_changed (GtkTreeSelection *selection, GtkButton *about_
gtk_tree_model_get (model, &iter, EXT_STRUCT_COLUMN, &ext, -1);
if (ext != NULL) {
- gtk_widget_set_sensitive (about_button, TRUE);
+ gtk_widget_set_sensitive (GTK_WIDGET (about_button), TRUE);
extension_about_id = g_signal_connect (about_button, "clicked", G_CALLBACK (extension_about_clicked), ext);
}
}
diff --git a/src/caja-freedesktop-dbus.c b/src/caja-freedesktop-dbus.c
index 1ce79c8f..79e6fd44 100644
--- a/src/caja-freedesktop-dbus.c
+++ b/src/caja-freedesktop-dbus.c
@@ -144,7 +144,7 @@ skeleton_handle_show_item_properties_cb (CajaFreedesktopFileManager1 *object,
file,
gdk_screen_get_default (),
NULL);
- fm_properties_window_present (files, window);
+ fm_properties_window_present (files, GTK_WIDGET (window));
g_object_unref (file);
}