[eog] Fix some more deprecation warnings
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog] Fix some more deprecation warnings
- Date: Wed, 29 Feb 2012 21:14:47 +0000 (UTC)
commit 59e675c621cf0e9bb4567321a877ebb3c0075cc4
Author: Felix Riemann <friemann gnome org>
Date: Wed Feb 29 22:14:22 2012 +0100
Fix some more deprecation warnings
Still not all though.
src/eog-scroll-view.c | 2 +-
src/eog-uri-converter.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/eog-scroll-view.c b/src/eog-scroll-view.c
index 561f6b6..0766b64 100644
--- a/src/eog-scroll-view.c
+++ b/src/eog-scroll-view.c
@@ -2472,7 +2472,7 @@ eog_scroll_view_init (EogScrollView *view)
G_CALLBACK (adjustment_changed_cb),
view);
- priv->vbar = gtk_vscrollbar_new (priv->vadj);
+ priv->vbar = gtk_scrollbar_new (GTK_ORIENTATION_VERTICAL, priv->vadj);
priv->display = g_object_new (GTK_TYPE_DRAWING_AREA,
"can-focus", TRUE,
NULL);
diff --git a/src/eog-uri-converter.c b/src/eog-uri-converter.c
index d8dbdd5..9a65618 100644
--- a/src/eog-uri-converter.c
+++ b/src/eog-uri-converter.c
@@ -197,7 +197,7 @@ eog_uri_converter_set_property (GObject *object,
break;
case PROP_SPACE_CHARACTER:
- priv->space_character = g_value_get_char (value);
+ priv->space_character = g_value_get_schar (value);
break;
case PROP_COUNTER_START:
@@ -249,7 +249,7 @@ eog_uri_converter_get_property (GObject *object,
break;
case PROP_SPACE_CHARACTER:
- g_value_set_char (value, priv->space_character);
+ g_value_set_schar (value, priv->space_character);
break;
case PROP_COUNTER_START:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]