Re: deprecated
| From: | Pablo Dall'Oglio | Date: | Sat, 08 Apr 2006 22:30:00 +0000 |
| Subject: | Re: deprecated | ||
| References: | 1 2 3 4 5 | Groups: | php.gtk.doc |
| Request: | Send a blank email to php-gtk-doc+get-2221@lists.php.net to get a copy of this message | ||
Em Dom, 2006-04-09 às 00:06 +0200, Steph Fox escreveu:
> >> Usually when a method is deprecated it's because there's another one
> >> that does the same, but better. Some PyGtk docs doesn't show them
> >> anymore (http://www.pygtk.org/pygtk2reference/class-gtkbuttonbox.html).
> >
>
> Pablo, BTW it also occurs to me that we might be using different flags to
> build GTK+ with.
>
> The header file for GtkButtonBox (gtkbbox.h) reads:
>
> GtkButtonBoxStyle gtk_button_box_get_layout (GtkButtonBox
> *widget);
> void gtk_button_box_set_layout (GtkButtonBox
> *widget,
> GtkButtonBoxStyle layout_style);
> gboolean gtk_button_box_get_child_secondary (GtkButtonBox
> *widget,
> GtkWidget *child);
> void gtk_button_box_set_child_secondary (GtkButtonBox
> *widget,
> GtkWidget *child,
> gboolean is_secondary);
>
> #ifndef GTK_DISABLE_DEPRECATED
> #define gtk_button_box_set_spacing(b,s) gtk_box_set_spacing (GTK_BOX (b), s)
> #define gtk_button_box_get_spacing(b) gtk_box_get_spacing (GTK_BOX (b))
>
> void gtk_button_box_set_child_size (GtkButtonBox *widget,
> gint min_width,
> gint min_height);
> void gtk_button_box_set_child_ipadding (GtkButtonBox *widget,
> gint ipad_x,
> gint ipad_y);
> void gtk_button_box_get_child_size (GtkButtonBox *widget,
> gint *min_width,
> gint *min_height);
> void gtk_button_box_get_child_ipadding (GtkButtonBox *widget,
> gint *ipad_x,
> gint *ipad_y);
> #endif
>
> - so if the python team are building their reference point version of GTK+
> with the GTK_DISABLE_DEPRECATED flag, they won't have these methods
> generated at all. We actually do have those methods in PHP-GTK 2...
Hummm, ok, I understand.
Thanks by the explanation Steph :-)
Pablo
>
> - Steph
>
--
:: Pablo Dall'Oglio
:: www.dalloglio.net