[latexila] Use Pixbuf.from_resource() from upstream vapi
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] Use Pixbuf.from_resource() from upstream vapi
- Date: Fri, 8 Jun 2012 17:49:31 +0000 (UTC)
commit 434336954f16b82ee4ffb3a54f01648e6f71fe8b
Author: SÃbastien Wilmet <swilmet src gnome org>
Date: Fri Jun 8 19:37:53 2012 +0200
Use Pixbuf.from_resource() from upstream vapi
This is (one of) the problem with Vala: the VAPIsâ
CMakeLists.txt | 4 ++--
INSTALL | 2 +-
src/stock_icons.vala | 2 +-
src/symbols.vala | 2 +-
vapi/gdk-pixbuf.vapi | 8 --------
5 files changed, 5 insertions(+), 13 deletions(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6b36791..d5235f8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -36,8 +36,8 @@ find_package (Itstool REQUIRED)
# Vala
if (BUILD_VALA)
- set (_vala_main_version "0.16")
- set (_vala_min_version "0.16.0")
+ set (_vala_main_version "0.18")
+ set (_vala_min_version "0.17.1")
if (VALAC)
message (STATUS "Use custom valac: ${VALAC}")
diff --git a/INSTALL b/INSTALL
index 5f514ab..5d6635d 100644
--- a/INSTALL
+++ b/INSTALL
@@ -11,7 +11,7 @@ gsettings-desktop-schemas (optional)
And for building the sources:
CMake >= 2.6.4
-Vala >= 0.16.0 (may be optional)
+Vala >= 0.17.1 (may be optional)
ITS Tool
If you are installing LaTeXila from a tarball, you don't have to install Vala
diff --git a/src/stock_icons.vala b/src/stock_icons.vala
index 76a8ca9..f24b5e9 100644
--- a/src/stock_icons.vala
+++ b/src/stock_icons.vala
@@ -72,7 +72,7 @@ public class StockIcons
try
{
- pixbuf = Gdk.MyPixbuf.from_resource (resource_path + icon_file);
+ pixbuf = new Gdk.Pixbuf.from_resource (resource_path + icon_file);
}
catch (Error e)
{
diff --git a/src/symbols.vala b/src/symbols.vala
index af723a9..974f2d1 100644
--- a/src/symbols.vala
+++ b/src/symbols.vala
@@ -177,7 +177,7 @@ public class Symbols : GLib.Object
{
try
{
- return Gdk.MyPixbuf.from_resource (
+ return new Gdk.Pixbuf.from_resource (
"/org/gnome/latexila/symbols/" + symbol_id);
}
catch (Error e)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]