gir-repository r152 - in trunk: . gir



Author: jobi
Date: Wed Oct 22 16:04:22 2008
New Revision: 152
URL: http://svn.gnome.org/viewvc/gir-repository?rev=152&view=rev

Log:

2008-10-22  Johan Bilien  <jobi via ecp fr>

	* gir/Gdk-custom.[ch]: few convenient GDK additions



Added:
   trunk/gir/Gdk-custom.c
   trunk/gir/Gdk-custom.h
Modified:
   trunk/ChangeLog
   trunk/gir/Makefile.am

Added: trunk/gir/Gdk-custom.c
==============================================================================
--- (empty file)
+++ trunk/gir/Gdk-custom.c	Wed Oct 22 16:04:22 2008
@@ -0,0 +1,17 @@
+/* Copyright 2008 litl, LLC. All Rights Reserved. */
+
+#include <config.h>
+
+#include "Gdk-custom.h"
+
+GdkRectangle*
+gdk_rectangle_new (void)
+{
+  return g_new0 (GdkRectangle, 1);
+}
+
+guint
+gdk_event_get_symbol (GdkEvent *event)
+{
+  return event->key.keyval;
+}

Added: trunk/gir/Gdk-custom.h
==============================================================================
--- (empty file)
+++ trunk/gir/Gdk-custom.h	Wed Oct 22 16:04:22 2008
@@ -0,0 +1,16 @@
+/* Copyright 2008 litl, LLC. All Rights Reserved. */
+
+#ifndef __GIREPO_GDK_CUSTOM_H__
+#define __GIREPO_GDK_CUSTOM_H__
+
+#include <glib.h>
+#include <gdk/gdk.h>
+
+G_BEGIN_DECLS
+
+GdkRectangle* gdk_rectangle_new    (void);
+guint         gdk_event_get_symbol (GdkEvent *event);
+
+G_END_DECLS
+
+#endif  /* __GIREPO_GDK_CUSTOM_H__ */

Modified: trunk/gir/Makefile.am
==============================================================================
--- trunk/gir/Makefile.am	(original)
+++ trunk/gir/Makefile.am	Wed Oct 22 16:04:22 2008
@@ -221,6 +221,20 @@
 BUILT_GIRSOURCES += GdkPixbuf-2.0.gir
 XPATH_TESTS += GdkPixbuf-2.0.xpath
 
+lib_LTLIBRARIES += libgirepo-Gdk-custom.la
+
+libgirepo_Gdk_custom_la_CPPFLAGS = \
+	$(GTK_CFLAGS)
+
+libgirepo_Gdk_custom_la_LIBADD = \
+	$(GTK_LIBS)
+
+libgirepo_Gdk_custom_la_LDFLAGS=$(COMMON_CUSTOM_LDFLAGS)
+
+libgirepo_Gdk_custom_la_SOURCES = \
+	Gdk-custom.c \
+	Gdk-custom.h
+
 GDK_INCLUDEDIR=`pkg-config --variable=includedir gdk-2.0`/gtk-2.0
 GDK_LIBDIR=`pkg-config --variable=libdir gdk-2.0`
 Gdk-2.0.gir: $(srcdir)/cairo-1.0.gir Pango-1.0.gir xlib-2.0.gir GdkPixbuf-2.0.gir $(G_IR_SCANNER)
@@ -242,6 +256,8 @@
              --pkg gdk-2.0 \
              -I$(GDK_INCLUDEDIR) \
 	     $(srcdir)/gdk-x11-2.0.c \
+	     $(srcdir)/Gdk-custom.h \
+	     $(srcdir)/Gdk-custom.c \
              $(GDK_INCLUDEDIR)/gdk/*.h
 BUILT_GIRSOURCES += Gdk-2.0.gir
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]