diff options
author | rbuj <[email protected]> | 2020-12-21 13:36:03 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-01-07 18:13:47 +0100 |
commit | 46a1d4287e31459440326cacd3b81226d1f7a06f (patch) | |
tree | bfa7368ffc2ed30e2d314ec6e5dded692ca7ad8e /src | |
parent | 27562e1772fd4718c8e64458cf8af5987ae083d4 (diff) | |
download | mate-power-manager-46a1d4287e31459440326cacd3b81226d1f7a06f.tar.bz2 mate-power-manager-46a1d4287e31459440326cacd3b81226d1f7a06f.tar.xz |
Remove warning -Wunused-but-set-variable
Diffstat (limited to 'src')
-rw-r--r-- | src/gpm-statistics.c | 9 | ||||
-rw-r--r-- | src/gsd-media-keys-window.c | 5 |
2 files changed, 1 insertions, 13 deletions
diff --git a/src/gpm-statistics.c b/src/gpm-statistics.c index 70b99f6..490b49a 100644 --- a/src/gpm-statistics.c +++ b/src/gpm-statistics.c @@ -1202,8 +1202,6 @@ main (int argc, char *argv[]) gint page; gboolean checked; gchar *last_device = NULL; - guint retval; - GError *error = NULL; const GOptionEntry options[] = { { "device", '\0', 0, G_OPTION_ARG_STRING, &last_device, @@ -1242,12 +1240,7 @@ main (int argc, char *argv[]) settings = g_settings_new (GPM_SETTINGS_SCHEMA); /* get UI */ - builder = gtk_builder_new (); - retval = gtk_builder_add_from_resource (builder, "/org/mate/powermanager/statistics/gpm-statistics.ui", &error); - - if (error) { - g_error ("failed to load ui: %s", error->message); - } + builder = gtk_builder_new_from_resource ("/org/mate/powermanager/statistics/gpm-statistics.ui"); /* add history graph */ box = GTK_BOX (gtk_builder_get_object (builder, "hbox_history")); diff --git a/src/gsd-media-keys-window.c b/src/gsd-media-keys-window.c index 86c3fbd..f4a82f6 100644 --- a/src/gsd-media-keys-window.c +++ b/src/gsd-media-keys-window.c @@ -648,12 +648,7 @@ msd_media_keys_window_class_init (MsdMediaKeysWindowClass *klass) static void msd_media_keys_window_init (MsdMediaKeysWindow *window) { - GdkScreen *screen; - window->priv = msd_media_keys_window_get_instance_private (window); - - screen = gtk_widget_get_screen (GTK_WIDGET (window)); - if (!msd_osd_window_is_composited (MSD_OSD_WINDOW (window))) { GtkBuilder *builder; const gchar *objects[] = {"acme_box", NULL}; |