Changeset 2777

Show
Ignore:
Timestamp:
04/25/06 23:53:25
Author:
chipx86
Message:

- Add GTypes for the enums.
- Bump to version 0.4.0.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libnotify/ChangeLog

    r2758 r2777  
     1Tue Apr 25 23:52:42 PDT 2006  Christian Hammond <chipx86@chipx86.com> 
     2 
     3    * libnotify/Makefile.am: 
     4    * libnotify/notify.h: 
     5    * NEWS: 
     6    * configure.ac: 
     7      - Add GTypes for the enums. 
     8      - Bump to version 0.4.0. 
     9 
    110Fri Apr 21 15:35:40 PDT 2006  Christian Hammond <chipx86@chipx86.com> 
    211 
  • trunk/libnotify/NEWS

    r2755 r2777  
    1 version 0.3.3
     1version 0.4.0
    22    * Patch by M.S. to switch notify-send to use GOption instead of popt, 
    33      to add -v, --version, -h, and --hint options, and to rename 
    44      -T, --type to -c, --category. This also fixes assertions when calling 
    55      notify-send "". (Bug #41) 
    6     * Patch by jensgr to fix some C99 usage. (Bug #44) 
     6    * Fixed the short flag for --type to be -T in notify-send. (Bug #18) 
     7    * Fixed the help in notify-send to indicate that --expire-timeout 
     8      requires milliseconds, not seconds. (Bug #28) 
     9    * Fixed some C99 usage. Patch by jensgr. (Bug #44) 
     10    * Fixed notify-send on PPC. 
    711 
    812version 0.3.2 (23-January-2006): 
  • trunk/libnotify/configure.ac

    r2754 r2777  
    44dnl # Initialize autoconf 
    55dnl ################################################################ 
    6 AC_INIT(libnotify, 0.3.2, chipx86@gnupdate.org
     6AC_INIT(libnotify, 0.4.0, chipx86@chipx86.com
    77AC_PREREQ(2.50) 
    88AC_CONFIG_SRCDIR(config.h.in) 
     
    1414dnl ################################################################ 
    1515LIBGALAGO_MAJOR_VERSION=0 
    16 LIBGALAGO_MINOR_VERSION=3 
    17 LIBGALAGO_MICRO_VERSION=2 
     16LIBGALAGO_MINOR_VERSION=4 
     17LIBGALAGO_MICRO_VERSION=0 
    1818LIBGALAGO_DEVEL_VERSION=0 
    1919 
     
    9494AC_SUBST(PACKAGE_LIBS) 
    9595 
    96 gdk_modules="gdk-2.0 gdk-pixbuf-2.0" 
    97 PKG_CHECK_MODULES(GDK, [$gdk_modules], have_gdk=yes, 
    98 [ 
    99     have_gdk=no 
    100  
    101     AC_WARN("Some test apps will not be built") 
    102 ]) 
    103  
    104 AM_CONDITIONAL(HAVE_GDK, test "x$have_gdk" = "xyes") 
    105  
    106 AC_SUBST(GDK_CFLAGS) 
    107 AC_SUBST(GDK_LIBS) 
    108  
    10996GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0` 
    11097AC_SUBST(GLIB_GENMARSHAL) 
     
    141128Makefile 
    142129libnotify.pc 
    143 libnotify.spec 
    144130libnotify/Makefile 
    145131tests/Makefile 
  • trunk/libnotify/libnotify/Makefile.am

    r2479 r2777  
    33MARSHAL_PREFIX = notify_marshal 
    44MARSHAL_FILE = notify-marshal 
     5ENUM_FILE = notify-enum-types 
    56 
    67lib_LTLIBRARIES = libnotify.la 
    78 
    8 notifyinc_HEADERS = \ 
     9notify_headers = \ 
    910    notify.h \ 
    1011    notification.h 
     12 
     13notifyinc_HEADERS = \ 
     14    $(notify_headers) \ 
     15    $(ENUM_FILE).h 
    1116 
    1217noinst_HEADERS = \ 
     
    1419    internal.h 
    1520 
     21BUILT_SOURCES = \ 
     22    $(ENUM_FILE).h \ 
     23    $(ENUM_FILE).c \ 
     24    notify-marshal.c \ 
     25    notify-marshal.h 
     26 
    1627libnotify_la_SOURCES = \ 
    1728    notify.c \ 
    1829    notification.c \ 
     30    notify-enum-types.c \ 
    1931    notify-marshal.c 
    2032 
     
    2436libnotify_la_LDFLAGS = \ 
    2537    -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) 
    26  
    27 BUILT_SOURCES = \ 
    28     notify-marshal.c \ 
    29     notify-marshal.h 
    3038 
    3139notify-marshal.h: notify-marshal.list 
     
    3745        --body > notify-marshal.c 
    3846 
     47$(ENUM_FILE).h: s-enum-types-h 
     48    @true 
     49s-enum-types-h: $(notify_headers) Makefile 
     50    ( cd $(srcdir) && glib-mkenums \ 
     51            --fhead "#ifndef _NOTIFY_ENUM_TYPES_H_\n#define _NOTIFY_ENUM_TYPES_H_\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \ 
     52            --fprod "/* enumerations from \"@filename@\" */\n" \ 
     53            --vhead "GType @enum_name@_get_type(void);\n#define NOTIFY_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \ 
     54            --ftail "G_END_DECLS\n\n#endif /* _NOTIFY_ENUM_TYPES_H_ */" \ 
     55        $(notify_headers) ) > tmp-$(ENUM_FILE).h \ 
     56    && (cmp -s tmp-$(ENUM_FILE).h $(ENUM_FILE).h || cp tmp-$(ENUM_FILE).h $(ENUM_FILE).h ) \ 
     57    && rm -f tmp-$(ENUM_FILE).h \ 
     58    && echo timestamp > $(@F) 
     59 
     60$(ENUM_FILE).c: s-enum-types-c 
     61    @true 
     62s-enum-types-c: $(notify_headers) Makefile 
     63    ( cd $(srcdir) && glib-mkenums \ 
     64            --fhead "#include <libnotify/notify.h>" \ 
     65            --fprod "\n/* enumerations from \"@filename@\" */" \ 
     66            --vhead "GType\n@enum_name@_get_type (void)\n{\n  static GType etype = 0;\n  if (etype == 0) {\n    static const G@Type@Value values[] = {"     \ 
     67            --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \ 
     68            --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \ 
     69        $(notify_headers) ) > tmp-$(ENUM_FILE).c \ 
     70    && (cmp -s tmp-$(ENUM_FILE).c $(ENUM_FILE).c || cp tmp-$(ENUM_FILE).c $(ENUM_FILE).c ) \ 
     71    && rm -f tmp-$(ENUM_FILE).c \ 
     72    && echo timestamp > $(@F) 
     73 
    3974EXTRA_DIST = \ 
    40     notify-marshal.list 
     75    notify-marshal.list \ 
     76    $(ENUM_FILE).h 
    4177 
    4278CLEANFILES = \ 
    4379    notify-marshal.c \ 
    44     notify-marshal.h 
     80    notify-marshal.h \ 
     81    $(ENUM_FILE).c \ 
     82    $(ENUM_FILE).h \ 
     83    s-enum-types-c \ 
     84    s-enum-types-h 
    4585 
    4686INCLUDES = \ 
  • trunk/libnotify/libnotify/notify.h

    r2513 r2777  
    2626 
    2727#include <libnotify/notification.h> 
     28#include <libnotify/notify-enum-types.h> 
    2829 
    2930/**************************************************************************/