seed r83 - trunk/src
- From: racarr svn gnome org
- To: svn-commits-list gnome org
- Subject: seed r83 - trunk/src
- Date: Mon, 3 Nov 2008 10:07:38 +0000 (UTC)
Author: racarr
Date: Mon Nov 3 10:07:38 2008
New Revision: 83
URL: http://svn.gnome.org/viewvc/seed?rev=83&view=rev
Log:
Set program name for the interpreter.
Modified:
trunk/src/main.c
Modified: trunk/src/main.c
==============================================================================
--- trunk/src/main.c (original)
+++ trunk/src/main.c Mon Nov 3 10:07:38 2008
@@ -23,6 +23,7 @@
#include "libseed/seed.h"
#include "readline/readline.h"
#include <stdlib.h>
+#include <girepository.h>
void seed_repl(int argc, char ** argv)
{
@@ -75,13 +76,11 @@
int main(int argc, char ** argv)
{
- // Apparently our name for glib logging gets set in g*_init. can we set
- // that ourselves so that when we do on-the-fly init, we don't lose that?
-
+ g_set_prgname("seed");
seed_init(&argc, &argv);
if (!g_irepository_require(g_irepository_get_default(),
- "GObject", 0, 0))
+ "GObject", 0, 0, 0))
g_critical("Unable to import GObject repository");
if(argc == 1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]