summaryrefslogtreecommitdiff
path: root/mate-screenshot/src
diff options
context:
space:
mode:
authorOz N Tiram <[email protected]>2016-06-14 15:08:11 +0200
committerraveit65 <[email protected]>2016-06-20 10:21:35 +0200
commit8c19823f0b4d6fce9676bc6cdca4bb2edf44ce58 (patch)
tree41635124b34ccb02f86426a8611e029ef8b84894 /mate-screenshot/src
parent61b55a552902715ceede1ab88d378b556f188ee1 (diff)
downloadmate-utils-8c19823f0b4d6fce9676bc6cdca4bb2edf44ce58.tar.bz2
mate-utils-8c19823f0b4d6fce9676bc6cdca4bb2edf44ce58.tar.xz
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
Diffstat (limited to 'mate-screenshot/src')
-rw-r--r--mate-screenshot/src/screenshot-dialog.c5
1 files changed, 5 insertions, 0 deletions
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)