Imported Upstream version 0.2.9 upstream/0.2.9
authorJulien Valroff <julien@kirya.net>
Sat, 15 May 2010 16:57:25 +0000 (18:57 +0200)
committerJulien Valroff <julien@kirya.net>
Sat, 15 May 2010 16:57:25 +0000 (18:57 +0200)
32 files changed:
.hg_archival.txt [new file with mode: 0644]
.pc/.quilt_patches [deleted file]
.pc/.quilt_series [deleted file]
.pc/.version [deleted file]
AUTHORS
CMakeLists.txt [new file with mode: 0644]
INSTALL
cmake/FindVala.cmake [new file with mode: 0644]
cmake/ParseArguments.cmake [new file with mode: 0644]
cmake/ValaPrecompile.cmake [new file with mode: 0644]
cmake/ValaVersion.cmake [new file with mode: 0644]
cmake_uninstall.cmake.in [new file with mode: 0644]
config.h.in [new file with mode: 0644]
img/ubuntu-mono-dark/pino.svg [new file with mode: 0644]
img/ubuntu-mono-dark/pino_fresh.svg [new file with mode: 0644]
img/ubuntu-mono-light/pino.svg [new file with mode: 0644]
img/ubuntu-mono-light/pino_fresh.svg [new file with mode: 0644]
po/POTFILES.in [new file with mode: 0644]
po/ar.po
po/de.po
po/fr.po
po/gl.po
po/hu.po
po/it.po
po/pl.po
po/pt.po
po/sv.po
po/zh_CN.po
src/re_tweet.vala
src/rest_api_abstract.vala
src/rest_api_timeline.vala
wscript

diff --git a/.hg_archival.txt b/.hg_archival.txt
new file mode 100644 (file)
index 0000000..be016cf
--- /dev/null
@@ -0,0 +1,5 @@
+repo: bb8746f709f6ea36453b2f1548130291d73a4e42
+node: 8dd4ca333b8cca7145f900f1b8103cb63628d3ab
+branch: default
+latesttag: null
+latesttagdistance: 208
diff --git a/.pc/.quilt_patches b/.pc/.quilt_patches
deleted file mode 100644 (file)
index 6857a8d..0000000
+++ /dev/null
@@ -1 +0,0 @@
-debian/patches
diff --git a/.pc/.quilt_series b/.pc/.quilt_series
deleted file mode 100644 (file)
index c206706..0000000
+++ /dev/null
@@ -1 +0,0 @@
-series
diff --git a/.pc/.version b/.pc/.version
deleted file mode 100644 (file)
index 0cfbf08..0000000
+++ /dev/null
@@ -1 +0,0 @@
-2
diff --git a/AUTHORS b/AUTHORS
index 6bffbba..917f2cd 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -15,3 +15,6 @@ Julien Valroff <julien@kirya.net>
 
 藤原 妹紅 <sufosp@gmail.com>
     Application icon (for versions <= 0.1.5)
+
+Cristian Greco <cristian@regolo.cc>
+    Cmake build scripts
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644 (file)
index 0000000..72a8782
--- /dev/null
@@ -0,0 +1,226 @@
+# Copyright (C) 2010 Cristian Greco <cristian@regolo.cc>
+# Distributed under the same license terms of the program itself (see COPYING).
+
+cmake_minimum_required(VERSION 2.6)
+
+project("pino" C)
+
+set(VERSION "0.2.9")
+
+set(APPNAME "pino")
+set(PACKAGE "${APPNAME}")
+set(PACKAGE_NAME "${APPNAME}")
+set(PACKAGE_STRING "${APPNAME}-${VERSION}")
+set(PACKAGE_VERSION "${APPNAME}-${VERSION}")
+set(APP_VERSION "${VERSION}")
+set(GETTEXT_PACKAGE "${APPNAME}")
+string(REGEX REPLACE "([0-9])\\.([0-9]).*" "\\1.\\2" VERSION_MAJOR_MINOR ${VERSION})
+file(READ AUTHORS _AUTHORS)
+string(REPLACE "\n" "\\n" AUTHORS ${_AUTHORS})
+
+configure_file(
+  "${CMAKE_CURRENT_SOURCE_DIR}/config.h.in"
+  "${CMAKE_CURRENT_BINARY_DIR}/config.h"
+)
+add_definitions(-include config.h)
+
+
+configure_file(
+  "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in"
+  "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
+  IMMEDIATE @ONLY
+)
+add_custom_target(uninstall "${CMAKE_COMMAND}" -P
+  "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
+
+
+list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
+include(ValaVersion)
+include(ValaPrecompile)
+find_package(Vala REQUIRED)
+ensure_vala_version("0.7.9" MINIMUM)
+
+
+option(ENABLE_DEBUG "Enable debug messages" OFF)
+option(UBUNTU_ICONS "Install icons for Ubuntu mono themes" OFF)
+set(pino_VALA_OPTIONS)
+
+
+find_package(PkgConfig)
+pkg_check_modules(GLIB REQUIRED "glib-2.0 >= 2.14.0")
+pkg_check_modules(GOBJECT REQUIRED "gobject-2.0 >= 2.14.0")
+pkg_check_modules(GTK+ REQUIRED "gtk+-2.0 >= 2.10.0")
+pkg_check_modules(GEE REQUIRED "gee-1.0 >= 0.5.0")
+pkg_check_modules(GIO REQUIRED "gio-2.0 >= 2.0")
+pkg_check_modules(LIBNOTIFY REQUIRED "libnotify")
+pkg_check_modules(LIBSOUP REQUIRED "libsoup-2.4 >= 2.4")
+pkg_check_modules(LIBXML REQUIRED "libxml-2.0 >= 2.0")
+pkg_check_modules(WEBKIT REQUIRED "webkit-1.0 >= 1.0")
+pkg_check_modules(LIBUNIQUE REQUIRED "unique-1.0 >= 1.0")
+pkg_check_modules(GTKSPELL REQUIRED "gtkspell-2.0 >= 2.0")
+pkg_check_modules(LIBINDICATE "indicate >= 0.3")
+
+if(${LIBINDICATE_FOUND})
+  message(STATUS "libindicate found, support enabled...")
+  set(pino_VALA_OPTIONS ${pino_VALA_OPTIONS} -D LIBINDICATE)
+else()
+  message(STATUS "libindicate not found, support disabled...")
+endif()
+
+
+if(ENABLE_DEBUG)
+  set(pino_VALA_OPTIONS ${pino_VALA_OPTIONS} -D HAS_DEBUG)
+endif()
+if(UBUNTU_ICONS)
+  set(pino_VALA_OPTIONS ${pino_VALA_OPTIONS} -D HAS_UBUNTUICONS)
+endif()
+
+
+file(GLOB pino_VALA_SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "src/*.vala")
+list(REMOVE_ITEM pino_VALA_SOURCES "src/oauth-client.vala")
+
+
+vala_precompile(
+pino_C_SOURCES
+  ${pino_VALA_SOURCES}
+PACKAGES
+  glib-2.0
+  gobject-2.0
+  gtk+-2.0
+  gee-1.0
+  gio-2.0
+  libnotify
+  libsoup-2.4
+  libxml-2.0
+  webkit-1.0
+  unique-1.0
+OPTIONS
+  ${pino_VALA_OPTIONS}
+CUSTOM_VAPIS
+  ${CMAKE_CURRENT_SOURCE_DIR}/src/vapi/config.vapi
+)
+
+
+add_definitions(
+  ${GLIB_CFLAGS}
+  ${GOBJECT_CFLAGS}
+  ${GTK+_CFLAGS}
+  ${GEE_CFLAGS}
+  ${GIO_CFLAGS}
+  ${LIBNOTIFY_CFLAGS}
+  ${LIBSOUP_CFLAGS}
+  ${LIBXML_CFLAGS}
+  ${WEBKIT_CFLAGS}
+  ${LIBUNIQUE_CFLAGS}
+  ${GTKSPELL_CFLAGS}
+  ${LIBINDICATE_CFLAGS}
+)
+
+link_libraries(
+  ${GLIB_LIBRARIES}
+  ${GOBJECT_LIBRARIES}
+  ${GTK+_LIBRARIES}
+  ${GEE_LIBRARIES}
+  ${GIO_LIBRARIES}
+  ${LIBNOTIFY_LIBRARIES}
+  ${LIBSOUP_LIBRARIES}
+  ${LIBXML_LIBRARIES}
+  ${WEBKIT_LIBRARIES}
+  ${LIBUNIQUE_LIBRARIES}
+  ${GTKSPELL_LIBRARIES}
+  ${LIBINDICATE_LIBRARIES}
+)
+
+include_directories(src/vapi/)
+add_definitions(-std=c99)
+
+add_executable(pino
+  ${pino_C_SOURCES}
+  #src/vapi/sha1.c
+  src/vapi/time_parser.c
+)
+
+install(TARGETS pino DESTINATION bin)
+
+
+find_program(MSGFMT_EXECUTABLE msgfmt)
+file(GLOB PO_FILES "po/*.po")
+set(MO_FILES)
+foreach(PO_FILE ${PO_FILES})
+  get_filename_component(PO_FILE_BASE ${PO_FILE} NAME_WE)
+  set(MO_FILE_PATH ${CMAKE_CURRENT_BINARY_DIR}/po)
+  set(MO_FILE ${MO_FILE_PATH}/${PO_FILE_BASE}.mo)
+
+  file(MAKE_DIRECTORY "${MO_FILE_PATH}")
+  add_custom_command(
+    OUTPUT ${MO_FILE}
+    COMMAND ${MSGFMT_EXECUTABLE} -o ${MO_FILE} ${PO_FILE})
+
+  install(FILES ${MO_FILE}
+    DESTINATION share/locale/${PO_FILE_BASE}/LC_MESSAGES
+    RENAME ${GETTEXT_PACKAGE}.mo)
+  set(MO_FILES ${MO_FILES} ${MO_FILE})
+endforeach()
+add_custom_target(locales ALL DEPENDS ${MO_FILES})
+
+
+set(pino_IMAGES
+  img/delete_status.png
+  img/direct_fresh.svg
+  img/direct_reply.png
+  img/direct.svg
+  img/favorite_no.png
+  img/favorite.png
+  img/mentions_fresh.svg
+  img/mentions.svg
+  img/progress.gif
+  img/reply.png
+  img/re_tweet.png
+  img/timeline_fresh.svg
+  img/timeline.svg
+  img/userpic.svg
+)
+install(FILES ${pino_IMAGES} DESTINATION share/pino/icons)
+
+
+set(pino_ICONS
+  img/pino_fresh.svg
+  img/pino.svg
+)
+install(FILES ${pino_ICONS} DESTINATION share/icons/hicolor/scalable/apps)
+
+
+set(pino_UBUNTU_ICONS_DARK
+ img/ubuntu-mono-dark/pino-tray-icon.svg
+ img/ubuntu-mono-dark/pino-tray-icon-fresh.svg
+)
+set(pino_UBUNTU_ICONS_LIGHT
+  img/ubuntu-mono-light/pino-tray-icon.svg
+  img/ubuntu-mono-light/pino-tray-icon-fresh.svg
+)
+if(UBUNTU_ICONS)
+  install(FILES ${pino_UBUNTU_ICONS_DARK} DESTINATION share/icons/ubuntu-mono-dark/apps/22)
+  install(FILES ${pino_UBUNTU_ICONS_LIGHT} DESTINATION share/icons/ubuntu-mono-light/apps/22)
+endif()
+
+
+set(pino_DOCS
+  COPYING
+  README
+  AUTHORS
+  INSTALL
+)
+install(FILES ${pino_DOCS} DESTINATION share/doc/pino)
+
+
+set(pino_TEMPLATES
+  templates/main.tpl
+  templates/status.tpl
+  templates/status_direct.tpl
+  templates/status_me.tpl
+)
+install(FILES ${pino_TEMPLATES} DESTINATION share/pino/templates)
+
+
+install(FILES pino.desktop DESTINATION share/applications)
+install(FILES indicator/pino DESTINATION share/indicators/messages/applications)
diff --git a/INSTALL b/INSTALL
index dc2cf2e..c025aa3 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -1,22 +1,26 @@
 Requirements
 =======================
 
-Pino uses next libraries and utilities:
-
-    valac (>=0.7)
-    gcc (>=4.2)
-    gtk+-2.0
-    gee-1.0
-    gio-2.0
-    libnotify
-    libsoup-2.4
-    libxml-2.0
-    webkit-1.0
+To build Pino use next libraries and utilities:
+  * valac (>=0.7.10)
+  * gcc (>=4.2)
+  * intltool
+  * gettext
+  * gtk+-2.0
+  * libgee (>=0.5.0)
+  * gio-2.0
+  * libnotify
+  * libsoup-2.4
+  * libxml-2.0
+  * webkit-1.0
+  * libunique-1.0
+  * libgtkspell
+  * libindicate (optional)
 
 You must install dev-packages for this libraries to build Pino.
 
 
-Building Pino
+Building with WAF
 =======================
 
 Pino uses a WAF build system. To build and install Pino use this commands:
@@ -29,4 +33,18 @@ For uninstalling type this:
 
     sudo ./waf uninstall
 
-Visit http://code.google.com/p/waf/ for more information.
+
+Building with Cmake
+=======================
+
+Now you can build Pino with Cmake build system:
+
+    mkdir build
+    cd build
+    cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DUBUNTU_ICONS=OFF -DENABLE_DEBUG=OFF
+    make
+    sudo make install
+
+For uninstalling type this:
+
+    sudo make uninstall
diff --git a/cmake/FindVala.cmake b/cmake/FindVala.cmake
new file mode 100644 (file)
index 0000000..2d1ed14
--- /dev/null
@@ -0,0 +1,65 @@
+##
+# Copyright 2009 Jakob Westhoff. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+#    1. Redistributions of source code must retain the above copyright notice,
+#       this list of conditions and the following disclaimer.
+#
+#    2. Redistributions in binary form must reproduce the above copyright notice,
+#       this list of conditions and the following disclaimer in the documentation
+#       and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY JAKOB WESTHOFF ``AS IS'' AND ANY EXPRESS OR
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL JAKOB WESTHOFF OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+# The views and conclusions contained in the software and documentation are those
+# of the authors and should not be interpreted as representing official policies,
+# either expressed or implied, of Jakob Westhoff
+##
+
+##
+# Find module for the Vala compiler (valac)
+#
+# This module determines wheter a Vala compiler is installed on the current
+# system and where its executable is.
+#
+# Call the module using "find_package(Vala) from within your CMakeLists.txt.
+#
+# The following variables will be set after an invocation:
+#
+#  VALA_FOUND       Whether the vala compiler has been found or not
+#  VALA_EXECUTABLE  Full path to the valac executable if it has been found
+#  VALA_VERSION     Version number of the available valac
+##
+
+
+# Search for the valac executable in the usual system paths.
+find_program(VALA_EXECUTABLE
+  NAMES valac)
+
+# Handle the QUIETLY and REQUIRED arguments, which may be given to the find call.
+# Furthermore set VALA_FOUND to TRUE if Vala has been found (aka.
+# VALA_EXECUTABLE is set)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(Vala DEFAULT_MSG VALA_EXECUTABLE)
+
+mark_as_advanced(VALA_EXECUTABLE)
+
+# Determine the valac version
+if(VALA_FOUND)
+    execute_process(COMMAND ${VALA_EXECUTABLE} "--version"
+                    OUTPUT_VARIABLE "VALA_VERSION")
+    string(REPLACE "Vala" "" "VALA_VERSION" ${VALA_VERSION})
+    string(STRIP ${VALA_VERSION} "VALA_VERSION")
+endif(VALA_FOUND)
diff --git a/cmake/ParseArguments.cmake b/cmake/ParseArguments.cmake
new file mode 100644 (file)
index 0000000..a27f5ba
--- /dev/null
@@ -0,0 +1,36 @@
+##
+# This is a helper Macro to parse optional arguments in Macros/Functions
+# It has been taken from the public CMake wiki
+# See http://www.cmake.org/Wiki/CMakeMacroParseArguments for documentation and
+# licensing.
+##
+macro(parse_arguments prefix arg_names option_names)
+  set(DEFAULT_ARGS)
+  foreach(arg_name ${arg_names})
+    set(${prefix}_${arg_name})
+  endforeach(arg_name)
+  foreach(option ${option_names})
+    set(${prefix}_${option} FALSE)
+  endforeach(option)
+
+  set(current_arg_name DEFAULT_ARGS)
+  set(current_arg_list)
+  foreach(arg ${ARGN})
+    set(larg_names ${arg_names})
+    list(FIND larg_names "${arg}" is_arg_name)
+    if(is_arg_name GREATER -1)
+      set(${prefix}_${current_arg_name} ${current_arg_list})
+      set(current_arg_name ${arg})
+      set(current_arg_list)
+    else(is_arg_name GREATER -1)
+      set(loption_names ${option_names})
+      list(FIND loption_names "${arg}" is_option)
+      if(is_option GREATER -1)
+           set(${prefix}_${arg} TRUE)
+      else(is_option GREATER -1)
+           set(current_arg_list ${current_arg_list} ${arg})
+      endif(is_option GREATER -1)
+    endif(is_arg_name GREATER -1)
+  endforeach(arg)
+  set(${prefix}_${current_arg_name} ${current_arg_list})
+endmacro(parse_arguments)
diff --git a/cmake/ValaPrecompile.cmake b/cmake/ValaPrecompile.cmake
new file mode 100644 (file)
index 0000000..d9a6adc
--- /dev/null
@@ -0,0 +1,168 @@
+##
+# Copyright 2009 Jakob Westhoff. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+#    1. Redistributions of source code must retain the above copyright notice,
+#       this list of conditions and the following disclaimer.
+#
+#    2. Redistributions in binary form must reproduce the above copyright notice,
+#       this list of conditions and the following disclaimer in the documentation
+#       and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY JAKOB WESTHOFF ``AS IS'' AND ANY EXPRESS OR
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL JAKOB WESTHOFF OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+# The views and conclusions contained in the software and documentation are those
+# of the authors and should not be interpreted as representing official policies,
+# either expressed or implied, of Jakob Westhoff
+##
+
+include(ParseArguments)
+find_package(Vala REQUIRED)
+
+##
+# Compile vala files to their c equivalents for further processing.
+#
+# The "vala_precompile" macro takes care of calling the valac executable on the
+# given source to produce c files which can then be processed further using
+# default cmake functions.
+#
+# The first parameter provided is a variable, which will be filled with a list
+# of c files outputted by the vala compiler. This list can than be used in
+# conjuction with functions like "add_executable" or others to create the
+# neccessary compile rules with CMake.
+#
+# The initial variable is followed by a list of .vala files to be compiled.
+# Please take care to add every vala file belonging to the currently compiled
+# project or library as Vala will otherwise not be able to resolve all
+# dependencies.
+#
+# The following sections may be specified afterwards to provide certain options
+# to the vala compiler:
+#
+# PACKAGES
+#   A list of vala packages/libraries to be used during the compile cycle. The
+#   package names are exactly the same, as they would be passed to the valac
+#   "--pkg=" option.
+#
+# OPTIONS
+#   A list of optional options to be passed to the valac executable. This can be
+#   used to pass "--thread" for example to enable multi-threading support.
+#
+# CUSTOM_VAPIS
+#   A list of custom vapi files to be included for compilation. This can be
+#   useful to include freshly created vala libraries without having to install
+#   them in the system.
+#
+# GENERATE_VAPI
+#   Pass all the needed flags to the compiler to create an internal vapi for
+#   the compiled library. The provided name will be used for this and a
+#   <provided_name>.vapi file will be created.
+#
+# GENERATE_HEADER
+#   Let the compiler generate a header file for the compiled code. There will
+#   be a header file as well as an internal header file being generated called
+#   <provided_name>.h and <provided_name>_internal.h
+#
+# The following call is a simple example to the vala_precompile macro showing
+# an example to every of the optional sections:
+#
+#   vala_precompile(VALA_C
+#       source1.vala
+#       source2.vala
+#       source3.vala
+#   PACKAGES
+#       gtk+-2.0
+#       gio-1.0
+#       posix
+#   OPTIONS
+#       --thread
+#   CUSTOM_VAPIS
+#       some_vapi.vapi
+#   GENERATE_VAPI
+#       myvapi
+#   GENERATE_HEADER
+#       myheader
+#   )
+#
+# Most important is the variable VALA_C which will contain all the generated c
+# file names after the call.
+##
+
+macro(vala_precompile output)
+    include_directories(${CMAKE_CURRENT_BINARY_DIR})
+    parse_arguments(ARGS "PACKAGES;OPTIONS;GENERATE_HEADER;GENERATE_VAPI;CUSTOM_VAPIS" "" ${ARGN})
+    set(vala_pkg_opts "")
+    foreach(pkg ${ARGS_PACKAGES})
+        list(APPEND vala_pkg_opts "--pkg=${pkg}")
+    endforeach(pkg ${ARGS_PACKAGES})
+    set(in_files "")
+    set(out_files "")
+    set(${output} "")
+    foreach(src ${ARGS_DEFAULT_ARGS})
+        list(APPEND in_files "${CMAKE_CURRENT_SOURCE_DIR}/${src}")
+        string(REPLACE ".vala" ".c" src ${src})
+        set(out_file "${CMAKE_CURRENT_BINARY_DIR}/${src}")
+        list(APPEND out_files "${CMAKE_CURRENT_BINARY_DIR}/${src}")
+        list(APPEND ${output} ${out_file})
+    endforeach(src ${ARGS_DEFAULT_ARGS})
+
+    set(vapi_arguments "")
+    if(ARGS_GENERATE_VAPI)
+        list(APPEND out_files "${CMAKE_CURRENT_BINARY_DIR}/${ARGS_GENERATE_VAPI}.vapi")
+        set(vapi_arguments "--internal-vapi=${ARGS_GENERATE_VAPI}.vapi")
+
+        # Header and internal header is needed to generate internal vapi
+        if (NOT ARGS_GENERATE_HEADER)
+            set(ARGS_GENERATE_HEADER ${ARGS_GENERATE_VAPI})
+        endif(NOT ARGS_GENERATE_HEADER)
+    endif(ARGS_GENERATE_VAPI)
+
+    set(header_arguments "")
+    if(ARGS_GENERATE_HEADER)
+        list(APPEND out_files "${CMAKE_CURRENT_BINARY_DIR}/${ARGS_GENERATE_HEADER}.h")
+        list(APPEND out_files "${CMAKE_CURRENT_BINARY_DIR}/${ARGS_GENERATE_HEADER}_internal.h")
+        list(APPEND header_arguments "--header=${ARGS_GENERATE_HEADER}.h")
+        list(APPEND header_arguments "--internal-header=${ARGS_GENERATE_HEADER}_internal.h")
+    endif(ARGS_GENERATE_HEADER)
+
+    # make sure output-directories exist
+    set(dirs)
+    foreach(f IN LISTS out_files)
+      get_filename_component(d "${f}" PATH)
+      get_filename_component(d "${d}" ABSOLUTE)
+      list(APPEND dirs "${d}")
+    endforeach()
+    list(REMOVE_DUPLICATES dirs)
+    foreach(d IN LISTS dirs)
+      file(MAKE_DIRECTORY "${d}")
+    endforeach()
+
+    add_custom_command(OUTPUT ${out_files}
+    COMMAND
+        ${VALA_EXECUTABLE}
+    ARGS
+        "-C"
+        ${header_arguments}
+        ${vapi_arguments}
+        "-b" ${CMAKE_CURRENT_SOURCE_DIR}
+        "-d" ${CMAKE_CURRENT_BINARY_DIR}
+        ${vala_pkg_opts}
+        ${ARGS_OPTIONS}
+        ${in_files}
+        ${ARGS_CUSTOM_VAPIS}
+    DEPENDS
+        ${in_files}
+        ${ARGS_CUSTOM_VAPIS}
+    )
+endmacro(vala_precompile)
diff --git a/cmake/ValaVersion.cmake b/cmake/ValaVersion.cmake
new file mode 100644 (file)
index 0000000..96a1d9c
--- /dev/null
@@ -0,0 +1,96 @@
+##
+# Copyright 2009 Jakob Westhoff. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+#    1. Redistributions of source code must retain the above copyright notice,
+#       this list of conditions and the following disclaimer.
+#
+#    2. Redistributions in binary form must reproduce the above copyright notice,
+#       this list of conditions and the following disclaimer in the documentation
+#       and/or other materials provided with the distribution.
+#
+# THIS SOFTWARE IS PROVIDED BY JAKOB WESTHOFF ``AS IS'' AND ANY EXPRESS OR
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL JAKOB WESTHOFF OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+#
+# The views and conclusions contained in the software and documentation are those
+# of the authors and should not be interpreted as representing official policies,
+# either expressed or implied, of Jakob Westhoff
+##
+
+include(ParseArguments)
+find_package(Vala REQUIRED)
+
+##
+# Ensure a certain valac version is available
+#
+# The initial argument is the version to check for
+#
+# It may be followed by a optional parameter to specifiy a version range. The
+# following options are valid:
+#
+# EXACT
+#   Vala needs to be available in the exact version given
+#
+# MINIMUM
+#   The provided version is the minimum version. Therefore Vala needs to be
+#   available in the given version or any higher version
+#
+# MAXIMUM
+#   The provided version is the maximum. Therefore Vala needs to be available
+#   in the given version or any version older than this
+#
+# If no option is specified the version will be treated as a minimal version.
+##
+macro(ensure_vala_version version)
+    parse_arguments(ARGS "" "MINIMUM;MAXIMUM;EXACT" ${ARGN})
+       set(compare_message "")
+       set(error_message "")
+       if(ARGS_MINIMUM)
+               set(compare_message "a minimum ")
+               set(error_message "or greater ")
+       elseif(ARGS_MAXIMUM)
+               set(compare_message "a maximum ")
+               set(error_message "or less ")
+       endif(ARGS_MINIMUM)
+
+       message(STATUS
+               "checking for ${compare_message}Vala version of ${version}"
+       )
+
+       unset(version_accepted)
+
+       # MINIMUM is the default if no option is specified
+       if(ARGS_EXACT)
+               if(${VALA_VERSION} VERSION_EQUAL ${version} )
+                       set(version_accepted TRUE)
+               endif(${VALA_VERSION} VERSION_EQUAL ${version})
+       elseif(ARGS_MAXIMUM)
+               if(${VALA_VERSION} VERSION_LESS ${version} OR ${VALA_VERSION} VERSION_EQUAL ${version})
+                       set(version_accepted TRUE)
+               endif(${VALA_VERSION} VERSION_LESS ${version} OR ${VALA_VERSION} VERSION_EQUAL ${version})
+       else(ARGS_MAXIMUM)
+               if(${VALA_VERSION} VERSION_GREATER ${version} OR ${VALA_VERSION} VERSION_EQUAL ${version})
+                       set(version_accepted TRUE)
+               endif(${VALA_VERSION} VERSION_GREATER ${version} OR ${VALA_VERSION} VERSION_EQUAL ${version})
+       endif(ARGS_EXACT)
+
+       if (NOT version_accepted)
+               message(FATAL_ERROR
+                       "Vala version ${version} ${error_message}is required."
+               )
+       endif(NOT version_accepted)
+
+       message(STATUS
+               "  found Vala, version ${VALA_VERSION}"
+       )
+endmacro(ensure_vala_version)
diff --git a/cmake_uninstall.cmake.in b/cmake_uninstall.cmake.in
new file mode 100644 (file)
index 0000000..0785ac8
--- /dev/null
@@ -0,0 +1,21 @@
+if(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
+  message(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"")
+endif()
+
+file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
+string(REGEX REPLACE "\n" ";" files "${files}")
+foreach(file ${files})
+  message(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"")
+  if(EXISTS "$ENV{DESTDIR}${file}")
+    exec_program(
+      "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
+      OUTPUT_VARIABLE rm_out
+      RETURN_VALUE rm_retval
+    )
+    if(NOT "${rm_retval}" STREQUAL 0)
+      message(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"")
+    endif()
+  else(EXISTS "$ENV{DESTDIR}${file}")
+    message(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.")
+  endif()
+endforeach()
diff --git a/config.h.in b/config.h.in
new file mode 100644 (file)
index 0000000..de11baa
--- /dev/null
@@ -0,0 +1,37 @@
+#ifndef _PINO_CONFIG_H
+#define _PINO_CONFIG_H
+
+
+#define PACKAGE "${PACKAGE}"
+#define PACKAGE_NAME "${PACKAGE_NAME}"
+#define PACKAGE_STRING "${PACKAGE_STRING}"
+#define PACKAGE_VERSION "${PACKAGE_VERSION}"
+
+#define VERSION_MAJOR_MINOR "${VERSION_MAJOR_MINOR}"
+#define LOCALE_DIR "${CMAKE_INSTALL_PREFIX}/share/locale/"
+#define GETTEXT_PACKAGE "${GETTEXT_PACKAGE}"
+#define APPNAME "${APPNAME}"
+#define AUTHORS "${AUTHORS}"
+
+#define APP_VERSION "0.2.9"
+#define DESKTOP_FILE_PATH "${CMAKE_INSTALL_PREFIX}/share/applications/pino.desktop"
+#define APP_PATH "${CMAKE_INSTALL_PREFIX}/bin/pino"
+#define LOGO_PATH "${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/scalable/apps/pino.svg"
+#define LOGO_FRESH_PATH "${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/scalable/apps/pino_fresh.svg"
+#define MENTIONS_PATH "${CMAKE_INSTALL_PREFIX}/share/pino/icons/mentions.svg"
+#define MENTIONS_FRESH_PATH "${CMAKE_INSTALL_PREFIX}/share/pino/icons/mentions_fresh.svg"
+#define TIMELINE_PATH "${CMAKE_INSTALL_PREFIX}/share/pino/icons/timeline.svg"
+#define TIMELINE_FRESH_PATH "${CMAKE_INSTALL_PREFIX}/share/pino/icons/timeline_fresh.svg"
+#define DIRECT_PATH "${CMAKE_INSTALL_PREFIX}/share/pino/icons/direct.svg"
+#define DIRECT_FRESH_PATH "${CMAKE_INSTALL_PREFIX}/share/pino/icons/direct_fresh.svg"
+#define PROGRESS_PATH "${CMAKE_INSTALL_PREFIX}/share/pino/icons/progress.gif"
+#define DIRECT_REPLY_PATH "${CMAKE_INSTALL_PREFIX}/share/pino/icons/direct_reply.png"
+#define FAVORITE_PATH "${CMAKE_INSTALL_PREFIX}/share/pino/icons/favorite.png"
+#define FAVORITE_NO_PATH "${CMAKE_INSTALL_PREFIX}/share/pino/icons/favorite_no.png"
+#define REPLY_PATH "${CMAKE_INSTALL_PREFIX}/share/pino/icons/reply.png"
+#define RETWEET_PATH "${CMAKE_INSTALL_PREFIX}/share/pino/icons/re_tweet.png"
+#define DELETE_PATH "${CMAKE_INSTALL_PREFIX}/share/pino/icons/delete_status.png"
+#define USERPIC_PATH "${CMAKE_INSTALL_PREFIX}/share/pino/icons/userpic.svg"
+#define TEMPLATES_PATH "${CMAKE_INSTALL_PREFIX}/share/pino/templates"
+
+#endif /* _PINO_CONFIG_H */
diff --git a/img/ubuntu-mono-dark/pino.svg b/img/ubuntu-mono-dark/pino.svg
new file mode 100644 (file)
index 0000000..e64a661
--- /dev/null
@@ -0,0 +1,116 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="22"
+   height="22"
+   id="svg3734"
+   version="1.1"
+   inkscape:version="0.47 r22583"
+   sodipodi:docname="pino.svg">
+  <defs
+     id="defs3736">
+    <inkscape:perspective
+       sodipodi:type="inkscape:persp3d"
+       inkscape:vp_x="0 : 526.18109 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_z="744.09448 : 526.18109 : 1"
+       inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
+       id="perspective3742" />
+    <inkscape:perspective
+       id="perspective3727"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+    <inkscape:path-effect
+       effect="spiro"
+       id="path-effect2945"
+       is_visible="true" />
+    <inkscape:perspective
+       id="perspective4195"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+    <inkscape:perspective
+       id="perspective4217"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+    <inkscape:perspective
+       id="perspective4239"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+    <inkscape:perspective
+       id="perspective4263"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="12.969159"
+     inkscape:cx="2.9421447"
+     inkscape:cy="9.872936"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     inkscape:window-width="1680"
+     inkscape:window-height="1002"
+     inkscape:window-x="0"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1" />
+  <metadata
+     id="metadata3739">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(0,-1030.3622)">
+    <g
+       id="g2875"
+       transform="matrix(0.18900225,0,0,0.21364254,-1.4771017,831.14216)"
+       style="fill:#f7f4ec;fill-opacity:1;stroke:#d0d0cf;stroke-width:4.84665060000000025;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none">
+      <path
+         style="fill:#f7f4ec;fill-opacity:1;stroke:#d0d0cf;stroke-width:4.84665060000000025;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+         d="m 63.9375,25.09375 -24.5625,24.3125 12.3125,2.8125 -24.125,20.4375 12.6875,2.8125 -23.9375,19.40625 39.8125,7.34375 0,7.25 15.75,0 0,-7.21875 39.8125,-7.375 -23.9375,-19.40625 12.6875,-2.8125 -24.125,-20.4375 12.3125,-2.8125 -24.5625,-24.3125 -0.125,0"
+         transform="translate(2.015625,916.699)"
+         id="path2836"
+         sodipodi:nodetypes="ccccccccccccccccc"
+         inkscape:path-effect="#path-effect2945"
+         inkscape:original-d="m 63.9375,25.09375 c -0.329991,13.35866 -11.175589,24.09757 -24.5625,24.3125 4.293108,1.06115 8.284877,2.388949 12.3125,2.8125 -2.097832,11.505252 -12.058959,20.243804 -24.125,20.4375 4.415829,1.091515 8.544259,2.429672 12.6875,2.8125 -2.491014,10.992584 -12.234628,19.218296 -23.9375,19.40625 15.907325,7.5085 30.356159,9.15538 39.8125,7.34375 l 0,7.25 15.75,0 0,-7.21875 c 9.460094,1.79595 23.926137,0.1236 39.8125,-7.375 C 99.98463,94.687046 90.241014,86.461334 87.75,75.46875 91.889526,75.084542 96.025606,73.746793 100.4375,72.65625 88.371459,72.462554 78.410332,63.724002 76.3125,52.21875 80.340123,51.795199 84.331892,50.4674 88.625,49.40625 75.238089,49.19132 64.392491,38.45241 64.0625,25.09375 c -0.133793,19.694425 -0.275181,73.978348 -0.125,0 z" />
+    </g>
+  </g>
+</svg>
diff --git a/img/ubuntu-mono-dark/pino_fresh.svg b/img/ubuntu-mono-dark/pino_fresh.svg
new file mode 100644 (file)
index 0000000..cbab9c0
--- /dev/null
@@ -0,0 +1,116 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="22"
+   height="22"
+   id="svg3734"
+   version="1.1"
+   inkscape:version="0.47 r22583"
+   sodipodi:docname="pino_light.svg">
+  <defs
+     id="defs3736">
+    <inkscape:perspective
+       sodipodi:type="inkscape:persp3d"
+       inkscape:vp_x="0 : 526.18109 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_z="744.09448 : 526.18109 : 1"
+       inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
+       id="perspective3742" />
+    <inkscape:perspective
+       id="perspective3727"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+    <inkscape:path-effect
+       effect="spiro"
+       id="path-effect2945"
+       is_visible="true" />
+    <inkscape:perspective
+       id="perspective4195"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+    <inkscape:perspective
+       id="perspective4217"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+    <inkscape:perspective
+       id="perspective4239"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+    <inkscape:perspective
+       id="perspective4263"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="12.969159"
+     inkscape:cx="2.9421447"
+     inkscape:cy="9.872936"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     inkscape:window-width="1680"
+     inkscape:window-height="1002"
+     inkscape:window-x="0"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1" />
+  <metadata
+     id="metadata3739">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(0,-1030.3622)">
+    <g
+       id="g2875"
+       transform="matrix(0.18900225,0,0,0.21364254,-1.4771017,831.14216)"
+       style="fill:#58c10c;fill-opacity:1;stroke:#d0d0cf;stroke-width:4.84665060000000025;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none">
+      <path
+         style="fill:#58c10c;fill-opacity:1;stroke:#d0d0cf;stroke-width:4.84665060000000025;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+         d="m 63.9375,25.09375 -24.5625,24.3125 12.3125,2.8125 -24.125,20.4375 12.6875,2.8125 -23.9375,19.40625 39.8125,7.34375 0,7.25 15.75,0 0,-7.21875 39.8125,-7.375 -23.9375,-19.40625 12.6875,-2.8125 -24.125,-20.4375 12.3125,-2.8125 -24.5625,-24.3125 -0.125,0"
+         transform="translate(2.015625,916.699)"
+         id="path2836"
+         sodipodi:nodetypes="ccccccccccccccccc"
+         inkscape:path-effect="#path-effect2945"
+         inkscape:original-d="m 63.9375,25.09375 c -0.329991,13.35866 -11.175589,24.09757 -24.5625,24.3125 4.293108,1.06115 8.284877,2.388949 12.3125,2.8125 -2.097832,11.505252 -12.058959,20.243804 -24.125,20.4375 4.415829,1.091515 8.544259,2.429672 12.6875,2.8125 -2.491014,10.992584 -12.234628,19.218296 -23.9375,19.40625 15.907325,7.5085 30.356159,9.15538 39.8125,7.34375 l 0,7.25 15.75,0 0,-7.21875 c 9.460094,1.79595 23.926137,0.1236 39.8125,-7.375 C 99.98463,94.687046 90.241014,86.461334 87.75,75.46875 91.889526,75.084542 96.025606,73.746793 100.4375,72.65625 88.371459,72.462554 78.410332,63.724002 76.3125,52.21875 80.340123,51.795199 84.331892,50.4674 88.625,49.40625 75.238089,49.19132 64.392491,38.45241 64.0625,25.09375 c -0.133793,19.694425 -0.275181,73.978348 -0.125,0 z" />
+    </g>
+  </g>
+</svg>
diff --git a/img/ubuntu-mono-light/pino.svg b/img/ubuntu-mono-light/pino.svg
new file mode 100644 (file)
index 0000000..17e1b15
--- /dev/null
@@ -0,0 +1,116 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="22"
+   height="22"
+   id="svg3734"
+   version="1.1"
+   inkscape:version="0.47 r22583"
+   sodipodi:docname="pino_tray_icon.svg">
+  <defs
+     id="defs3736">
+    <inkscape:perspective
+       sodipodi:type="inkscape:persp3d"
+       inkscape:vp_x="0 : 526.18109 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_z="744.09448 : 526.18109 : 1"
+       inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
+       id="perspective3742" />
+    <inkscape:perspective
+       id="perspective3727"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+    <inkscape:path-effect
+       effect="spiro"
+       id="path-effect2945"
+       is_visible="true" />
+    <inkscape:perspective
+       id="perspective4195"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+    <inkscape:perspective
+       id="perspective4217"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+    <inkscape:perspective
+       id="perspective4239"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+    <inkscape:perspective
+       id="perspective4263"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="27.811522"
+     inkscape:cx="2.9424318"
+     inkscape:cy="9.8738995"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     inkscape:window-width="1680"
+     inkscape:window-height="1002"
+     inkscape:window-x="0"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1" />
+  <metadata
+     id="metadata3739">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(0,-1030.3622)">
+    <g
+       id="g2875"
+       transform="matrix(0.18900225,0,0,0.21364254,-1.4771017,831.14216)"
+       style="fill:#3a3935;fill-opacity:1;stroke:#eae3d0;stroke-width:4.8466506;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none">
+      <path
+         style="fill:#3a3935;fill-opacity:1;stroke:#eae3d0;stroke-width:4.8466506;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+         d="m 63.9375,25.09375 -24.5625,24.3125 12.3125,2.8125 -24.125,20.4375 12.6875,2.8125 -23.9375,19.40625 39.8125,7.34375 0,7.25 15.75,0 0,-7.21875 39.8125,-7.375 -23.9375,-19.40625 12.6875,-2.8125 -24.125,-20.4375 12.3125,-2.8125 -24.5625,-24.3125 -0.125,0"
+         transform="translate(2.015625,916.699)"
+         id="path2836"
+         sodipodi:nodetypes="ccccccccccccccccc"
+         inkscape:path-effect="#path-effect2945"
+         inkscape:original-d="m 63.9375,25.09375 c -0.329991,13.35866 -11.175589,24.09757 -24.5625,24.3125 4.293108,1.06115 8.284877,2.388949 12.3125,2.8125 -2.097832,11.505252 -12.058959,20.243804 -24.125,20.4375 4.415829,1.091515 8.544259,2.429672 12.6875,2.8125 -2.491014,10.992584 -12.234628,19.218296 -23.9375,19.40625 15.907325,7.5085 30.356159,9.15538 39.8125,7.34375 l 0,7.25 15.75,0 0,-7.21875 c 9.460094,1.79595 23.926137,0.1236 39.8125,-7.375 C 99.98463,94.687046 90.241014,86.461334 87.75,75.46875 91.889526,75.084542 96.025606,73.746793 100.4375,72.65625 88.371459,72.462554 78.410332,63.724002 76.3125,52.21875 80.340123,51.795199 84.331892,50.4674 88.625,49.40625 75.238089,49.19132 64.392491,38.45241 64.0625,25.09375 c -0.133793,19.694425 -0.275181,73.978348 -0.125,0 z" />
+    </g>
+  </g>
+</svg>
diff --git a/img/ubuntu-mono-light/pino_fresh.svg b/img/ubuntu-mono-light/pino_fresh.svg
new file mode 100644 (file)
index 0000000..8e06e10
--- /dev/null
@@ -0,0 +1,116 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="22"
+   height="22"
+   id="svg3734"
+   version="1.1"
+   inkscape:version="0.47 r22583"
+   sodipodi:docname="pino_light.svg">
+  <defs
+     id="defs3736">
+    <inkscape:perspective
+       sodipodi:type="inkscape:persp3d"
+       inkscape:vp_x="0 : 526.18109 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_z="744.09448 : 526.18109 : 1"
+       inkscape:persp3d-origin="372.04724 : 350.78739 : 1"
+       id="perspective3742" />
+    <inkscape:perspective
+       id="perspective3727"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+    <inkscape:path-effect
+       effect="spiro"
+       id="path-effect2945"
+       is_visible="true" />
+    <inkscape:perspective
+       id="perspective4195"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+    <inkscape:perspective
+       id="perspective4217"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+    <inkscape:perspective
+       id="perspective4239"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+    <inkscape:perspective
+       id="perspective4263"
+       inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
+       inkscape:vp_z="1 : 0.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 0.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="27.811522"
+     inkscape:cx="-2.7027105"
+     inkscape:cy="9.8738995"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     inkscape:window-width="1680"
+     inkscape:window-height="1002"
+     inkscape:window-x="0"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1" />
+  <metadata
+     id="metadata3739">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(0,-1030.3622)">
+    <g
+       id="g2875"
+       transform="matrix(0.18900225,0,0,0.21364254,-1.4771017,831.14216)"
+       style="fill:#58c10c;fill-opacity:1;stroke:#eae3d0;stroke-width:4.84665060000000025;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none">
+      <path
+         style="fill:#58c10c;fill-opacity:1;stroke:#eae3d0;stroke-width:4.84665060000000025;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
+         d="m 63.9375,25.09375 -24.5625,24.3125 12.3125,2.8125 -24.125,20.4375 12.6875,2.8125 -23.9375,19.40625 39.8125,7.34375 0,7.25 15.75,0 0,-7.21875 39.8125,-7.375 -23.9375,-19.40625 12.6875,-2.8125 -24.125,-20.4375 12.3125,-2.8125 -24.5625,-24.3125 -0.125,0"
+         transform="translate(2.015625,916.699)"
+         id="path2836"
+         sodipodi:nodetypes="ccccccccccccccccc"
+         inkscape:path-effect="#path-effect2945"
+         inkscape:original-d="m 63.9375,25.09375 c -0.329991,13.35866 -11.175589,24.09757 -24.5625,24.3125 4.293108,1.06115 8.284877,2.388949 12.3125,2.8125 -2.097832,11.505252 -12.058959,20.243804 -24.125,20.4375 4.415829,1.091515 8.544259,2.429672 12.6875,2.8125 -2.491014,10.992584 -12.234628,19.218296 -23.9375,19.40625 15.907325,7.5085 30.356159,9.15538 39.8125,7.34375 l 0,7.25 15.75,0 0,-7.21875 c 9.460094,1.79595 23.926137,0.1236 39.8125,-7.375 C 99.98463,94.687046 90.241014,86.461334 87.75,75.46875 91.889526,75.084542 96.025606,73.746793 100.4375,72.65625 88.371459,72.462554 78.410332,63.724002 76.3125,52.21875 80.340123,51.795199 84.331892,50.4674 88.625,49.40625 75.238089,49.19132 64.392491,38.45241 64.0625,25.09375 c -0.133793,19.694425 -0.275181,73.978348 -0.125,0 z" />
+    </g>
+  </g>
+</svg>
diff --git a/po/POTFILES.in b/po/POTFILES.in
new file mode 100644 (file)
index 0000000..1923bd3
--- /dev/null
@@ -0,0 +1,11 @@
+src/template.vala
+src/re_tweet.vala
+src/gtk_style.vala
+src/defs.vala
+src/timer.vala
+src/prefs.vala
+src/status_bar_smart.vala
+src/pref_dialog.vala
+src/main_window.vala
+src/main.vala
+src/twitter_interface.vala
index c72c922..00bbdd2 100644 (file)
--- a/po/ar.po
+++ b/po/ar.po
@@ -2,7 +2,7 @@
 # Copyright (C) 2009 the Free Software Foundation, Inc.
 # This file is distributed under the same license as the pino package.
 # MaXeR <mmaxer@gmail.com>, 2009.
-#
+# 
 msgid ""
 msgstr ""
 "Project-Id-Version: pino 0.1.0b4\n"
@@ -37,8 +37,7 @@ msgid "Sure you want to delete this account?"
 msgstr "متأكد أنك تريد حذف هذا الحساب؟"
 
 #: src/dm_entry.vala:35
-msgid ""
-"You can't send direct message to this user. He (or she) must follow you too"
+msgid "You can't send direct message to this user. He (or she) must follow you too"
 msgstr "لايمكنك إرسال رسالة مباشرة إلى هذا المستخدم. هو يجب أن يتابعك أولاً"
 
 #: src/dm_entry.vala:42
@@ -317,7 +316,7 @@ msgstr "الأسماء الحقيقية بدلاً عن اللقب"
 
 #: src/pref_dialog.vala:190
 msgid "Native links color"
-msgstr ""
+msgstr "لون الروابط الأصلية"
 
 #: src/pref_dialog.vala:193
 msgid "Default font"
@@ -499,9 +498,9 @@ msgid "Message was removed from favorites"
 msgstr "حُذفت الرسالة من المُفضّلات"
 
 #: src/tray_icon.vala:67
-#, fuzzy, c-format
+#, c-format
 msgid "%s - not only a twitter client"
-msgstr "%s - Ø¹Ù\85Ù\8aÙ\84 Twitter"
+msgstr "%s - Ø£Ù\83ثر Ù\85Ù\86 Ù\85جرد Ø¹Ù\85Ù\8aÙ\84 Ù\84Ù\80 Twitter"
 
 #: src/user_info_list.vala:48
 msgid "Followers:"
index 147d4dd..4249a30 100644 (file)
--- a/po/de.po
+++ b/po/de.po
@@ -2,7 +2,7 @@
 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
 # This file is distributed under the same license as the PACKAGE package.
 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
-#
+# 
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
@@ -36,11 +36,8 @@ msgid "Sure you want to delete this account?"
 msgstr "Möchten Sie dieses Konto wirklich löschen?"
 
 #: src/dm_entry.vala:35
-msgid ""
-"You can't send direct message to this user. He (or she) must follow you too"
-msgstr ""
-"Direktnachrichten an diesen Benutzer sind nicht möglich, da der Benutzer dir "
-"nicht folgt"
+msgid "You can't send direct message to this user. He (or she) must follow you too"
+msgstr "Direktnachrichten an diesen Benutzer sind nicht möglich, da der Benutzer dir nicht folgt"
 
 #: src/dm_entry.vala:42
 msgid "Check"
@@ -318,7 +315,7 @@ msgstr "Echte Namen statt Nicknamen verwenden"
 
 #: src/pref_dialog.vala:190
 msgid "Native links color"
-msgstr ""
+msgstr "Linkfarbe des Systems verwenden"
 
 #: src/pref_dialog.vala:193
 msgid "Default font"
@@ -500,9 +497,9 @@ msgid "Message was removed from favorites"
 msgstr "Nachricht wurde aus den Favoriten entfernt"
 
 #: src/tray_icon.vala:67
-#, fuzzy, c-format
+#, c-format
 msgid "%s - not only a twitter client"
-msgstr "%s - ein Twitter Client"
+msgstr "%s - nicht nur ein Twitter Client"
 
 #: src/user_info_list.vala:48
 msgid "Followers:"
index c82425b..f1cde53 100644 (file)
--- a/po/fr.po
+++ b/po/fr.po
@@ -534,14 +534,4 @@ msgstr "Maintenant vous suivez cet utilisateur"
 msgid "User was unfollowed"
 msgstr "Cet utilisateur n'était pas suivi"
 
-#~ msgid "Canceled"
-#~ msgstr "Annulé"
 
-#~ msgid "Friends:  <b>%s</b>"
-#~ msgstr "Réponse à <b>%s</b>"
-
-#~ msgid "Statuses:  <b>%s</b>"
-#~ msgstr "Réponse à <b>%s</b>"
-
-#~ msgid "Twitter"
-#~ msgstr "Twitter"
index 54c841c..32079b4 100644 (file)
--- a/po/gl.po
+++ b/po/gl.po
@@ -38,11 +38,8 @@ msgid "Sure you want to delete this account?"
 msgstr "Está segura/o de que quere eliminar esta conta?"
 
 #: src/dm_entry.vala:35
-msgid ""
-"You can't send direct message to this user. He (or she) must follow you too"
-msgstr ""
-"Non lle pode enviar unha mensaxe directa a esta persoa usuaria. Ela ou el "
-"tamén o debe seguir"
+msgid "You can't send direct message to this user. He (or she) must follow you too"
+msgstr "Non lle pode enviar unha mensaxe directa a esta persoa usuaria. Ela ou el tamén o debe seguir"
 
 #: src/dm_entry.vala:42
 msgid "Check"
@@ -321,7 +318,7 @@ msgstr "Nomes completos en vez de alcumes"
 
 #: src/pref_dialog.vala:190
 msgid "Native links color"
-msgstr ""
+msgstr "Cor das ligaçons nativas"
 
 #: src/pref_dialog.vala:193
 msgid "Default font"
@@ -504,9 +501,9 @@ msgid "Message was removed from favorites"
 msgstr "A mensaxe foi eliminada dos favoritos"
 
 #: src/tray_icon.vala:67
-#, fuzzy, c-format
+#, c-format
 msgid "%s - not only a twitter client"
-msgstr "%s - un cliente de twitter"
+msgstr "%s - non só un cliente de Twitter"
 
 #: src/user_info_list.vala:48
 msgid "Followers:"
index 4e4657b..8bebd87 100644 (file)
--- a/po/hu.po
+++ b/po/hu.po
@@ -8,7 +8,7 @@ msgstr ""
 "Project-Id-Version: pino\n"
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2010-05-06 13:37+0300\n"
-"PO-Revision-Date: 2010-05-06 14:28+0100\n"
+"PO-Revision-Date: 2010-05-07 13:08+0100\n"
 "Last-Translator: csola48 <csola48@gmail.com>\n"
 "Language-Team: hu <LL@li.org>\n"
 "MIME-Version: 1.0\n"
@@ -513,7 +513,7 @@ msgstr "Üzenet törölve a kedvencek közül"
 #: src/tray_icon.vala:67
 #, c-format
 msgid "%s - not only a twitter client"
-msgstr "%s - nem csak egy twitter kliens"
+msgstr "%s - nem csak egy Twitter kliens"
 
 #: src/user_info_list.vala:48
 msgid "Followers:"
index dd8e874..aec41e6 100644 (file)
--- a/po/it.po
+++ b/po/it.po
@@ -314,9 +314,8 @@ msgid "Full names instead of nicknames"
 msgstr "Nomi completi invece del nickname"
 
 #: src/pref_dialog.vala:190
-#, fuzzy
 msgid "Native links color"
-msgstr "Colore predefinito dei link"
+msgstr "Colori predefiniti dei link"
 
 #: src/pref_dialog.vala:193
 msgid "Default font"
index ee18a89..daa896b 100644 (file)
--- a/po/pl.po
+++ b/po/pl.po
@@ -6,7 +6,7 @@ msgstr ""
 "Project-Id-Version: pl\n"
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2010-05-06 13:37+0300\n"
-"PO-Revision-Date: 2010-04-10 00:07+0200\n"
+"PO-Revision-Date: 2010-05-11 00:26+0200\n"
 "Last-Translator: Piotr Drąg <piotrdrag@gmail.com>\n"
 "Language-Team: Polish <trans-pl@lists.fedoraproject.org>\n"
 "MIME-Version: 1.0\n"
@@ -316,7 +316,7 @@ msgstr "Imiona i nazwiska zamiast pseudonimów"
 
 #: src/pref_dialog.vala:190
 msgid "Native links color"
-msgstr ""
+msgstr "Natywne kolory odnośników"
 
 #: src/pref_dialog.vala:193
 msgid "Default font"
@@ -498,9 +498,9 @@ msgid "Message was removed from favorites"
 msgstr "Wiadomość została usunięta z ulubionych"
 
 #: src/tray_icon.vala:67
-#, fuzzy, c-format
+#, c-format
 msgid "%s - not only a twitter client"
-msgstr "%s - klient serwisu Twitter"
+msgstr "%s - więcej niż klient serwisu Twitter"
 
 #: src/user_info_list.vala:48
 msgid "Followers:"
@@ -533,6 +533,3 @@ msgstr "Ten użytkownik jest teraz obserwowany"
 #: src/user_info_list.vala:314
 msgid "User was unfollowed"
 msgstr "Użytkownik nie jest już obserwowany"
-
-#~ msgid "Canceled"
-#~ msgstr "Anulowano"
index 471736b..afad3e2 100644 (file)
--- a/po/pt.po
+++ b/po/pt.po
@@ -2,7 +2,7 @@
 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
 # This file is distributed under the same license as the PACKAGE package.
 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
-#
+# 
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
@@ -36,11 +36,8 @@ msgid "Sure you want to delete this account?"
 msgstr "Tem a certeza que deseja apagar esta Conta?"
 
 #: src/dm_entry.vala:35
-msgid ""
-"You can't send direct message to this user. He (or she) must follow you too"
-msgstr ""
-"Não pode enviar uma Mensagem Directa a este utilizador. Ele (ou ela) têm que "
-"o seguir também."
+msgid "You can't send direct message to this user. He (or she) must follow you too"
+msgstr "Não pode enviar uma Mensagem Directa a este utilizador. Ele (ou ela) têm que o seguir também."
 
 #: src/dm_entry.vala:42
 msgid "Check"
@@ -318,7 +315,7 @@ msgstr "Nomes completos em vez de nomes de utilizador"
 
 #: src/pref_dialog.vala:190
 msgid "Native links color"
-msgstr ""
+msgstr "Cor normal das ligações"
 
 #: src/pref_dialog.vala:193
 msgid "Default font"
@@ -500,9 +497,9 @@ msgid "Message was removed from favorites"
 msgstr "A Mensagem foi removida dos Favoritos"
 
 #: src/tray_icon.vala:67
-#, fuzzy, c-format
+#, c-format
 msgid "%s - not only a twitter client"
-msgstr "%s - Um Cliente de Twitter"
+msgstr "%s - Não é apenas um Cliente de Twitter"
 
 #: src/user_info_list.vala:48
 msgid "Followers:"
index 1613d28..6cab6f5 100644 (file)
--- a/po/sv.po
+++ b/po/sv.po
@@ -8,7 +8,7 @@ msgstr ""
 "Project-Id-Version: \n"
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2010-05-06 13:37+0300\n"
-"PO-Revision-Date: 2010-05-07 00:11+0100\n"
+"PO-Revision-Date: 2010-05-14 02:15+0100\n"
 "Last-Translator: Johan Eriksson <hund@lathund.nu>\n"
 "Language-Team: \n"
 "MIME-Version: 1.0\n"
@@ -325,9 +325,8 @@ msgid "Full names instead of nicknames"
 msgstr "Fullständiga namn istället för användarnamn"
 
 #: src/pref_dialog.vala:190
-#, fuzzy
 msgid "Native links color"
-msgstr "Native länkfärg"
+msgstr "Ursprunglig länkfärg"
 
 #: src/pref_dialog.vala:193
 msgid "Default font"
index 11b21fa..8470499 100644 (file)
@@ -3,14 +3,14 @@
 # This file is distributed under the same license as the PACKAGE package.
 # sospartan <sospartan@gmail.com>, 2009.
 # yongjun   <tang423@gmail.com>, 2010.
-#
+# 
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2010-05-06 13:37+0300\n"
-"PO-Revision-Date: 2010-04-06 15:42+0800\n"
-"Last-Translator: sospartan <sospartan@gmail.com>\n"
+"PO-Revision-Date: 2010-05-11 11:13+0800\n"
+"Last-Translator: yongjun <tang423@gmail.com>\n"
 "Language-Team: \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
@@ -37,8 +37,7 @@ msgid "Sure you want to delete this account?"
 msgstr "确定要删除这条消息么?"
 
 #: src/dm_entry.vala:35
-msgid ""
-"You can't send direct message to this user. He (or she) must follow you too"
+msgid "You can't send direct message to this user. He (or she) must follow you too"
 msgstr "在他(她)关注你之前,不能够向该用户发送私信"
 
 #: src/dm_entry.vala:42
@@ -320,7 +319,7 @@ msgstr "全名替代昵称"
 
 #: src/pref_dialog.vala:190
 msgid "Native links color"
-msgstr ""
+msgstr "原生链接颜色"
 
 #: src/pref_dialog.vala:193
 msgid "Default font"
@@ -502,7 +501,7 @@ msgid "Message was removed from favorites"
 msgstr "信息被移出收藏夹"
 
 #: src/tray_icon.vala:67
-#, fuzzy, c-format
+#, c-format
 msgid "%s - not only a twitter client"
 msgstr "%s - twitter 客户端"
 
index 4d57eb3..3027ddc 100644 (file)
@@ -152,10 +152,16 @@ public class ReTweet : VBox {
                entry.key_press_event.connect(hide_or_send);
                entry.buffer.changed.connect(change);
                
+               string tag_link_color;
+               if(prefs.nativeLinkColor)
+                       tag_link_color = gtk_style.lk_color;
+               else
+                       tag_link_color = gtk_style.sl_color;
+               
                entry.buffer.create_tag("red_bg", "background", "#ffa4a4");
-               entry.buffer.create_tag("url", "foreground", gtk_style.sl_color);
+               entry.buffer.create_tag("url", "foreground", tag_link_color);
                entry.buffer.create_tag("nick", "weight", Pango.Weight.BOLD);
-               entry.buffer.create_tag("tag", "foreground", gtk_style.sl_color,
+               entry.buffer.create_tag("tag", "foreground", tag_link_color,
                        "weight", Pango.Weight.BOLD);
                
                prefs.enableSpellChanged.connect(spellEnabling);
index 67dd551..7558cbf 100644 (file)
@@ -235,7 +235,7 @@ public abstract class RestAPIAbstract : Object {
                                debug("we got some error: %s", e.message);
                                break;
                        }
-                       debug("something recieve %d", status_code);
+                       debug("something receive %d", status_code);
                        if(status_code == 200 || status_code == 401 || status_code == 4)
                                break;
                }
index 3028780..c0396a6 100644 (file)
@@ -284,7 +284,11 @@ public class RestAPITimeline : RestAPIAbstract {
                string req_url = urls.status().printf(id);
                string data = make_request(req_url, "GET");
                
-               return parse_status(data);
+               Parser.init();
+               Status status = parse_status(data);
+               Parser.cleanup();
+               
+               return status;
        }
        
        private Status parse_status(string data) throws ParseError {
@@ -308,6 +312,7 @@ public class RestAPITimeline : RestAPIAbstract {
                        
                        case "created_at":
                                status.created_at = str_to_time(iter->get_content());
+                               status.created_at_s = iter->get_content();
                                break;
                        
                        case "text":
diff --git a/wscript b/wscript
index 1cf6760..4a2003e 100644 (file)
--- a/wscript
+++ b/wscript
@@ -2,7 +2,7 @@
 
 import intltool
 
-VERSION = "0.2.8"
+VERSION = "0.2.9"
 VERSION_MAJOR_MINOR =  ".".join(VERSION.split(".")[0:2])
 APPNAME = "pino"