[buoh] Fixed FTBFS.



commit 20d11c604c525ad2caa746093a7ba01e3cb8c075
Author: Pablo Castellano <pablog src gnome org>
Date:   Thu May 13 22:47:00 2010 +0200

    Fixed FTBFS.
    
    With GTK 2.20 some macros that buoh was using are deprecated now.

 src/buoh-comic-list.c |    4 ++--
 src/buoh-view-comic.c |    2 +-
 src/buoh-view.c       |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/buoh-comic-list.c b/src/buoh-comic-list.c
index a864678..a5570be 100644
--- a/src/buoh-comic-list.c
+++ b/src/buoh-comic-list.c
@@ -179,7 +179,7 @@ buoh_comic_list_size_request (GtkWidget *widget, GtkRequisition *requisition)
 	GtkBin         *bin = GTK_BIN (widget);
 	GtkRequisition  child_requisition;
 
-	if (bin->child && GTK_WIDGET_VISIBLE (bin->child)) {
+	if (bin->child && gtk_widget_get_visible (bin->child)) {
 		gtk_widget_size_request (bin->child, &child_requisition);
 		*requisition = child_requisition;
 		
@@ -198,7 +198,7 @@ buoh_comic_list_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
 
 	widget->allocation = *allocation;
 
-	if (bin->child && GTK_WIDGET_VISIBLE (bin->child)) {
+	if (bin->child && gtk_widget_get_visible (bin->child)) {
 		gtk_widget_size_allocate (bin->child, allocation);
 
 		/* we need some extra size */
diff --git a/src/buoh-view-comic.c b/src/buoh-view-comic.c
index b74a640..6271bec 100644
--- a/src/buoh-view-comic.c
+++ b/src/buoh-view-comic.c
@@ -563,7 +563,7 @@ buoh_view_comic_prepare_load (BuohViewComic *c_view)
 
 	buoh_view_comic_update_scrollbar_policy (c_view);
 
-	if (GTK_WIDGET_REALIZED (GTK_WIDGET (c_view)))
+	if (gtk_widget_get_realized (GTK_WIDGET (c_view)))
 		gdk_window_set_cursor (GTK_WIDGET (c_view)->window, NULL);
 
 	gtk_image_clear (GTK_IMAGE (c_view->priv->image));
diff --git a/src/buoh-view.c b/src/buoh-view.c
index c5908b6..d238bb0 100644
--- a/src/buoh-view.c
+++ b/src/buoh-view.c
@@ -280,7 +280,7 @@ buoh_view_grab_focus (GtkWidget *widget)
 static gboolean
 buoh_view_button_press_event (GtkWidget *widget, GdkEventButton *event)
 {
-	if (!GTK_WIDGET_HAS_FOCUS (widget)) {
+	if (!gtk_widget_has_focus (widget)) {
 		gtk_widget_grab_focus (widget);
 	}
 



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