aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-logs.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-12-12 23:49:15 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-12-12 23:49:15 +0800
commit37d437ae1c69c8c70f5a289ec59363fe21836255 (patch)
treeb9743323a1a94c6ecf84cbe87892f6bbd38a6b19 /src/empathy-logs.c
parent7e20ee7f05f61981933be27e4332698a19cc04e6 (diff)
downloadgsoc2013-empathy-37d437ae1c69c8c70f5a289ec59363fe21836255.tar
gsoc2013-empathy-37d437ae1c69c8c70f5a289ec59363fe21836255.tar.gz
gsoc2013-empathy-37d437ae1c69c8c70f5a289ec59363fe21836255.tar.bz2
gsoc2013-empathy-37d437ae1c69c8c70f5a289ec59363fe21836255.tar.lz
gsoc2013-empathy-37d437ae1c69c8c70f5a289ec59363fe21836255.tar.xz
gsoc2013-empathy-37d437ae1c69c8c70f5a289ec59363fe21836255.tar.zst
gsoc2013-empathy-37d437ae1c69c8c70f5a289ec59363fe21836255.zip
Add empathy_init(), empathy_gtk_init() and empathy_gtk_init_with_args(). They have to be called by any process using libempathy.
svn path=/trunk/; revision=1966
Diffstat (limited to 'src/empathy-logs.c')
-rw-r--r--src/empathy-logs.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/src/empathy-logs.c b/src/empathy-logs.c
index f49207ebf..f805f9094 100644
--- a/src/empathy-logs.c
+++ b/src/empathy-logs.c
@@ -21,15 +21,13 @@
*/
#include <config.h>
-
-#include <string.h>
#include <stdlib.h>
-
#include <glib.h>
#include <gtk/gtk.h>
#include <libempathy/empathy-debug.h>
#include <libempathy-gtk/empathy-log-window.h>
+#include <libempathy-gtk/empathy-ui-utils.h>
static void
destroy_cb (GtkWidget *dialog,
@@ -43,16 +41,10 @@ main (int argc, char *argv[])
{
GtkWidget *window;
- gtk_init (&argc, &argv);
-
- if (g_getenv ("EMPATHY_TIMING") != NULL) {
- g_log_set_default_handler (tp_debug_timestamped_log_handler, NULL);
- }
- empathy_debug_set_flags (g_getenv ("EMPATHY_DEBUG"));
- tp_debug_divert_messages (g_getenv ("EMPATHY_LOGFILE"));
+ empathy_gtk_init (&argc, &argv);
+ g_set_application_name (PACKAGE_NAME);
+ gtk_window_set_default_icon_name ("empathy");
- gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
- PKGDATADIR G_DIR_SEPARATOR_S "icons");
window = empathy_log_window_show (NULL, NULL, FALSE, NULL);
g_signal_connect (window, "destroy",