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

gtk-2.0



So GTK-2.0 came out over the weekend[1].  I've spent some time today trying
to get Dia to compile with it.  There's a bunch of smaller things, but now
I'm hitting the big stuff.  Major changes would include using ATK instead
of XIM and changes to redrawing.  I'm currentl;y stuck at changing
GdkColorContexts into Gdk_RGB_* stuff.  My notes on changes are attached
below. 

The main question now is:  What do we do about Gtk 2.0 in Dia?  Do we make
a branch for the conversion?  Do we use a HAVE_GTK_2_0 macro (as I have
done so far)?  Do we ignore it till it stabilizes a bit?

-Lars

[1] And they still didn't improve the file dialog.  *grumpf*

Add m4 macros to acinclude.m4
In configure.in: Change AM_PATH_GTK to AM_PATH_GTK_2_0
Can't use XIM.
In app_procs.c:520, diagram.c:135: GtkPatternSpec is now GPatternSpec
gtk_item_factory_dump_rc is gone???
In preferences.c:606: Use gtk_bin_get_child instead of button->child 
In layer_dialog.c:856, diapagelayout.c:62, diaunitspinner.c:71:
   Comment out GtkArg[SG]etFunc
In commands.c:558, interface.c:790, splash.c:21:
   Extra arg to gdk_pixbuf_new_from_file()
In widgets.h:32: Must include gtk/gtklabel.h
In interface.h:352: No GTK_OBJECT()->klass, uses GTK_WIDGET_GET_CLASS()
In render_gdk.c:1165: gdk_region_union_with_rect() now returns void.
In diapagelayout.c:83: object_class->type replaced with GTK_CLASS_TYPE()
In diaunitspinner.c:111: editable_class->active is gone.
In diaunitspinner.c:212,229,239: 
   Change widget->editable to gtk_editable_get_editable().
In gtkwrapbox.c:134: No member draw in gtk_widget.
In gtkwrapbox.c:141,142: [sg]et_child_arg gone, replace with
   [gs]et_child_property. 
In gtkwrapbox.h:41: Use GTK_OBJECT_GET_CLASS instead of ->klass.
In splash.c:56: GTK_WINDOW_DIALOG gone, using GTK_WINDOW_POPUP.

In color.c:26: GdkColorContext is gone, use Gdk_RGB_* instead.

Overall:  Our redrawing mechanisms may have to be reconsidered.


-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| Hårdgrim of Numenor
"I do not agree with a word that you say, but I   |----------------------------
will defend to the death your right to say it."   | Where are we going, and
    --Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] Mail converted by Mofo Magic and the Flying D

 
All trademarks and copyrights are the property of their respective owners.

Other Directory Sites: SeekWonder | Directory Owners Forum

GuideSMACK