[snappy] Clean build warnings
- From: Luis de Bethencourt <luisbg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [snappy] Clean build warnings
- Date: Tue, 4 Dec 2012 19:59:08 +0000 (UTC)
commit 86d86d242d5950ad659141e53c5d908f634df2c8
Author: Luis de Bethencourt <luis debethencourt com>
Date: Tue Dec 4 14:59:00 2012 -0500
Clean build warnings
src/snappy.c | 1 -
src/user_interface.c | 12 ++++++------
2 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/src/snappy.c b/src/snappy.c
index 445846d..d0e810a 100644
--- a/src/snappy.c
+++ b/src/snappy.c
@@ -177,7 +177,6 @@ main (int argc, char *argv[])
gtk_clutter_init (&argc, &argv);
-
/* Try to find the path for our resources in case snappy was relocated */
data_dir = g_strdup(SNAPPY_DATA_DIR);
if (!g_file_test(data_dir, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR)) {
diff --git a/src/user_interface.c b/src/user_interface.c
index 453dd33..3f73bd2 100644
--- a/src/user_interface.c
+++ b/src/user_interface.c
@@ -476,7 +476,7 @@ load_controls (UserInterface * ui)
// Controls play toggle
ui->control_play_toggle = gtk_clutter_texture_new ();
- gtk_clutter_texture_set_from_pixbuf (ui->control_play_toggle,
+ gtk_clutter_texture_set_from_pixbuf (GTK_CLUTTER_TEXTURE (ui->control_play_toggle),
gdk_pixbuf_new_from_file (ui->pause_png, NULL), &error);
if (!ui->control_play_toggle && error)
g_debug ("Clutter error: %s", error->message);
@@ -560,7 +560,7 @@ load_controls (UserInterface * ui)
// Controls volume low
ui->volume_low = gtk_clutter_texture_new ();
- gtk_clutter_texture_set_from_pixbuf (ui->volume_low,
+ gtk_clutter_texture_set_from_pixbuf (GTK_CLUTTER_TEXTURE (ui->volume_low),
gdk_pixbuf_new_from_file (ui->volume_low_png, NULL), &error);
if (!ui->volume_low && error)
g_debug ("Clutter error: %s", error->message);
@@ -590,7 +590,7 @@ load_controls (UserInterface * ui)
// Controls volume high
ui->volume_high = gtk_clutter_texture_new ();
- gtk_clutter_texture_set_from_pixbuf (ui->volume_high,
+ gtk_clutter_texture_set_from_pixbuf (GTK_CLUTTER_TEXTURE (ui->volume_high),
gdk_pixbuf_new_from_file (ui->volume_high_png, NULL), &error);
if (!ui->volume_high && error)
g_debug ("Clutter error: %s", error->message);
@@ -885,10 +885,10 @@ static void
toggle_fullscreen (UserInterface * ui)
{
if (ui->fullscreen) {
- gtk_window_fullscreen (ui->window);
+ gtk_window_fullscreen (GTK_WINDOW (ui->window));
ui->fullscreen = FALSE;
} else {
- gtk_window_unfullscreen (ui->window);
+ gtk_window_unfullscreen (GTK_WINDOW (ui->window));
ui->fullscreen = TRUE;
}
}
@@ -1168,7 +1168,7 @@ interface_start (UserInterface * ui, gchar * uri)
clutter_stage_set_user_resizable (CLUTTER_STAGE (ui->stage), TRUE);
if (ui->fullscreen) {
- gtk_window_fullscreen (ui->window);
+ gtk_window_fullscreen (GTK_WINDOW (ui->window));
}
// Controls
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]