diff options
author | rbuj <[email protected]> | 2021-03-04 08:14:12 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-03-19 08:20:21 +0100 |
commit | 65212f4f0489bf3cc52332f2252c79f2b3d29f4c (patch) | |
tree | 44ac3ee77c27fa71617908d599586de4e1bd8ff3 /capplets | |
parent | 57e08f3885e82d73a4e21137f2f88815c844ec60 (diff) | |
download | mate-control-center-65212f4f0489bf3cc52332f2252c79f2b3d29f4c.tar.bz2 mate-control-center-65212f4f0489bf3cc52332f2252c79f2b3d29f4c.tar.xz |
display: use gtk_builder_new_from_resource
Diffstat (limited to 'capplets')
-rw-r--r-- | capplets/display/xrandr-capplet.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/capplets/display/xrandr-capplet.c b/capplets/display/xrandr-capplet.c index 012d8936..3b0cb3d5 100644 --- a/capplets/display/xrandr-capplet.c +++ b/capplets/display/xrandr-capplet.c @@ -2435,15 +2435,7 @@ run_application (App *app) GtkWidget *align; GError *error = NULL; - builder = gtk_builder_new (); - - if (gtk_builder_add_from_resource (builder, "/org/mate/mcc/display/display-capplet.ui", &error) == 0) - { - g_warning ("Could not parse UI definition: %s", error->message); - g_error_free (error); - g_object_unref (builder); - return; - } + builder = gtk_builder_new_from_resource ("/org/mate/mcc/display/display-capplet.ui"); app->screen = mate_rr_screen_new (gdk_screen_get_default (), &error); g_signal_connect (app->screen, "changed", G_CALLBACK (on_screen_changed), app); |