[gnome-photos] dlna-renderers-dialog: Adapt to GTK+ 3.9.10 API changes
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] dlna-renderers-dialog: Adapt to GTK+ 3.9.10 API changes
- Date: Thu, 1 Aug 2013 15:20:03 +0000 (UTC)
commit f0b9f17bdb10feced0fa8bc8889127a6b7afb329
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Aug 1 16:46:26 2013 +0200
dlna-renderers-dialog: Adapt to GTK+ 3.9.10 API changes
The new APIs related to binding widgets from templates changed names
between 3.9.8 and 3.9.10.
Update accordingly and bump the version required at configure time.
https://bugzilla.gnome.org/show_bug.cgi?id=705294
configure.ac | 2 +-
src/photos-dlna-renderers-dialog.c | 8 +++-----
2 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9d8466a..30fa911 100644
--- a/configure.ac
+++ b/configure.ac
@@ -28,7 +28,7 @@ EXEMPI_MIN_VERSION=1.99.5
GLIB_MIN_VERSION=2.35.1
GOA_MIN_VERSION=3.8.0
GRILO_MIN_VERSION=0.2.6
-GTK_MIN_VERSION=3.9.4
+GTK_MIN_VERSION=3.9.10
LIBEXIF_MIN_VERSION=0.6.14
LIBRSVG_MIN_VERSION=2.26.0
diff --git a/src/photos-dlna-renderers-dialog.c b/src/photos-dlna-renderers-dialog.c
index d859508..b2a4309 100644
--- a/src/photos-dlna-renderers-dialog.c
+++ b/src/photos-dlna-renderers-dialog.c
@@ -54,7 +54,7 @@ enum
};
-G_DEFINE_TYPE (PhotosDlnaRenderersDialog, photos_dlna_renderers_dialog, GTK_TYPE_DIALOG);
+G_DEFINE_TYPE_WITH_PRIVATE (PhotosDlnaRenderersDialog, photos_dlna_renderers_dialog, GTK_TYPE_DIALOG);
static void
@@ -271,10 +271,8 @@ photos_dlna_renderers_dialog_class_init (PhotosDlnaRenderersDialogClass *class)
gtk_widget_class_set_template_from_resource (widget_class,
"/org/gnome/photos/dlna-renderers-dialog.ui");
- gtk_widget_class_bind_child (widget_class, PhotosDlnaRenderersDialogPrivate, listbox);
- gtk_widget_class_bind_callback (widget_class, photos_dlna_renderers_dialog_row_activated_cb);
-
- g_type_class_add_private (class, sizeof (PhotosDlnaRenderersDialogPrivate));
+ gtk_widget_class_bind_template_child_private (widget_class, PhotosDlnaRenderersDialog, listbox);
+ gtk_widget_class_bind_template_callback (widget_class, photos_dlna_renderers_dialog_row_activated_cb);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]