[gnome-documents] lib: use GdStyledTextRenderer from shared libgd
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] lib: use GdStyledTextRenderer from shared libgd
- Date: Wed, 14 Nov 2012 17:39:32 +0000 (UTC)
commit 4efd51bf33b03983e4365da3245c8c9a7bb0a264
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Nov 14 12:18:28 2012 -0500
lib: use GdStyledTextRenderer from shared libgd
It has been moved there.
libgd | 2 +-
src/Makefile-lib.am | 2 -
src/lib/gd-styled-text-renderer.c | 124 -------------------------------------
src/lib/gd-styled-text-renderer.h | 79 -----------------------
src/selections.js | 4 +-
src/view.js | 5 +-
6 files changed, 5 insertions(+), 211 deletions(-)
---
diff --git a/libgd b/libgd
index 054c880..d36ff36 160000
--- a/libgd
+++ b/libgd
@@ -1 +1 @@
-Subproject commit 054c880781c884b43b28555507123d69030b5f90
+Subproject commit d36ff36877cce8e3d41f0642912e8514224db1ea
diff --git a/src/Makefile-lib.am b/src/Makefile-lib.am
index 924c351..05ac8bd 100644
--- a/src/Makefile-lib.am
+++ b/src/Makefile-lib.am
@@ -12,7 +12,6 @@ gdprivate_source_h = \
lib/gd-metadata.h \
lib/gd-pdf-loader.h \
lib/gd-sidebar-thumbnails.h \
- lib/gd-styled-text-renderer.h \
lib/gd-thumb-nav.h \
$(NULL)
@@ -22,7 +21,6 @@ gdprivate_source_c = \
lib/gd-metadata.c \
lib/gd-pdf-loader.c \
lib/gd-sidebar-thumbnails.c \
- lib/gd-styled-text-renderer.c \
lib/gd-thumb-nav.c \
$(NULL)
diff --git a/src/selections.js b/src/selections.js
index 52c1d97..d9f78d1 100644
--- a/src/selections.js
+++ b/src/selections.js
@@ -21,7 +21,7 @@
const Clutter = imports.gi.Clutter;
const EvView = imports.gi.EvinceView;
-const GdPrivate = imports.gi.GdPrivate;
+const Gd = imports.gi.Gd;
const Gdk = imports.gi.Gdk;
const GLib = imports.gi.GLib;
const GObject = imports.gi.GObject;
@@ -484,7 +484,7 @@ const OrganizeCollectionView = new Lang.Class({
this._viewCol.add_attribute(this._rendererText,
'text', OrganizeModelColumns.NAME);
- this._rendererDetail = new GdPrivate.StyledTextRenderer({ xpad: 16 });
+ this._rendererDetail = new Gd.StyledTextRenderer({ xpad: 16 });
this._rendererDetail.add_class('dim-label');
this._viewCol.pack_start(this._rendererDetail, false);
this._viewCol.set_cell_data_func(this._rendererDetail,
diff --git a/src/view.js b/src/view.js
index df499c9..f5fdd34 100644
--- a/src/view.js
+++ b/src/view.js
@@ -20,7 +20,6 @@
*/
const Gd = imports.gi.Gd;
-const GdPrivate = imports.gi.GdPrivate;
const Gdk = imports.gi.Gdk;
const GdkPixbuf = imports.gi.GdkPixbuf;
const Gettext = imports.gettext;
@@ -240,7 +239,7 @@ const ViewContainer = new Lang.Class({
let listWidget = this.view.get_generic_view();
let typeRenderer =
- new GdPrivate.StyledTextRenderer({ xpad: 16 });
+ new Gd.StyledTextRenderer({ xpad: 16 });
typeRenderer.add_class('dim-label');
listWidget.add_renderer(typeRenderer, Lang.bind(this,
function(col, cell, model, iter) {
@@ -251,7 +250,7 @@ const ViewContainer = new Lang.Class({
}));
let whereRenderer =
- new GdPrivate.StyledTextRenderer({ xpad: 16 });
+ new Gd.StyledTextRenderer({ xpad: 16 });
whereRenderer.add_class('dim-label');
listWidget.add_renderer(whereRenderer, Lang.bind(this,
function(col, cell, model, iter) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]