Fedora Update



Hi,

Just to let everyone know, I have finally updated the gtkdatabox
package in fedora rawhide (F10).  Roland, the addition of gtk-doc
documentation was a nice touch.  The was one problem; gtkdatabox does
not build against the latest version of GTK due to the use of a
deprecated macro.  I have attached a patch that fixes this problem.

-Eric
diff -urN gtkdatabox-0.9.0.0.orig/examples/grid.c gtkdatabox-0.9.0.0.new/examples/grid.c
--- gtkdatabox-0.9.0.0.orig/examples/grid.c	2007-12-09 12:39:11.000000000 -0800
+++ gtkdatabox-0.9.0.0.new/examples/grid.c	2008-09-01 13:04:12.000000000 -0700
@@ -50,7 +50,7 @@
    gtk_widget_set_size_request (window, 500, 500);
 
    g_signal_connect (GTK_OBJECT (window), "destroy",
-		     GTK_SIGNAL_FUNC (gtk_main_quit), NULL);
+		     G_CALLBACK (gtk_main_quit), NULL);
 
    gtk_window_set_title (GTK_WINDOW (window),
 			 "GtkDatabox: Double Grid Example");
@@ -129,7 +129,7 @@
    gtk_box_pack_end (GTK_BOX (box1), box2, FALSE, TRUE, 0);
    close_button = gtk_button_new_with_label ("close");
    g_signal_connect_swapped (GTK_OBJECT (close_button), "clicked",
-			     GTK_SIGNAL_FUNC (gtk_main_quit),
+			     G_CALLBACK (gtk_main_quit),
 			     GTK_OBJECT (box));
    gtk_box_pack_start (GTK_BOX (box2), close_button, TRUE, TRUE, 0);
    GTK_WIDGET_SET_FLAGS (close_button, GTK_CAN_DEFAULT);
diff -urN gtkdatabox-0.9.0.0.orig/examples/keycontrol.c gtkdatabox-0.9.0.0.new/examples/keycontrol.c
--- gtkdatabox-0.9.0.0.orig/examples/keycontrol.c	2008-01-14 21:50:42.000000000 -0800
+++ gtkdatabox-0.9.0.0.new/examples/keycontrol.c	2008-09-01 13:04:19.000000000 -0700
@@ -174,7 +174,7 @@
    gtk_databox_graph_add (GTK_DATABOX (box), graph);
 
    g_signal_connect (GTK_OBJECT (box), "key_press_event",
-		     GTK_SIGNAL_FUNC (key_press_cb), graph);
+		     G_CALLBACK (key_press_cb), graph);
 
    gtk_databox_auto_rescale (GTK_DATABOX (box), 0.05);
 


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