[xdg-user-dirs-gtk] xdg-gtk: port to GTK+ 3
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [xdg-user-dirs-gtk] xdg-gtk: port to GTK+ 3
- Date: Wed, 8 Feb 2012 05:13:46 +0000 (UTC)
commit 481f2eadd0642a39c43a9f9cccc6eb12d0a192db
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Feb 6 20:16:17 2012 -0500
xdg-gtk: port to GTK+ 3
Actually just a three lines patch.
configure.ac | 2 +-
update.c | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 1e1e0fe..bfae3a0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -24,7 +24,7 @@ GLIB_DEFINE_LOCALEDIR(GLIBLOCALEDIR)
IT_PROG_INTLTOOL([0.35.0])
-PKG_CHECK_MODULES(GTK, gtk+-2.0)
+PKG_CHECK_MODULES(GTK, gtk+-3.0)
AC_SUBST(GTK_CFLAGS)
AC_SUBST(GTK_LIBS)
diff --git a/update.c b/update.c
index f1975c4..85dcfca 100644
--- a/update.c
+++ b/update.c
@@ -167,8 +167,9 @@ update_locale (XdgDirEntry *old_entries)
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_NO);
- vbox = gtk_vbox_new (FALSE, 6);
- gtk_box_pack_start (GTK_BOX (GTK_MESSAGE_DIALOG (dialog)->label->parent), vbox, TRUE, TRUE, 0);
+ vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))),
+ vbox, TRUE, TRUE, 0);
gtk_widget_show (vbox);
scrolledwindow = gtk_scrolled_window_new (NULL, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]