Created
January 7, 2015 13:35
-
-
Save nachanon/6a34fdd5ace9fc59fea9 to your computer and use it in GitHub Desktop.
Patch for MATE Power Manager 1.8.0 to fix an empty backlight adjustment popup dialog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From: Nachanon Vetjasit <nachanon@users.noreply.github.com> | |
Subject: Fix nonexistent GTKBuilder object request in media keys popup window | |
Bug: https://github.com/mate-desktop/mate-power-manager/issues/110 | |
--- a/src/gsd-media-keys-window.c | |
+++ b/src/gsd-media-keys-window.c | |
@@ -691,8 +691,8 @@ | |
if (!msd_osd_window_is_composited (MSD_OSD_WINDOW (window))) { | |
GtkBuilder *builder; | |
- const gchar *objects[] = {"acme_box", NULL}; | |
- GtkWidget *box; | |
+ const gchar *objects[] = {"acme_frame", NULL}; | |
+ GtkWidget *frame; | |
builder = gtk_builder_new (); | |
gtk_builder_add_objects_from_file (builder, | |
@@ -702,11 +702,11 @@ | |
window->priv->image = GTK_IMAGE (gtk_builder_get_object (builder, "acme_image")); | |
window->priv->progress = GTK_WIDGET (gtk_builder_get_object (builder, "acme_volume_progressbar")); | |
- box = GTK_WIDGET (gtk_builder_get_object (builder, "acme_box")); | |
+ frame = GTK_WIDGET (gtk_builder_get_object (builder, "acme_frame")); | |
- if (box != NULL) { | |
- gtk_container_add (GTK_CONTAINER (window), box); | |
- gtk_widget_show_all (box); | |
+ if (frame != NULL) { | |
+ gtk_container_add (GTK_CONTAINER (window), frame); | |
+ gtk_widget_show_all (frame); | |
} | |
/* The builder needs to stay alive until the window |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment