summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWolfgang Ulbrich <[email protected]>2015-12-13 16:30:40 +0100
committerWolfgang Ulbrich <[email protected]>2015-12-13 16:30:40 +0100
commitf78b6c9444c46c54440b8f6367d88f0e80e72a36 (patch)
tree3bde4b0024bd420907de5b47ac96a233e301b54a /src
parent77a6698715849b735d41b40c319936eea670ce3d (diff)
downloadmate-screensaver-f78b6c9444c46c54440b8f6367d88f0e80e72a36.tar.bz2
mate-screensaver-f78b6c9444c46c54440b8f6367d88f0e80e72a36.tar.xz
remove more unused variables
this avoid some build warnings
Diffstat (limited to 'src')
-rw-r--r--src/gs-listener-dbus.c3
-rw-r--r--src/mate-screensaver-preferences.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/gs-listener-dbus.c b/src/gs-listener-dbus.c
index 3a73612..ec0be3f 100644
--- a/src/gs-listener-dbus.c
+++ b/src/gs-listener-dbus.c
@@ -1005,7 +1005,6 @@ listener_dbus_remove_ref_entry (GSListener *listener,
{
DBusMessage *reply;
DBusError error;
- const char *sender;
guint32 cookie;
dbus_error_init (&error);
@@ -1034,7 +1033,7 @@ listener_dbus_remove_ref_entry (GSListener *listener,
g_error ("No memory");
/* FIXME: check sender is from same connection as entry */
- sender = dbus_message_get_sender (message);
+ dbus_message_get_sender (message);
listener_remove_ref_entry (listener, entry_type, cookie);
diff --git a/src/mate-screensaver-preferences.c b/src/mate-screensaver-preferences.c
index 19db7d5..62e9eaf 100644
--- a/src/mate-screensaver-preferences.c
+++ b/src/mate-screensaver-preferences.c
@@ -1552,7 +1552,6 @@ init_capplet (void)
GtkWidget *fullscreen_preview_window;
GtkWidget *fullscreen_preview_previous;
GtkWidget *fullscreen_preview_next;
- GtkWidget *fullscreen_preview_area;
GtkWidget *fullscreen_preview_close;
char *gtk_builder_file;
gdouble activate_delay;
@@ -1599,7 +1598,7 @@ init_capplet (void)
preview_button = GTK_WIDGET (gtk_builder_get_object (builder, "preview_button"));
gpm_button = GTK_WIDGET (gtk_builder_get_object (builder, "gpm_button"));
fullscreen_preview_window = GTK_WIDGET (gtk_builder_get_object (builder, "fullscreen_preview_window"));
- fullscreen_preview_area = GTK_WIDGET (gtk_builder_get_object (builder, "fullscreen_preview_area"));
+ GTK_WIDGET (gtk_builder_get_object (builder, "fullscreen_preview_area"));
fullscreen_preview_close = GTK_WIDGET (gtk_builder_get_object (builder, "fullscreen_preview_close"));
fullscreen_preview_previous = GTK_WIDGET (gtk_builder_get_object (builder, "fullscreen_preview_previous_button"));
fullscreen_preview_next = GTK_WIDGET (gtk_builder_get_object (builder, "fullscreen_preview_next_button"));