[balsa] Build with all widgets



commit 1c869964710142f5241a3e36032598f750c382d7
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Wed Oct 28 18:02:00 2009 -0400

    Build with all widgets

 ChangeLog       |    7 +++++++
 libbalsa/html.c |   49 +++++++++++++++++++++++++++++++++++++++++++------
 2 files changed, 50 insertions(+), 6 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2eec1fb..ced1f3a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-10-28  Peter Bloomfield
+
+	* libbalsa/html.c (libbalsa_html_zoom, libbalsa_html_can_select,
+	libbalsa_html_select_all, libbalsa_html_copy): add comments and
+	indent;
+	(libbalsa_html_search_text): build with all widgets.
+
 2009-10-27  Peter Bloomfield
 
 	* libbalsa/html.h: new methods for text search, to access
diff --git a/libbalsa/html.c b/libbalsa/html.c
index 3214432..f6d86d7 100644
--- a/libbalsa/html.c
+++ b/libbalsa/html.c
@@ -192,13 +192,20 @@ libbalsa_html_to_string(gchar ** text, size_t len)
              * it to an empty string. */
 }
 
+/*
+ * Does the widget support zoom?
+ */
 gboolean
 libbalsa_html_can_zoom(GtkWidget * widget)
 {
     return WEBKIT_IS_WEB_VIEW(widget);
 }
 
-void libbalsa_html_zoom(GtkWidget * widget, gint in_out)
+/*
+ * Zoom the widget.
+ */
+void
+libbalsa_html_zoom(GtkWidget * widget, gint in_out)
 {
     switch (in_out) {
     case +1:
@@ -215,27 +222,45 @@ void libbalsa_html_zoom(GtkWidget * widget, gint in_out)
     }
 }
 
-gboolean libbalsa_html_can_select(GtkWidget * widget)
+/*
+ * Does the widget support selecting text?
+ */
+gboolean
+libbalsa_html_can_select(GtkWidget * widget)
 {
     return WEBKIT_IS_WEB_VIEW(widget);
 }
 
-void libbalsa_html_select_all(GtkWidget * widget)
+/*
+ * Select all the text.
+ */
+void
+libbalsa_html_select_all(GtkWidget * widget)
 {
     webkit_web_view_select_all(WEBKIT_WEB_VIEW(widget));
 }
 
-void libbalsa_html_copy(GtkWidget * widget)
+/*
+ * Copy selected text to the clipboard.
+ */
+void
+libbalsa_html_copy(GtkWidget * widget)
 {
     webkit_web_view_copy_clipboard(WEBKIT_WEB_VIEW(widget));
 }
 
+/*
+ * Does the widget support searching text?
+ */
 gboolean
 libbalsa_html_can_search(GtkWidget * widget)
 {
     return WEBKIT_IS_WEB_VIEW(widget);
 }
 
+/*
+ * Search for the text.
+ */
 gboolean
 libbalsa_html_search_text(GtkWidget * widget, const gchar * text,
                           gboolean find_forward, gboolean wrap)
@@ -500,15 +525,21 @@ libbalsa_html_copy(GtkWidget * widget)
     gtk_html_copy(GTK_HTML(widget));
 }
 
+/*
+ * GtkHTML doesn't support searching text.
+ */
 gboolean
 libbalsa_html_can_search(GtkWidget * widget)
 {
     return FALSE;
 }
 
+/*
+ * GtkHTML doesn't support searching text.
+ */
 gboolean
 libbalsa_html_search_text(GtkWidget * widget, const gchar * text,
-                          gboolean find_forward)
+                          gboolean find_forward, gboolean wrap)
 {
     return FALSE;
 }
@@ -648,15 +679,21 @@ libbalsa_html_copy(GtkWidget * widget)
 {
 }
 
+/*
+ * HtmlView doesn't support searching text.
+ */
 gboolean
 libbalsa_html_can_search(GtkWidget * widget)
 {
     return FALSE;
 }
 
+/*
+ * HtmlView doesn't support searching text.
+ */
 gboolean
 libbalsa_html_search_text(GtkWidget * widget, const gchar * text,
-                          gboolean find_forward)
+                          gboolean find_forward, gboolean wrap)
 {
     return FALSE;
 }



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