gucharmap r1815 - trunk/gucharmap
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gucharmap r1815 - trunk/gucharmap
- Date: Sun, 15 Jun 2008 21:36:09 +0000 (UTC)
Author: chpe
Date: Sun Jun 15 21:36:08 2008
New Revision: 1815
URL: http://svn.gnome.org/viewvc/gucharmap?rev=1815&view=rev
Log:
Add gucharmap_charmap_{next,previous}_chapter.
Modified:
trunk/gucharmap/Makefile.am
trunk/gucharmap/gucharmap-charmap.c
trunk/gucharmap/gucharmap-charmap.h
trunk/gucharmap/gucharmap-window.c
Modified: trunk/gucharmap/Makefile.am
==============================================================================
--- trunk/gucharmap/Makefile.am (original)
+++ trunk/gucharmap/Makefile.am Sun Jun 15 21:36:08 2008
@@ -67,6 +67,7 @@
-DLOCALEDIR=\"$(datadir)/locale\" \
-DG_DISABLE_SINGLE_INCLUDES \
-DPANGO_DISABLE_SINGLE_INCLUDES \
+ -DATK_DISABLE_SINGLE_INCLUDES \
-DGDK_DISABLE_SINGLE_INCLUDES \
-DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES \
-DGTK_DISABLE_SINGLE_INCLUDES \
@@ -125,6 +126,7 @@
-DLOCALEDIR=\"$(datadir)/locale\" \
-DG_DISABLE_SINGLE_INCLUDES \
-DPANGO_DISABLE_SINGLE_INCLUDES \
+ -DATK_DISABLE_SINGLE_INCLUDES \
-DGDK_DISABLE_SINGLE_INCLUDES \
-DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES \
-DGTK_DISABLE_SINGLE_INCLUDES \
Modified: trunk/gucharmap/gucharmap-charmap.c
==============================================================================
--- trunk/gucharmap/gucharmap-charmap.c (original)
+++ trunk/gucharmap/gucharmap-charmap.c Sun Jun 15 21:36:08 2008
@@ -1256,6 +1256,22 @@
return gucharmap_chapters_view_get_selected (priv->chapters_view);
}
+void
+gucharmap_charmap_next_chapter (GucharmapCharmap *charmap)
+{
+ GucharmapCharmapPrivate *priv = charmap->priv;
+
+ gucharmap_chapters_view_next (priv->chapters_view);
+}
+
+void
+gucharmap_charmap_previous_chapter (GucharmapCharmap *charmap)
+{
+ GucharmapCharmapPrivate *priv = charmap->priv;
+
+ gucharmap_chapters_view_previous (priv->chapters_view);
+}
+
GucharmapChartable *
gucharmap_charmap_get_chartable (GucharmapCharmap *charmap)
{
Modified: trunk/gucharmap/gucharmap-charmap.h
==============================================================================
--- trunk/gucharmap/gucharmap-charmap.h (original)
+++ trunk/gucharmap/gucharmap-charmap.h Sun Jun 15 21:36:08 2008
@@ -76,6 +76,9 @@
const gchar *chapter);
char * gucharmap_charmap_get_active_chapter (GucharmapCharmap *charmap);
+void gucharmap_charmap_next_chapter (GucharmapCharmap *charmap);
+void gucharmap_charmap_previous_chapter (GucharmapCharmap *charmap);
+
void gucharmap_charmap_set_font_desc (GucharmapCharmap *charmap,
PangoFontDescription *font_desc);
Modified: trunk/gucharmap/gucharmap-window.c
==============================================================================
--- trunk/gucharmap/gucharmap-window.c (original)
+++ trunk/gucharmap/gucharmap-window.c Sun Jun 15 21:36:08 2008
@@ -548,14 +548,14 @@
next_chapter (GtkAction *action,
GucharmapWindow *guw)
{
- gucharmap_chapters_view_next (gucharmap_charmap_get_chapters_view (guw->charmap));
+ gucharmap_charmap_next_chapter (guw->charmap);
}
static void
prev_chapter (GtkAction *action,
GucharmapWindow *guw)
{
- gucharmap_chapters_view_previous (gucharmap_charmap_get_chapters_view (guw->charmap));
+ gucharmap_charmap_previous_chapter (guw->charmap);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]