-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Still have to decide which Twitter library and auth method to use Signed-off-by: Daniele Ricci <[email protected]>
- Loading branch information
0 parents
commit 9274905
Showing
22 changed files
with
1,106 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Daniele Ricci <[email protected]> |
Large diffs are not rendered by default.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
SUBDIRS = src po data | ||
|
||
ACLOCAL_AMFLAGS = -I m4 | ||
|
||
MAINTAINERCLEANFILES = \ | ||
aclocal.m4 compile config.guess config.sub \ | ||
configure depcomp install-sh config.rpath \ | ||
Makefile.in missing ltmain.sh \ | ||
mkinstalldirs config.h.in config.h.in~ INSTALL \ | ||
m4/intltool.m4 m4/libtool.m4 m4/lt~obsolete.m4 \ | ||
m4/ltoptions.m4 m4/ltsugar.m4 m4/ltversion.m4 \ | ||
m4/codeset.m4 m4/gettext.m4 m4/glibc21.m4 m4/iconv.m4 \ | ||
m4/intdiv0.m4 m4/inttypes-pri.m4 m4/inttypes.m4 m4/inttypes_h.m4 \ | ||
m4/isc-posix.m4 m4/lcmessage.m4 m4/lib-ld.m4 m4/lib-link.m4 \ | ||
m4/lib-prefix.m4 m4/nls.m4 m4/po.m4 m4/progtest.m4 m4/stdint_h.m4 \ | ||
m4/uintmax_t.m4 m4/ulonglong.m4 ABOUT-NLS \ | ||
po/Makefile.in.in \ | ||
po/Makevars.template \ | ||
po/Rules-quot \ | ||
po/boldquot.sed \ | ||
po/[email protected] \ | ||
po/[email protected] \ | ||
po/insert-header.sin \ | ||
po/microtwitter.pot \ | ||
po/quot.sed \ | ||
po/remove-potcdate.sin |
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
|
||
srcdir=`dirname $0` | ||
test -z "$srcdir" && srcdir=. | ||
|
||
ORIGDIR=`pwd` | ||
cd $srcdir | ||
|
||
autoreconf -v --install || exit 1 | ||
#intltoolize -c --automake --force || exit 1 | ||
cd $ORIGDIR || exit $? | ||
|
||
$srcdir/configure --enable-debug "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
AC_INIT([MicroTwitter], [0.1], [[email protected]], [microtwitter]) | ||
AC_CONFIG_SRCDIR(Makefile.am) | ||
AC_CONFIG_HEADERS(config.h) | ||
AC_CONFIG_MACRO_DIR([m4]) | ||
|
||
AM_INIT_AUTOMAKE | ||
|
||
AC_ISC_POSIX | ||
AC_GNU_SOURCE | ||
AC_PROG_CC | ||
AC_PROG_LIBTOOL | ||
|
||
AM_GNU_GETTEXT(external) | ||
AM_GNU_GETTEXT_VERSION([0.12.1]) | ||
|
||
dnl Dependencies | ||
ELEMENTARY_REQUIRED=0.0.0 | ||
GLIB_REQUIRED=2.18.0 | ||
MOKOSUITE_REQUIRED=$PACKAGE_VERSION | ||
|
||
PKG_CHECK_MODULES(GLIB, | ||
glib-2.0 >= $GLIB_REQUIRED | ||
gobject-2.0 >= $GLIB_REQUIRED | ||
) | ||
|
||
PKG_CHECK_MODULES(ELEMENTARY, | ||
elementary >= $ELEMENTARY_REQUIRED | ||
) | ||
|
||
PKG_CHECK_MODULES(MOKOSUITE, | ||
mokosuite-utils >= $MOKOSUITE_REQUIRED | ||
mokosuite-ui >= $MOKOSUITE_REQUIRED | ||
) | ||
|
||
AC_ARG_ENABLE(debug, | ||
AC_HELP_STRING([--enable-debug], [Enable debug build (default: disabled)]), | ||
enable_debug=$enableval, | ||
enable_debug=no) | ||
|
||
if test "x$enable_debug" != "xno"; then | ||
AC_DEFINE(DEBUG, 1, [Define to enable debug build]) | ||
fi | ||
|
||
AC_SUBST(VERSION) | ||
|
||
EFL_WITH_BIN([edje], [edje-cc], [edje_cc]) | ||
|
||
|
||
AC_OUTPUT([ | ||
Makefile | ||
src/Makefile | ||
data/Makefile | ||
data/themes/Makefile | ||
data/themes/gry/Makefile | ||
po/Makefile.in | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
SUBDIRS = themes | ||
|
||
MAINTAINERCLEANFILES = Makefile.in | ||
|
||
#filesdir = $(datadir)/mokosuite/home | ||
#files_DATA = wallpaper_mountain.jpg | ||
|
||
#EXTRA_DIST = $(files_DATA) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SUBDIRS = gry | ||
|
||
MAINTAINERCLEANFILES = Makefile.in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
MAINTAINERCLEANFILES = Makefile.in | ||
|
||
filesdir = $(datadir)/microtwitter/themes | ||
files_DATA = gry.edj | ||
|
||
EDC_DEPS = | ||
|
||
EXTRA_DIST = $(files_DATA) $(EDC_DEPS) theme.edc | ||
|
||
clean-local: | ||
rm -f $(files_DATA) | ||
|
||
gry.edj: theme.edc $(EDC_DEPS) | ||
@edje_cc@ $< $@ |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
dnl Copyright (C) 2010 Vincent Torri <vtorri at univ-evry dot fr> | ||
dnl That code is public domain and can be freely used or copied. | ||
|
||
dnl Macro that check if a binary is built or not | ||
|
||
dnl Usage: EFL_ENABLE_BIN(binary) | ||
dnl Call AC_SUBST(BINARY_PRG) (BINARY is the uppercase of binary, - being transformed into _) | ||
dnl Define have_binary (- is transformed into _) | ||
dnl Define conditional BUILD_BINARY (BINARY is the uppercase of binary, - being transformed into _) | ||
|
||
AC_DEFUN([EFL_ENABLE_BIN], | ||
[ | ||
m4_pushdef([UP], m4_translit([[$1]], [-a-z], [_A-Z]))dnl | ||
m4_pushdef([DOWN], m4_translit([[$1]], [-A-Z], [_a-z]))dnl | ||
have_[]m4_defn([DOWN])="yes" | ||
dnl configure option | ||
AC_ARG_ENABLE([$1], | ||
[AC_HELP_STRING([--disable-$1], [disable building of ]DOWN)], | ||
[ | ||
if test "x${enableval}" = "xyes" ; then | ||
have_[]m4_defn([DOWN])="yes" | ||
else | ||
have_[]m4_defn([DOWN])="no" | ||
fi | ||
]) | ||
AC_MSG_CHECKING([whether to build ]DOWN[ binary]) | ||
AC_MSG_RESULT([$have_[]m4_defn([DOWN])]) | ||
if test "x$have_[]m4_defn([DOWN])" = "xyes"; then | ||
UP[]_PRG=DOWN[${EXEEXT}] | ||
fi | ||
AC_SUBST(UP[]_PRG) | ||
AM_CONDITIONAL(BUILD_[]UP, test "x$have_[]m4_defn([DOWN])" = "xyes") | ||
AS_IF([test "x$have_[]m4_defn([DOWN])" = "xyes"], [$2], [$3]) | ||
]) | ||
|
||
|
||
dnl Macro that check if a binary is built or not | ||
|
||
dnl Usage: EFL_WITH_BIN(package, binary, default_value) | ||
dnl Call AC_SUBST(_binary) (_binary is the lowercase of binary, - being transformed into _ by default, or the value set by the user) | ||
|
||
AC_DEFUN([EFL_WITH_BIN], | ||
[ | ||
m4_pushdef([DOWN], m4_translit([[$2]], [-A-Z], [_a-z]))dnl | ||
dnl configure option | ||
AC_ARG_WITH([$2], | ||
[AC_HELP_STRING([--with-$2=PATH], [specify a specific path to ]DOWN[ @<:@default=$3@:>@])], | ||
[_efl_with_binary=${withval}], | ||
[_efl_with_binary=$(pkg-config --variable=prefix $1)/bin/$3]) | ||
DOWN=${_efl_with_binary} | ||
AC_MSG_NOTICE(DOWN[ set to ${_efl_with_binary}]) | ||
with_binary_[]m4_defn([DOWN])=${_efl_with_binary} | ||
AC_SUBST(DOWN) | ||
]) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Makefile variables for PO directory in any package using GNU gettext. | ||
|
||
# Usually the message domain is the same as the package name. | ||
DOMAIN = $(PACKAGE) | ||
|
||
# These two variables depend on the location of this directory. | ||
subdir = po | ||
top_builddir = .. | ||
|
||
# These options get passed to xgettext. | ||
XGETTEXT_OPTIONS = --keyword=D_ --from-code=UTF-8 --foreign-user | ||
|
||
# This is the copyright holder that gets inserted into the header of the | ||
# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding | ||
# package. (Note that the msgstr strings, extracted from the package's | ||
# sources, belong to the copyright holder of the package.) Translators are | ||
# expected to transfer the copyright for their translations to this person | ||
# or entity, or to disclaim their copyright. The empty string stands for | ||
# the public domain; in this case the translators are expected to disclaim | ||
# their copyright. | ||
COPYRIGHT_HOLDER = | ||
|
||
# This is the email address or URL to which the translators shall report | ||
# bugs in the untranslated strings: | ||
# - Strings which are not entire sentences, see the maintainer guidelines | ||
# in the GNU gettext documentation, section 'Preparing Strings'. | ||
# - Strings which use unclear terms or require additional context to be | ||
# understood. | ||
# - Strings which make invalid assumptions about notation of date, time or | ||
# money. | ||
# - Pluralisation problems. | ||
# - Incorrect English spelling. | ||
# - Incorrect formatting. | ||
# It can be your email address, or a mailing list address where translators | ||
# can write to without being subscribed, or the URL of a web page through | ||
# which the translators can contact you. | ||
MSGID_BUGS_ADDRESS = | ||
|
||
# This is the list of locale categories, beyond LC_MESSAGES, for which the | ||
# message catalogs shall be used. It is usually empty. | ||
EXTRA_LOCALE_CATEGORIES = |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
MAINTAINERCLEANFILES = Makefile.in | ||
|
||
AM_CPPFLAGS = \ | ||
@ELEMENTARY_CFLAGS@ \ | ||
@MOKOSUITE_CFLAGS@ \ | ||
@GLIB_CFLAGS@ \ | ||
-DDATADIR=\""$(datadir)"\" \ | ||
-DLOCALEDIR=\"$(localedir)\" \ | ||
-Wall | ||
|
||
AM_LDFLAGS = \ | ||
@ELEMENTARY_LIBS@ \ | ||
@GLIB_LIBS@ \ | ||
@MOKOSUITE_LIBS@ | ||
|
||
|
||
bin_PROGRAMS = microtwitter | ||
|
||
microtwitter_SOURCES = \ | ||
globals.h \ | ||
main.c \ | ||
timeline.c \ | ||
timeline.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* MicroTwitter | ||
* Globals definitions | ||
* Copyright (C) 2009-2010 Daniele Ricci <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License along | ||
* with this program; if not, write to the Free Software Foundation, Inc., | ||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
*/ | ||
|
||
#ifndef __GLOBALS_H | ||
#define __GLOBALS_H | ||
|
||
#ifdef HAVE_CONFIG_H | ||
#include <config.h> | ||
#endif | ||
|
||
#include <Elementary.h> | ||
#include <libintl.h> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <mokosuite/utils/remote-config-service.h> | ||
|
||
// default log domain | ||
#undef EINA_LOG_DOMAIN_DEFAULT | ||
#define EINA_LOG_DOMAIN_DEFAULT _log_dom | ||
extern int _log_dom; | ||
|
||
#ifdef DEBUG | ||
#define LOG_LEVEL EINA_LOG_LEVEL_DBG | ||
#else | ||
#define LOG_LEVEL EINA_LOG_LEVEL_INFO | ||
#endif | ||
|
||
#define MICROTWITTER_DATADIR DATADIR "/microtwitter" | ||
|
||
extern RemoteConfigService* home_config; | ||
|
||
void get_screen_size(int *w, int *h); | ||
|
||
#endif /* __GLOBALS_H */ |
Oops, something went wrong.