[alleyoop] Fixed Run dialog not popping up
- From: Jeffrey Stedfast <fejj src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [alleyoop] Fixed Run dialog not popping up
- Date: Tue, 24 Nov 2009 02:28:10 +0000 (UTC)
commit 7972a0bbea21f3240c3f13a06d9a07a3328ea2b5
Author: Jeffrey Stedfast <fejj gnome org>
Date: Mon Nov 23 21:26:40 2009 -0500
Fixed Run dialog not popping up
2009-11-23 Jeffrey Stedfast <fejj novell com>
* configure.in: Bumped version to 0.9.7
* src/vgrule-list.c (vg_rule_list_add_rule): Use
* g_get_home_dir()
instead of getenv("HOME") as this is probably more portable.
* src/main.c (main): If getopts_get_args() returns 0 arguments,
set args to NULL so that the Run command will prompt the user
for
a command to run.
ChangeLog | 13 ++++++++++++-
TODO | 10 ++++++++++
configure.in | 2 +-
src/main.c | 8 ++++++--
src/vgmemcheckprefs.c | 4 ++--
src/vgrule-list.c | 2 +-
6 files changed, 32 insertions(+), 7 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index adb4179..55599aa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,17 @@
2009-11-23 Jeffrey Stedfast <fejj novell com>
- * configure.in: Bumped version to 0.9.5
+ * configure.in: Bumped version to 0.9.7
+
+ * src/vgrule-list.c (vg_rule_list_add_rule): Use g_get_home_dir()
+ instead of getenv("HOME") as this is probably more portable.
+
+ * src/main.c (main): If getopts_get_args() returns 0 arguments,
+ set args to NULL so that the Run command will prompt the user for
+ a command to run.
+
+2009-11-23 Jeffrey Stedfast <fejj novell com>
+
+ * configure.in: Bumped version to 0.9.6
* src/vggeneralprefs.c (vg_general_prefs_init): Added new widget
to control the --track-origins Valgrind option, thanks to a patch
diff --git a/TODO b/TODO
new file mode 100644
index 0000000..3efb771
--- /dev/null
+++ b/TODO
@@ -0,0 +1,10 @@
+TODO List
+=========
+
+* When searching, highlight the part of the error that matches the search
+
+* Switch to using GRegex
+
+* Add tooltips for config options and other places
+
+* Might want to consider using the XML format from valgrind
diff --git a/configure.in b/configure.in
index 948b6cc..d53ba4f 100644
--- a/configure.in
+++ b/configure.in
@@ -1,7 +1,7 @@
dnl Process this file with autoconf to produce a configure script.
AC_INIT(configure.in)
-AM_INIT_AUTOMAKE(alleyoop, 0.9.6)
+AM_INIT_AUTOMAKE(alleyoop, 0.9.7)
AM_MAINTAINER_MODE
AM_CONFIG_HEADER(config.h)
diff --git a/src/main.c b/src/main.c
index f668c30..36941d7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -183,7 +183,7 @@ int main (int argc, char **argv)
GtkWidget *alleyoop;
const char **args;
char *srcdir_env;
- int i;
+ int i, n;
#ifdef ENABLE_NLS
bindtextdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
@@ -199,7 +199,11 @@ int main (int argc, char **argv)
ctx = getopts_context_new (argc, argv, options, GETOPTS_FLAG_ALLOW_SINGLE_DASH | GETOPTS_FLAG_BREAK_ON_FIRST_NONARG);
getopts_parse_args (ctx);
- args = getopts_get_args (ctx, NULL);
+ args = getopts_get_args (ctx, &n);
+
+ /* if there are no args, set args to NULL so that the Run command will prompt. */
+ if (n == 0)
+ args = NULL;
program = gnome_program_init (PACKAGE, VERSION, LIBGNOMEUI_MODULE, argc, argv,
GNOME_PARAM_HUMAN_READABLE_NAME, _("Alleyoop"),
diff --git a/src/vgmemcheckprefs.c b/src/vgmemcheckprefs.c
index 03e3d9d..393bb6e 100644
--- a/src/vgmemcheckprefs.c
+++ b/src/vgmemcheckprefs.c
@@ -158,7 +158,7 @@ decode_hex_range (const char *text)
inptr++;
while (*inptr) {
- retval = strtoul (inptr, &inend, 16);
+ retval = strtoul (inptr, (char **) &inend, 16);
if (inend == inptr)
break;
@@ -204,7 +204,7 @@ decode_hex_value (const char *text)
unsigned long int retval;
const char *inend;
- retval = strtoul (text, &inend, 16);
+ retval = strtoul (text, (char **) &inend, 16);
if (inend == text)
return NULL;
diff --git a/src/vgrule-list.c b/src/vgrule-list.c
index 9b43acb..7a0d99a 100644
--- a/src/vgrule-list.c
+++ b/src/vgrule-list.c
@@ -687,7 +687,7 @@ vg_rule_list_add_rule (VgRuleList *list, const char *title, GtkWindow *parent, V
if (list->filename == NULL) {
gconf = gconf_client_get_default ();
- list->filename = g_strdup_printf ("%s/.alleyoop.supp", getenv ("HOME"));
+ list->filename = g_strdup_printf ("%s/.alleyoop.supp", g_get_home_dir ());
gconf_client_set_string (gconf, SUPPRESSIONS_KEY, list->filename, NULL);
g_object_unref (gconf);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]