[Splashy-devel] [PATCH] splashy.h is using glib types, so include glib.h

Holger Macht hmacht at suse.de
Thu Jan 24 10:37:40 UTC 2008


On Thu 24. Jan - 10:08:29, Tim Dijkstra wrote:
> Hi Holger,
> 
> I thought I removed all glib types from the library interface. If not, I
> would prefer that you do that than add glib.h. I still have the secret
> plan to remove glib from splashy altogether....

Something like this?

Signed-off-by: Holger Macht <hmacht at suse.de>
---

diff --git a/src/splashy.h b/src/splashy.h
index 0dfe0be..6a1f431 100644
--- a/src/splashy.h
+++ b/src/splashy.h
@@ -64,12 +64,12 @@ void splashy_reset_progressbar_counters ();
  * toggles whether the textbox area will be shown for 
  * splashy_printline_s()
  */
-void splashy_set_textbox_area_visible (gboolean visible);
+void splashy_set_textbox_area_visible (int visible);
 
 /*
  * returns the status of the textbox area visibility flag
  */
-gboolean splashy_get_textbox_area_visible (void);
+int splashy_get_textbox_area_visible (void);
 
 /*
  * allows to print a single message to the center of the textbox area
diff --git a/src/splashy_video.c b/src/splashy_video.c
index 63f7d05..26388e9 100644
--- a/src/splashy_video.c
+++ b/src/splashy_video.c
@@ -137,7 +137,7 @@ splashy_set_progressbar_visible (gboolean visible)
 }
 
 void
-splashy_set_textbox_area_visible (gboolean visible)
+splashy_set_textbox_area_visible (int visible)
 {
         _show_textbox_area = visible;
         /*
@@ -157,7 +157,7 @@ splashy_set_textbox_area_visible (gboolean visible)
         }
 }
 
-gboolean
+int
 splashy_get_textbox_area_visible (void)
 {
         return _show_textbox_area;



More information about the Splashy-devel mailing list