/pidgin/main: 423d5b6e9d9a: Add more accessors for GtkWebViewSmi...

Elliott Sales de Andrade qulogic at pidgin.im
Tue Aug 14 04:03:27 EDT 2012


Changeset: 423d5b6e9d9a8ba1953cc9425aa7bb44275e3489
Author:	 Elliott Sales de Andrade <qulogic at pidgin.im>
Date:	 2012-08-14 03:41 -0400
Branch:	 default
URL: http://hg.pidgin.im/pidgin/main/rev/423d5b6e9d9a

Description:

Add more accessors for GtkWebViewSmiley fields.

diffstat:

 pidgin/gtkwebview.c |  20 +++++++++++++++++++-
 pidgin/gtkwebview.h |  31 ++++++++++++++++++++++++++++++-
 2 files changed, 49 insertions(+), 2 deletions(-)

diffs (76 lines):

diff --git a/pidgin/gtkwebview.c b/pidgin/gtkwebview.c
--- a/pidgin/gtkwebview.c
+++ b/pidgin/gtkwebview.c
@@ -578,8 +578,26 @@ gtk_webview_smiley_reload(GtkWebViewSmil
 	                 G_CALLBACK(gtk_custom_smiley_size_prepared), smiley);
 }
 
+const char *
+gtk_webview_smiley_get_smile(const GtkWebViewSmiley *smiley)
+{
+	return smiley->smile;
+}
+
+const char *
+gtk_webview_smiley_get_file(const GtkWebViewSmiley *smiley)
+{
+	return smiley->file;
+}
+
+gboolean
+gtk_webview_smiley_get_hidden(const GtkWebViewSmiley *smiley)
+{
+	return smiley->hidden;
+}
+
 GtkWebViewSmileyFlags
-gtk_webview_smiley_get_flags(GtkWebViewSmiley *smiley)
+gtk_webview_smiley_get_flags(const GtkWebViewSmiley *smiley)
 {
 	return smiley->flags;
 }
diff --git a/pidgin/gtkwebview.h b/pidgin/gtkwebview.h
--- a/pidgin/gtkwebview.h
+++ b/pidgin/gtkwebview.h
@@ -546,11 +546,40 @@ void gtk_webview_smiley_reload(GtkWebVie
 void gtk_webview_smiley_destroy(GtkWebViewSmiley *smiley);
 
 /**
+ * Returns the text associated with a smiley.
+ *
+ * @param smiley    The smiley
+ *
+ * @return The text
+ */
+const char *gtk_webview_smiley_get_smile(const GtkWebViewSmiley *smiley);
+
+/**
+ * Returns the file associated with a smiley.
+ *
+ * @param smiley    The smiley
+ *
+ * @return The file
+ */
+const char *gtk_webview_smiley_get_file(const GtkWebViewSmiley *smiley);
+
+/**
+ * Returns the invisibility of a smiley.
+ *
+ * @param smiley    The smiley
+ *
+ * @return The hidden status
+ */
+gboolean gtk_webview_smiley_get_hidden(const GtkWebViewSmiley *smiley);
+
+/**
  * Returns the flags associated with a smiley.
  *
  * @param smiley    The smiley
+ *
+ * @return The flags
  */
-GtkWebViewSmileyFlags gtk_webview_smiley_get_flags(GtkWebViewSmiley *smiley);
+GtkWebViewSmileyFlags gtk_webview_smiley_get_flags(const GtkWebViewSmiley *smiley);
 
 /**
  * Returns the smiley object associated with the text.



More information about the Commits mailing list