[libgepub] Rename _set_pagination() to match property (paginate)
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgepub] Rename _set_pagination() to match property (paginate)
- Date: Wed, 31 May 2017 16:03:32 +0000 (UTC)
commit 5a0a3f46572f50c33208b471b682c42779473089
Author: Bastien Nocera <hadess hadess net>
Date: Wed May 31 15:01:32 2017 +0200
Rename _set_pagination() to match property (paginate)
https://bugzilla.gnome.org/show_bug.cgi?id=768002
libgepub/gepub-widget.c | 8 ++++----
libgepub/gepub-widget.h | 2 +-
tests/test-gepub.c | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/libgepub/gepub-widget.c b/libgepub/gepub-widget.c
index 05cb06c..a7d7820 100644
--- a/libgepub/gepub-widget.c
+++ b/libgepub/gepub-widget.c
@@ -268,7 +268,7 @@ gepub_widget_set_property (GObject *object,
gepub_widget_set_doc (widget, g_value_get_object (value));
break;
case PROP_PAGINATE:
- gepub_widget_set_pagination (widget, g_value_get_boolean (value));
+ gepub_widget_set_paginate (widget, g_value_get_boolean (value));
break;
case PROP_CHAPTER:
gepub_doc_set_page (widget->doc, g_value_get_int (value));
@@ -479,15 +479,15 @@ gepub_widget_set_doc (GepubWidget *widget,
}
/**
- * gepub_widget_set_pagination:
+ * gepub_widget_set_paginate:
* @widget: a #GepubWidget
* @p: true if the widget should paginate
*
* Enable or disable pagination
*/
void
-gepub_widget_set_pagination (GepubWidget *widget,
- gboolean p)
+gepub_widget_set_paginate (GepubWidget *widget,
+ gboolean p)
{
widget->paginate = p;
reload_current_chapter (widget);
diff --git a/libgepub/gepub-widget.h b/libgepub/gepub-widget.h
index 9c141a8..8f74c19 100644
--- a/libgepub/gepub-widget.h
+++ b/libgepub/gepub-widget.h
@@ -46,7 +46,7 @@ GepubDoc *gepub_widget_get_doc (GepubWidget *wid
void gepub_widget_set_doc (GepubWidget *widget,
GepubDoc *doc);
-void gepub_widget_set_pagination (GepubWidget *widget, gboolean p);
+void gepub_widget_set_paginate (GepubWidget *widget, gboolean p);
gint gepub_widget_get_n_chapters (GepubWidget *widget);
gint gepub_widget_get_chapter (GepubWidget *widget);
diff --git a/tests/test-gepub.c b/tests/test-gepub.c
index 01cc511..7ba869e 100644
--- a/tests/test-gepub.c
+++ b/tests/test-gepub.c
@@ -86,7 +86,7 @@ button_pressed (GtkButton *button, GepubWidget *widget)
gepub_doc_go_next (doc);
} else if (!strcmp (gtk_button_get_label (button), "paginated")) {
gboolean b = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (button));
- gepub_widget_set_pagination (widget, b);
+ gepub_widget_set_paginate (widget, b);
} else if (!strcmp (gtk_button_get_label (button), "< page")) {
gepub_widget_page_prev (widget);
} else if (!strcmp (gtk_button_get_label (button), "page >")) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]