From 8c19823f0b4d6fce9676bc6cdca4bb2edf44ce58 Mon Sep 17 00:00:00 2001 From: Oz N Tiram Date: Tue, 14 Jun 2016 15:08:11 +0200 Subject: Modify glade file for the new glade format and use it for gtk3 * Add glade ui for gtk+3 * Remove usage of things like GTKHBox, GTKHButtonBox and other deprecated widgets --- mate-screenshot/src/screenshot-dialog.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mate-screenshot/src') diff --git a/mate-screenshot/src/screenshot-dialog.c b/mate-screenshot/src/screenshot-dialog.c index 7c5fae6d..5f5fd098 100644 --- a/mate-screenshot/src/screenshot-dialog.c +++ b/mate-screenshot/src/screenshot-dialog.c @@ -234,7 +234,12 @@ screenshot_dialog_new (GdkPixbuf *screenshot, dialog = g_new0 (ScreenshotDialog, 1); dialog->ui = gtk_builder_new (); +#if GTK_CHECK_VERSION (3, 0, 0) + res = gtk_builder_add_from_file (dialog->ui, UIDIR "/mate-screenshot-gtk3.ui", &error); +#else res = gtk_builder_add_from_file (dialog->ui, UIDIR "/mate-screenshot.ui", &error); +#endif + dialog->screenshot = screenshot; if (res == 0) -- cgit v1.2.1