diff options
Diffstat (limited to 'addressbook/gui/widgets/test-minicard-view.c')
-rw-r--r-- | addressbook/gui/widgets/test-minicard-view.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/addressbook/gui/widgets/test-minicard-view.c b/addressbook/gui/widgets/test-minicard-view.c index 4626d5e205..e14443b01e 100644 --- a/addressbook/gui/widgets/test-minicard-view.c +++ b/addressbook/gui/widgets/test-minicard-view.c @@ -63,9 +63,9 @@ static void allocate_callback(GtkWidget *canvas, GtkAllocation *allocation, gpoi gnome_canvas_item_set( reflow, "minimum_width", (double) allocation->width, NULL ); - gtk_object_get(GTK_OBJECT(reflow), - "width", &width, - NULL); + g_object_get(reflow, + "width", &width, + NULL); width = MAX(width, allocation->width); gnome_canvas_set_scroll_region(GNOME_CANVAS( canvas ), 0, 0, width, allocation->height ); gnome_canvas_item_set( rect, @@ -77,9 +77,9 @@ static void allocate_callback(GtkWidget *canvas, GtkAllocation *allocation, gpoi static void resize(GnomeCanvas *canvas, gpointer data) { double width; - gtk_object_get(GTK_OBJECT(reflow), - "width", &width, - NULL); + g_object_get(reflow, + "width", &width, + NULL); width = MAX(width, last_alloc.width); gnome_canvas_set_scroll_region(canvas , 0, 0, width, last_alloc.height ); gnome_canvas_item_set( rect, @@ -117,8 +117,8 @@ book_open_cb (EBook *book, EBookStatus status, gpointer closure) NULL); } -static guint -ebook_create (void) +static gboolean +ebook_create (gpointer data) { EBook *book; @@ -199,7 +199,7 @@ int main( int argc, char *argv[] ) gtk_widget_show_all( app ); gdk_window_set_back_pixmap( GTK_LAYOUT(canvas)->bin_window, NULL, FALSE); - gtk_idle_add ((GtkFunction) ebook_create, NULL); + g_idle_add (ebook_create, NULL); bonobo_main (); |