ClipIt-v1.3.9-19122010001

+ Fixed: Fixed error while compiling without indicator support.
+ Fixed: Fixed a couple of memory leaks.

Changes to be committed:

	modified:   ChangeLog
	modified:   autom4te.cache/output.0
	modified:   autom4te.cache/output.1
	modified:   autom4te.cache/requests
	modified:   autom4te.cache/traces.1
	modified:   configure
	modified:   configure.in
	modified:   src/history.c
	modified:   src/main.c
	modified:   src/manage.c
	modified:   src/preferences.c
This commit is contained in:
Cristian Henzel 2010-12-19 14:21:42 +02:00
parent 3f63024d75
commit e3b5ac7395
11 changed files with 47 additions and 43 deletions

View File

@ -1,3 +1,7 @@
ClipIt-v1.3.9-19122010001 - 19 Dec. 2010
+ Fixed: Fixed error while compiling without indicator support.
+ Fixed: Fixed a couple of memory leaks.
ClipIt-v1.3.8-18122010002 - 18 Dec. 2010 ClipIt-v1.3.8-18122010002 - 18 Dec. 2010
+ Fixed: Updated configure script for 1.3.8. + Fixed: Updated configure script for 1.3.8.

View File

@ -1,6 +1,6 @@
@%:@! /bin/sh @%:@! /bin/sh
@%:@ Guess values for system-dependent variables and create Makefiles. @%:@ Guess values for system-dependent variables and create Makefiles.
@%:@ Generated by GNU Autoconf 2.67 for clipit 1.3.8. @%:@ Generated by GNU Autoconf 2.67 for clipit 1.3.9.
@%:@ @%:@
@%:@ Report bugs to <oss@rspwn.com>. @%:@ Report bugs to <oss@rspwn.com>.
@%:@ @%:@
@ -552,8 +552,8 @@ MAKEFLAGS=
# Identity of this package. # Identity of this package.
PACKAGE_NAME='clipit' PACKAGE_NAME='clipit'
PACKAGE_TARNAME='clipit' PACKAGE_TARNAME='clipit'
PACKAGE_VERSION='1.3.8' PACKAGE_VERSION='1.3.9'
PACKAGE_STRING='clipit 1.3.8' PACKAGE_STRING='clipit 1.3.9'
PACKAGE_BUGREPORT='oss@rspwn.com' PACKAGE_BUGREPORT='oss@rspwn.com'
PACKAGE_URL='' PACKAGE_URL=''
@ -1327,7 +1327,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing. # Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh. # This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF cat <<_ACEOF
\`configure' configures clipit 1.3.8 to adapt to many kinds of systems. \`configure' configures clipit 1.3.9 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]... Usage: $0 [OPTION]... [VAR=VALUE]...
@ -1397,7 +1397,7 @@ fi
if test -n "$ac_init_help"; then if test -n "$ac_init_help"; then
case $ac_init_help in case $ac_init_help in
short | recursive ) echo "Configuration of clipit 1.3.8:";; short | recursive ) echo "Configuration of clipit 1.3.9:";;
esac esac
cat <<\_ACEOF cat <<\_ACEOF
@ -1510,7 +1510,7 @@ fi
test -n "$ac_init_help" && exit $ac_status test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then if $ac_init_version; then
cat <<\_ACEOF cat <<\_ACEOF
clipit configure 1.3.8 clipit configure 1.3.9
generated by GNU Autoconf 2.67 generated by GNU Autoconf 2.67
Copyright (C) 2010 Free Software Foundation, Inc. Copyright (C) 2010 Free Software Foundation, Inc.
@ -1879,7 +1879,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake. running configure, to aid debugging if configure makes a mistake.
It was created by clipit $as_me 1.3.8, which was It was created by clipit $as_me 1.3.9, which was
generated by GNU Autoconf 2.67. Invocation command line was generated by GNU Autoconf 2.67. Invocation command line was
$ $0 $@ $ $0 $@
@ -2695,7 +2695,7 @@ fi
# Define the identity of the package. # Define the identity of the package.
PACKAGE=clipit PACKAGE=clipit
VERSION=1.3.8 VERSION=1.3.9
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
@ -9760,7 +9760,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their # report actual input values of CONFIG_FILES etc. instead of their
# values after options handling. # values after options handling.
ac_log=" ac_log="
This file was extended by clipit $as_me 1.3.8, which was This file was extended by clipit $as_me 1.3.9, which was
generated by GNU Autoconf 2.67. Invocation command line was generated by GNU Autoconf 2.67. Invocation command line was
CONFIG_FILES = $CONFIG_FILES CONFIG_FILES = $CONFIG_FILES
@ -9826,7 +9826,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\ ac_cs_version="\\
clipit config.status 1.3.8 clipit config.status 1.3.9
configured by $0, generated by GNU Autoconf 2.67, configured by $0, generated by GNU Autoconf 2.67,
with options \\"\$ac_cs_config\\" with options \\"\$ac_cs_config\\"

View File

@ -1,6 +1,6 @@
@%:@! /bin/sh @%:@! /bin/sh
@%:@ Guess values for system-dependent variables and create Makefiles. @%:@ Guess values for system-dependent variables and create Makefiles.
@%:@ Generated by GNU Autoconf 2.67 for clipit 1.3.8. @%:@ Generated by GNU Autoconf 2.67 for clipit 1.3.9.
@%:@ @%:@
@%:@ Report bugs to <oss@rspwn.com>. @%:@ Report bugs to <oss@rspwn.com>.
@%:@ @%:@
@ -552,8 +552,8 @@ MAKEFLAGS=
# Identity of this package. # Identity of this package.
PACKAGE_NAME='clipit' PACKAGE_NAME='clipit'
PACKAGE_TARNAME='clipit' PACKAGE_TARNAME='clipit'
PACKAGE_VERSION='1.3.8' PACKAGE_VERSION='1.3.9'
PACKAGE_STRING='clipit 1.3.8' PACKAGE_STRING='clipit 1.3.9'
PACKAGE_BUGREPORT='oss@rspwn.com' PACKAGE_BUGREPORT='oss@rspwn.com'
PACKAGE_URL='' PACKAGE_URL=''
@ -1327,7 +1327,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing. # Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh. # This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF cat <<_ACEOF
\`configure' configures clipit 1.3.8 to adapt to many kinds of systems. \`configure' configures clipit 1.3.9 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]... Usage: $0 [OPTION]... [VAR=VALUE]...
@ -1397,7 +1397,7 @@ fi
if test -n "$ac_init_help"; then if test -n "$ac_init_help"; then
case $ac_init_help in case $ac_init_help in
short | recursive ) echo "Configuration of clipit 1.3.8:";; short | recursive ) echo "Configuration of clipit 1.3.9:";;
esac esac
cat <<\_ACEOF cat <<\_ACEOF
@ -1510,7 +1510,7 @@ fi
test -n "$ac_init_help" && exit $ac_status test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then if $ac_init_version; then
cat <<\_ACEOF cat <<\_ACEOF
clipit configure 1.3.8 clipit configure 1.3.9
generated by GNU Autoconf 2.67 generated by GNU Autoconf 2.67
Copyright (C) 2010 Free Software Foundation, Inc. Copyright (C) 2010 Free Software Foundation, Inc.
@ -1879,7 +1879,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake. running configure, to aid debugging if configure makes a mistake.
It was created by clipit $as_me 1.3.8, which was It was created by clipit $as_me 1.3.9, which was
generated by GNU Autoconf 2.67. Invocation command line was generated by GNU Autoconf 2.67. Invocation command line was
$ $0 $@ $ $0 $@
@ -2695,7 +2695,7 @@ fi
# Define the identity of the package. # Define the identity of the package.
PACKAGE=clipit PACKAGE=clipit
VERSION=1.3.8 VERSION=1.3.9
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
@ -9760,7 +9760,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their # report actual input values of CONFIG_FILES etc. instead of their
# values after options handling. # values after options handling.
ac_log=" ac_log="
This file was extended by clipit $as_me 1.3.8, which was This file was extended by clipit $as_me 1.3.9, which was
generated by GNU Autoconf 2.67. Invocation command line was generated by GNU Autoconf 2.67. Invocation command line was
CONFIG_FILES = $CONFIG_FILES CONFIG_FILES = $CONFIG_FILES
@ -9826,7 +9826,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\ ac_cs_version="\\
clipit config.status 1.3.8 clipit config.status 1.3.9
configured by $0, generated by GNU Autoconf 2.67, configured by $0, generated by GNU Autoconf 2.67,
with options \\"\$ac_cs_config\\" with options \\"\$ac_cs_config\\"

View File

@ -75,18 +75,18 @@
'AC_LIB_PREPARE_PREFIX' => 1, 'AC_LIB_PREPARE_PREFIX' => 1,
'AM_XGETTEXT_OPTION_INIT' => 1, 'AM_XGETTEXT_OPTION_INIT' => 1,
'AC_DEFUN' => 1, 'AC_DEFUN' => 1,
'AM_PROG_MKDIR_P' => 1,
'AM_GLIB_GNU_GETTEXT' => 1, 'AM_GLIB_GNU_GETTEXT' => 1,
'gl_AC_HEADER_STDINT_H' => 1, 'gl_AC_HEADER_STDINT_H' => 1,
'AM_PROG_MKDIR_P' => 1,
'AM_AUTOMAKE_VERSION' => 1, 'AM_AUTOMAKE_VERSION' => 1,
'gl_SIZE_MAX' => 1, 'gl_SIZE_MAX' => 1,
'AM_MISSING_HAS_RUN' => 1, 'AM_MISSING_HAS_RUN' => 1,
'AC_LIB_RPATH' => 1, 'AC_LIB_RPATH' => 1,
'AC_TYPE_LONG_LONG_INT' => 1, 'AC_TYPE_LONG_LONG_INT' => 1,
'AM_SUBST_NOTMAKE' => 1, 'AM_SUBST_NOTMAKE' => 1,
'AM_PATH_GTK_2_0' => 1,
'AM_MISSING_PROG' => 1, 'AM_MISSING_PROG' => 1,
'gt_PRINTF_POSIX' => 1, 'gt_PRINTF_POSIX' => 1,
'AM_PATH_GTK_2_0' => 1,
'IT_PO_SUBDIR' => 1, 'IT_PO_SUBDIR' => 1,
'AM_GNU_GETTEXT_VERSION' => 1, 'AM_GNU_GETTEXT_VERSION' => 1,
'AC_LIB_PROG_LD_GNU' => 1, 'AC_LIB_PROG_LD_GNU' => 1,

View File

@ -8,7 +8,7 @@ m4trace:aclocal.m4:2010: -1- m4_include([m4/lib-prefix.m4])
m4trace:aclocal.m4:2011: -1- m4_include([m4/nls.m4]) m4trace:aclocal.m4:2011: -1- m4_include([m4/nls.m4])
m4trace:aclocal.m4:2012: -1- m4_include([m4/po.m4]) m4trace:aclocal.m4:2012: -1- m4_include([m4/po.m4])
m4trace:aclocal.m4:2013: -1- m4_include([m4/progtest.m4]) m4trace:aclocal.m4:2013: -1- m4_include([m4/progtest.m4])
m4trace:configure.in:5: -1- AC_INIT([clipit], [1.3.8], [oss@rspwn.com]) m4trace:configure.in:5: -1- AC_INIT([clipit], [1.3.9], [oss@rspwn.com])
m4trace:configure.in:5: -1- m4_pattern_forbid([^_?A[CHUM]_]) m4trace:configure.in:5: -1- m4_pattern_forbid([^_?A[CHUM]_])
m4trace:configure.in:5: -1- m4_pattern_forbid([_AC_]) m4trace:configure.in:5: -1- m4_pattern_forbid([_AC_])
m4trace:configure.in:5: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS']) m4trace:configure.in:5: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'])

20
configure vendored
View File

@ -1,6 +1,6 @@
#! /bin/sh #! /bin/sh
# Guess values for system-dependent variables and create Makefiles. # Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.67 for clipit 1.3.8. # Generated by GNU Autoconf 2.67 for clipit 1.3.9.
# #
# Report bugs to <oss@rspwn.com>. # Report bugs to <oss@rspwn.com>.
# #
@ -552,8 +552,8 @@ MAKEFLAGS=
# Identity of this package. # Identity of this package.
PACKAGE_NAME='clipit' PACKAGE_NAME='clipit'
PACKAGE_TARNAME='clipit' PACKAGE_TARNAME='clipit'
PACKAGE_VERSION='1.3.8' PACKAGE_VERSION='1.3.9'
PACKAGE_STRING='clipit 1.3.8' PACKAGE_STRING='clipit 1.3.9'
PACKAGE_BUGREPORT='oss@rspwn.com' PACKAGE_BUGREPORT='oss@rspwn.com'
PACKAGE_URL='' PACKAGE_URL=''
@ -1327,7 +1327,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing. # Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh. # This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF cat <<_ACEOF
\`configure' configures clipit 1.3.8 to adapt to many kinds of systems. \`configure' configures clipit 1.3.9 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]... Usage: $0 [OPTION]... [VAR=VALUE]...
@ -1397,7 +1397,7 @@ fi
if test -n "$ac_init_help"; then if test -n "$ac_init_help"; then
case $ac_init_help in case $ac_init_help in
short | recursive ) echo "Configuration of clipit 1.3.8:";; short | recursive ) echo "Configuration of clipit 1.3.9:";;
esac esac
cat <<\_ACEOF cat <<\_ACEOF
@ -1510,7 +1510,7 @@ fi
test -n "$ac_init_help" && exit $ac_status test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then if $ac_init_version; then
cat <<\_ACEOF cat <<\_ACEOF
clipit configure 1.3.8 clipit configure 1.3.9
generated by GNU Autoconf 2.67 generated by GNU Autoconf 2.67
Copyright (C) 2010 Free Software Foundation, Inc. Copyright (C) 2010 Free Software Foundation, Inc.
@ -1879,7 +1879,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake. running configure, to aid debugging if configure makes a mistake.
It was created by clipit $as_me 1.3.8, which was It was created by clipit $as_me 1.3.9, which was
generated by GNU Autoconf 2.67. Invocation command line was generated by GNU Autoconf 2.67. Invocation command line was
$ $0 $@ $ $0 $@
@ -2695,7 +2695,7 @@ fi
# Define the identity of the package. # Define the identity of the package.
PACKAGE=clipit PACKAGE=clipit
VERSION=1.3.8 VERSION=1.3.9
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
@ -9760,7 +9760,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their # report actual input values of CONFIG_FILES etc. instead of their
# values after options handling. # values after options handling.
ac_log=" ac_log="
This file was extended by clipit $as_me 1.3.8, which was This file was extended by clipit $as_me 1.3.9, which was
generated by GNU Autoconf 2.67. Invocation command line was generated by GNU Autoconf 2.67. Invocation command line was
CONFIG_FILES = $CONFIG_FILES CONFIG_FILES = $CONFIG_FILES
@ -9826,7 +9826,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\ ac_cs_version="\\
clipit config.status 1.3.8 clipit config.status 1.3.9
configured by $0, generated by GNU Autoconf 2.67, configured by $0, generated by GNU Autoconf 2.67,
with options \\"\$ac_cs_config\\" with options \\"\$ac_cs_config\\"

View File

@ -2,7 +2,7 @@
# Autoconf/automake. # Autoconf/automake.
# ------------------------------------------------------------------------------- # -------------------------------------------------------------------------------
AC_PREREQ([2.5]) AC_PREREQ([2.5])
AC_INIT([clipit], [1.3.8], [oss@rspwn.com]) AC_INIT([clipit], [1.3.9], [oss@rspwn.com])
AM_INIT_AUTOMAKE([AC_PACKAGE_TARNAME()], [AC_PACKAGE_VERSION()]) AM_INIT_AUTOMAKE([AC_PACKAGE_TARNAME()], [AC_PACKAGE_VERSION()])
AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_MACRO_DIR([m4])

View File

@ -102,7 +102,9 @@ void save_history()
/* Refresh indicator menu. Temporary solution until /* Refresh indicator menu. Temporary solution until
* getting the visible status of the menu is supported by the API * getting the visible status of the menu is supported by the API
*/ */
#ifdef HAVE_APPINDICATOR
create_app_indicator(0); create_app_indicator(0);
#endif
} }
/* Checks if item should be included in history and calls append */ /* Checks if item should be included in history and calls append */

View File

@ -25,7 +25,6 @@
#include <glib.h> #include <glib.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h>
#include <gtk/gtk.h> #include <gtk/gtk.h>
#ifdef HAVE_APPINDICATOR #ifdef HAVE_APPINDICATOR
#include <libappindicator/app-indicator.h> #include <libappindicator/app-indicator.h>
@ -46,7 +45,7 @@ static GtkClipboard* primary;
static GtkClipboard* clipboard; static GtkClipboard* clipboard;
#ifdef HAVE_APPINDICATOR #ifdef HAVE_APPINDICATOR
static AppIndicator *indicator; static AppIndicator *indicator;
GtkWidget *indicator_menu = NULL; static GtkWidget *indicator_menu = NULL;
#else #else
static GtkStatusIcon *status_icon; static GtkStatusIcon *status_icon;
static GtkWidget *statusicon_menu = NULL; static GtkWidget *statusicon_menu = NULL;
@ -503,8 +502,7 @@ static gboolean show_actions_menu(gpointer data)
static gboolean show_history_menu_full(gpointer data) static gboolean show_history_menu_full(gpointer data)
{ {
/* Declare some variables */ /* Declare some variables */
GtkWidget *menu, *menu_item, GtkWidget *menu, *menu_item, *menu_image, *item_label;
*menu_image, *item_label;
/* Create the menu */ /* Create the menu */
menu = gtk_menu_new(); menu = gtk_menu_new();
@ -1050,7 +1048,7 @@ static void clipit_init()
} }
/* This is Sparta! */ /* This is Sparta! */
int main(int argc, char *argv[]) int main(int argc, char **argv)
{ {
bindtextdomain(GETTEXT_PACKAGE, CLIPITLOCALEDIR); bindtextdomain(GETTEXT_PACKAGE, CLIPITLOCALEDIR);
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
@ -1116,11 +1114,12 @@ int main(int argc, char *argv[])
g_free(prefs.actions_key); g_free(prefs.actions_key);
g_free(prefs.menu_key); g_free(prefs.menu_key);
g_free(prefs.search_key); g_free(prefs.search_key);
g_slist_foreach(history, (GFunc)g_free, NULL);
g_slist_free(history); g_slist_free(history);
g_free(primary_text); g_free(primary_text);
g_free(clipboard_text); g_free(clipboard_text);
g_free(synchronized_text); g_free(synchronized_text);
/* Exit */ /* Exit */
return 0; return 0;
} }

View File

@ -242,9 +242,7 @@ gboolean show_search()
if(gtk_grab_get_current()) if(gtk_grab_get_current())
return FALSE; return FALSE;
/* Declare some variables */ /* Declare some variables */
GtkWidget *frame, *label, GtkWidget *hbox;
*alignment, *hbox,
*vbox;
GtkTreeViewColumn *tree_column; GtkTreeViewColumn *tree_column;

View File

@ -168,6 +168,7 @@ static void first_run_check()
prefs.search_key = DEF_SEARCH_KEY; prefs.search_key = DEF_SEARCH_KEY;
save_preferences(); save_preferences();
} }
g_free(rc_file);
} }
/* Ask the user if he wants to delete the history file and act accordingly */ /* Ask the user if he wants to delete the history file and act accordingly */