corebird: update to 0.7

This commit is contained in:
Enno Boland 2014-04-17 16:25:18 +02:00
parent 8aa48b07ff
commit 03f7b7d4ea
3 changed files with 58 additions and 16 deletions

View File

@ -1,13 +0,0 @@
diff --git src/UserStream.vala src/UserStream.vala
index 3946c5d..5857d4e 100644
--- src/UserStream.vala
+++ src/UserStream.vala
@@ -112,7 +112,7 @@ class UserStream : Object {
*/
private bool timeout_cb() {
message ("Restarting...");
-// start ();
+ start ();
return false;
}

View File

@ -0,0 +1,55 @@
diff --git src/Corebird.vala src/Corebird.vala
index cf3c7c3..aebec51 100644
--- src/Corebird.vala
+++ src/Corebird.vala
@@ -20,7 +20,7 @@ using Gtk;
class Corebird : Gtk.Application {
// TODO: Is the static here needed?
public static Sql.Database db;
- private static GLib.OutputStream log_stream;
+ //private static GLib.OutputStream log_stream;
public static GLib.Menu account_menu;
const GLib.ActionEntry app_entries[] = {
@@ -237,12 +237,12 @@ class Corebird : Gtk.Application {
private void init_log_files () { // {{{
/* First, create that log file */
var now = new GLib.DateTime.now_local ();
- File log_file = File.new_for_path (Dirs.data ("logs/%s.txt".printf (now.to_string())));
- try {
- log_stream = log_file.create(FileCreateFlags.REPLACE_DESTINATION);
- } catch (GLib.Error e) {
- warning ("Couldn't open log file: %s", e.message);
- }
+ //File log_file = File.new_for_path (Dirs.data ("logs/%s.txt".printf (now.to_string())));
+ //try {
+ //log_stream = log_file.create(FileCreateFlags.REPLACE_DESTINATION);
+ //} catch (GLib.Error e) {
+ //warning ("Couldn't open log file: %s", e.message);
+ //}
/* If we do not run on the command line, we simply redirect stdout
to a log file*/
GLib.Log.set_handler (null, LogLevelFlags.LEVEL_MESSAGE, print_to_log_file);
@@ -331,14 +331,14 @@ class Corebird : Gtk.Application {
else
out_string = "(%s) %s".printf (log_domain, msg);
- if (log_stream != null) {
- try {
- log_stream.write_all (out_string.data, null);
- log_stream.flush ();
- } catch (GLib.Error e) {
- warning (e.message);
- }
- }
+ //if (log_stream != null) {
+ //try {
+ //log_stream.write_all (out_string.data, null);
+ //log_stream.flush ();
+ //} catch (GLib.Error e) {
+ //warning (e.message);
+ //}
+ //}
#if !__DEV
if (flags != LogLevelFlags.LEVEL_DEBUG)

View File

@ -1,14 +1,14 @@
# Template build for 'corebird'.
pkgname=corebird
version=0.6.1
revision=3
version=0.7
revision=1
short_desc="Native Gtk+ Twitter Client"
hostmakedepends="pkg-config intltool cmake vala glib-devel libgee08-devel"
maintainer="Enno Boland <eb@s01.de>"
license="GPLv3"
homepage="http://corebird.baedert.org/"
distfiles="https://github.com/baedert/corebird/archive/${version}.tar.gz"
checksum="d18c3427212eb8ef5e99960b2f9ee001ccdef23c9057e89308e20d0490a33e1d"
checksum=2f83d3b2d8792203dc92b644e333de0fb78947e366efc22d8d77e3f63cae1fd1
makedepends="gtk+3-devel rest-devel libgee08-devel sqlite-devel
libsoup-devel libnotify-devel json-glib-devel"