forked from AuroraMiddleware/gtk
add "Deprecated: 2.4" to all the deprecated append(), prepend() and
2008-09-22 Michael Natterer <mitch@imendio.com> * gtk/gtktoolbar.[ch]: add "Deprecated: 2.4" to all the deprecated append(), prepend() and insert() functions and recommend to use gtk_toolbar_insert() instead. Use GCallback instead of GtkSignalFunc even in deprecated API. svn path=/trunk/; revision=21485
This commit is contained in:
parent
4595574746
commit
3215e56501
@ -1,3 +1,10 @@
|
|||||||
|
2008-09-22 Michael Natterer <mitch@imendio.com>
|
||||||
|
|
||||||
|
* gtk/gtktoolbar.[ch]: add "Deprecated: 2.4" to all the deprecated
|
||||||
|
append(), prepend() and insert() functions and recommend to use
|
||||||
|
gtk_toolbar_insert() instead. Use GCallback instead of
|
||||||
|
GtkSignalFunc even in deprecated API.
|
||||||
|
|
||||||
2008-09-20 Matthias Clasen <mclasen@redhat.com>
|
2008-09-20 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkfilechooserbutton.c (filter_model_visible_func): Don't
|
* gtk/gtkfilechooserbutton.c (filter_model_visible_func): Don't
|
||||||
|
@ -223,7 +223,7 @@ static GtkWidget *internal_insert_element (GtkToolbar *toolbar
|
|||||||
const char *tooltip_text,
|
const char *tooltip_text,
|
||||||
const char *tooltip_private_text,
|
const char *tooltip_private_text,
|
||||||
GtkWidget *icon,
|
GtkWidget *icon,
|
||||||
GtkSignalFunc callback,
|
GCallback callback,
|
||||||
gpointer user_data,
|
gpointer user_data,
|
||||||
gint position,
|
gint position,
|
||||||
gboolean use_stock);
|
gboolean use_stock);
|
||||||
@ -3289,9 +3289,11 @@ gtk_toolbar_unset_icon_size (GtkToolbar *toolbar)
|
|||||||
* in the toolbar where it will be inserted.
|
* in the toolbar where it will be inserted.
|
||||||
*
|
*
|
||||||
* @callback must be a pointer to a function taking a #GtkWidget and a gpointer as
|
* @callback must be a pointer to a function taking a #GtkWidget and a gpointer as
|
||||||
* arguments. Use the GTK_SIGNAL_FUNC() to cast the function to #GtkSignalFunc.
|
* arguments. Use G_CALLBACK() to cast the function to #GCallback.
|
||||||
*
|
*
|
||||||
* Return value: the new toolbar item as a #GtkWidget.
|
* Return value: the new toolbar item as a #GtkWidget.
|
||||||
|
*
|
||||||
|
* Deprecated: 2.4: Use gtk_toolbar_insert() instead.
|
||||||
**/
|
**/
|
||||||
GtkWidget *
|
GtkWidget *
|
||||||
gtk_toolbar_append_item (GtkToolbar *toolbar,
|
gtk_toolbar_append_item (GtkToolbar *toolbar,
|
||||||
@ -3299,7 +3301,7 @@ gtk_toolbar_append_item (GtkToolbar *toolbar,
|
|||||||
const char *tooltip_text,
|
const char *tooltip_text,
|
||||||
const char *tooltip_private_text,
|
const char *tooltip_private_text,
|
||||||
GtkWidget *icon,
|
GtkWidget *icon,
|
||||||
GtkSignalFunc callback,
|
GCallback callback,
|
||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
return gtk_toolbar_insert_element (toolbar, GTK_TOOLBAR_CHILD_BUTTON,
|
return gtk_toolbar_insert_element (toolbar, GTK_TOOLBAR_CHILD_BUTTON,
|
||||||
@ -3322,9 +3324,11 @@ gtk_toolbar_append_item (GtkToolbar *toolbar,
|
|||||||
* Adds a new button to the beginning (top or left edges) of the given toolbar.
|
* Adds a new button to the beginning (top or left edges) of the given toolbar.
|
||||||
*
|
*
|
||||||
* @callback must be a pointer to a function taking a #GtkWidget and a gpointer as
|
* @callback must be a pointer to a function taking a #GtkWidget and a gpointer as
|
||||||
* arguments. Use the GTK_SIGNAL_FUNC() to cast the function to #GtkSignalFunc.
|
* arguments. Use G_CALLBACK() to cast the function to #GCallback.
|
||||||
*
|
*
|
||||||
* Return value: the new toolbar item as a #GtkWidget.
|
* Return value: the new toolbar item as a #GtkWidget.
|
||||||
|
*
|
||||||
|
* Deprecated: 2.4: Use gtk_toolbar_insert() instead.
|
||||||
**/
|
**/
|
||||||
GtkWidget *
|
GtkWidget *
|
||||||
gtk_toolbar_prepend_item (GtkToolbar *toolbar,
|
gtk_toolbar_prepend_item (GtkToolbar *toolbar,
|
||||||
@ -3332,7 +3336,7 @@ gtk_toolbar_prepend_item (GtkToolbar *toolbar,
|
|||||||
const char *tooltip_text,
|
const char *tooltip_text,
|
||||||
const char *tooltip_private_text,
|
const char *tooltip_private_text,
|
||||||
GtkWidget *icon,
|
GtkWidget *icon,
|
||||||
GtkSignalFunc callback,
|
GCallback callback,
|
||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
return gtk_toolbar_insert_element (toolbar, GTK_TOOLBAR_CHILD_BUTTON,
|
return gtk_toolbar_insert_element (toolbar, GTK_TOOLBAR_CHILD_BUTTON,
|
||||||
@ -3357,9 +3361,11 @@ gtk_toolbar_prepend_item (GtkToolbar *toolbar,
|
|||||||
* toolbar where it will be inserted.
|
* toolbar where it will be inserted.
|
||||||
*
|
*
|
||||||
* @callback must be a pointer to a function taking a #GtkWidget and a gpointer as
|
* @callback must be a pointer to a function taking a #GtkWidget and a gpointer as
|
||||||
* arguments. Use the GTK_SIGNAL_FUNC() to cast the function to #GtkSignalFunc.
|
* arguments. Use G_CALLBACK() to cast the function to #GCallback.
|
||||||
*
|
*
|
||||||
* Return value: the new toolbar item as a #GtkWidget.
|
* Return value: the new toolbar item as a #GtkWidget.
|
||||||
|
*
|
||||||
|
* Deprecated: 2.4: Use gtk_toolbar_insert() instead.
|
||||||
**/
|
**/
|
||||||
GtkWidget *
|
GtkWidget *
|
||||||
gtk_toolbar_insert_item (GtkToolbar *toolbar,
|
gtk_toolbar_insert_item (GtkToolbar *toolbar,
|
||||||
@ -3367,7 +3373,7 @@ gtk_toolbar_insert_item (GtkToolbar *toolbar,
|
|||||||
const char *tooltip_text,
|
const char *tooltip_text,
|
||||||
const char *tooltip_private_text,
|
const char *tooltip_private_text,
|
||||||
GtkWidget *icon,
|
GtkWidget *icon,
|
||||||
GtkSignalFunc callback,
|
GCallback callback,
|
||||||
gpointer user_data,
|
gpointer user_data,
|
||||||
gint position)
|
gint position)
|
||||||
{
|
{
|
||||||
@ -3394,16 +3400,18 @@ gtk_toolbar_insert_item (GtkToolbar *toolbar,
|
|||||||
* except that underscores used to mark mnemonics are removed.
|
* except that underscores used to mark mnemonics are removed.
|
||||||
*
|
*
|
||||||
* @callback must be a pointer to a function taking a #GtkWidget and a gpointer as
|
* @callback must be a pointer to a function taking a #GtkWidget and a gpointer as
|
||||||
* arguments. Use the GTK_SIGNAL_FUNC() to cast the function to #GtkSignalFunc.
|
* arguments. Use G_CALLBACK() to cast the function to #GCallback.
|
||||||
*
|
*
|
||||||
* Returns: the inserted widget
|
* Returns: the inserted widget
|
||||||
|
*
|
||||||
|
* Deprecated: 2.4: Use gtk_toolbar_insert() instead.
|
||||||
*/
|
*/
|
||||||
GtkWidget*
|
GtkWidget*
|
||||||
gtk_toolbar_insert_stock (GtkToolbar *toolbar,
|
gtk_toolbar_insert_stock (GtkToolbar *toolbar,
|
||||||
const gchar *stock_id,
|
const gchar *stock_id,
|
||||||
const char *tooltip_text,
|
const char *tooltip_text,
|
||||||
const char *tooltip_private_text,
|
const char *tooltip_private_text,
|
||||||
GtkSignalFunc callback,
|
GCallback callback,
|
||||||
gpointer user_data,
|
gpointer user_data,
|
||||||
gint position)
|
gint position)
|
||||||
{
|
{
|
||||||
@ -3419,6 +3427,8 @@ gtk_toolbar_insert_stock (GtkToolbar *toolbar,
|
|||||||
* @toolbar: a #GtkToolbar.
|
* @toolbar: a #GtkToolbar.
|
||||||
*
|
*
|
||||||
* Adds a new space to the end of the toolbar.
|
* Adds a new space to the end of the toolbar.
|
||||||
|
*
|
||||||
|
* Deprecated: 2.4: Use gtk_toolbar_insert() instead.
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
gtk_toolbar_append_space (GtkToolbar *toolbar)
|
gtk_toolbar_append_space (GtkToolbar *toolbar)
|
||||||
@ -3435,6 +3445,8 @@ gtk_toolbar_append_space (GtkToolbar *toolbar)
|
|||||||
* @toolbar: a #GtkToolbar.
|
* @toolbar: a #GtkToolbar.
|
||||||
*
|
*
|
||||||
* Adds a new space to the beginning of the toolbar.
|
* Adds a new space to the beginning of the toolbar.
|
||||||
|
*
|
||||||
|
* Deprecated: 2.4: Use gtk_toolbar_insert() instead.
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
gtk_toolbar_prepend_space (GtkToolbar *toolbar)
|
gtk_toolbar_prepend_space (GtkToolbar *toolbar)
|
||||||
@ -3452,6 +3464,8 @@ gtk_toolbar_prepend_space (GtkToolbar *toolbar)
|
|||||||
* @position: the number of widgets after which a space should be inserted.
|
* @position: the number of widgets after which a space should be inserted.
|
||||||
*
|
*
|
||||||
* Inserts a new space in the toolbar at the specified position.
|
* Inserts a new space in the toolbar at the specified position.
|
||||||
|
*
|
||||||
|
* Deprecated: 2.4: Use gtk_toolbar_insert() instead.
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
gtk_toolbar_insert_space (GtkToolbar *toolbar,
|
gtk_toolbar_insert_space (GtkToolbar *toolbar,
|
||||||
@ -3470,6 +3484,8 @@ gtk_toolbar_insert_space (GtkToolbar *toolbar,
|
|||||||
* @position: the index of the space to remove.
|
* @position: the index of the space to remove.
|
||||||
*
|
*
|
||||||
* Removes a space from the specified position.
|
* Removes a space from the specified position.
|
||||||
|
*
|
||||||
|
* Deprecated: 2.4: Use gtk_toolbar_insert() instead.
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
gtk_toolbar_remove_space (GtkToolbar *toolbar,
|
gtk_toolbar_remove_space (GtkToolbar *toolbar,
|
||||||
@ -3511,6 +3527,8 @@ gtk_toolbar_remove_space (GtkToolbar *toolbar,
|
|||||||
* @tooltip_private_text: used for context-sensitive help about this toolbar element.
|
* @tooltip_private_text: used for context-sensitive help about this toolbar element.
|
||||||
*
|
*
|
||||||
* Adds a widget to the end of the given toolbar.
|
* Adds a widget to the end of the given toolbar.
|
||||||
|
*
|
||||||
|
* Deprecated: 2.4: Use gtk_toolbar_insert() instead.
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
gtk_toolbar_append_widget (GtkToolbar *toolbar,
|
gtk_toolbar_append_widget (GtkToolbar *toolbar,
|
||||||
@ -3533,6 +3551,8 @@ gtk_toolbar_append_widget (GtkToolbar *toolbar,
|
|||||||
* @tooltip_private_text: used for context-sensitive help about this toolbar element.
|
* @tooltip_private_text: used for context-sensitive help about this toolbar element.
|
||||||
*
|
*
|
||||||
* Adds a widget to the beginning of the given toolbar.
|
* Adds a widget to the beginning of the given toolbar.
|
||||||
|
*
|
||||||
|
* Deprecated: 2.4: Use gtk_toolbar_insert() instead.
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
gtk_toolbar_prepend_widget (GtkToolbar *toolbar,
|
gtk_toolbar_prepend_widget (GtkToolbar *toolbar,
|
||||||
@ -3556,6 +3576,8 @@ gtk_toolbar_prepend_widget (GtkToolbar *toolbar,
|
|||||||
* @position: the number of widgets to insert this widget after.
|
* @position: the number of widgets to insert this widget after.
|
||||||
*
|
*
|
||||||
* Inserts a widget in the toolbar at the given position.
|
* Inserts a widget in the toolbar at the given position.
|
||||||
|
*
|
||||||
|
* Deprecated: 2.4: Use gtk_toolbar_insert() instead.
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
gtk_toolbar_insert_widget (GtkToolbar *toolbar,
|
gtk_toolbar_insert_widget (GtkToolbar *toolbar,
|
||||||
@ -3591,9 +3613,11 @@ gtk_toolbar_insert_widget (GtkToolbar *toolbar,
|
|||||||
* be %NULL.
|
* be %NULL.
|
||||||
*
|
*
|
||||||
* @callback must be a pointer to a function taking a #GtkWidget and a gpointer as
|
* @callback must be a pointer to a function taking a #GtkWidget and a gpointer as
|
||||||
* arguments. Use the GTK_SIGNAL_FUNC() to cast the function to #GtkSignalFunc.
|
* arguments. Use G_CALLBACK() to cast the function to #GCallback.
|
||||||
*
|
*
|
||||||
* Return value: the new toolbar element as a #GtkWidget.
|
* Return value: the new toolbar element as a #GtkWidget.
|
||||||
|
*
|
||||||
|
* Deprecated: 2.4: Use gtk_toolbar_insert() instead.
|
||||||
**/
|
**/
|
||||||
GtkWidget*
|
GtkWidget*
|
||||||
gtk_toolbar_append_element (GtkToolbar *toolbar,
|
gtk_toolbar_append_element (GtkToolbar *toolbar,
|
||||||
@ -3603,7 +3627,7 @@ gtk_toolbar_append_element (GtkToolbar *toolbar,
|
|||||||
const char *tooltip_text,
|
const char *tooltip_text,
|
||||||
const char *tooltip_private_text,
|
const char *tooltip_private_text,
|
||||||
GtkWidget *icon,
|
GtkWidget *icon,
|
||||||
GtkSignalFunc callback,
|
GCallback callback,
|
||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
return gtk_toolbar_insert_element (toolbar, type, widget, text,
|
return gtk_toolbar_insert_element (toolbar, type, widget, text,
|
||||||
@ -3632,9 +3656,11 @@ gtk_toolbar_append_element (GtkToolbar *toolbar,
|
|||||||
* be %NULL.
|
* be %NULL.
|
||||||
*
|
*
|
||||||
* @callback must be a pointer to a function taking a #GtkWidget and a gpointer as
|
* @callback must be a pointer to a function taking a #GtkWidget and a gpointer as
|
||||||
* arguments. Use the GTK_SIGNAL_FUNC() to cast the function to #GtkSignalFunc.
|
* arguments. Use G_CALLBACK() to cast the function to #GCallback.
|
||||||
*
|
*
|
||||||
* Return value: the new toolbar element as a #GtkWidget.
|
* Return value: the new toolbar element as a #GtkWidget.
|
||||||
|
*
|
||||||
|
* Deprecated: 2.4: Use gtk_toolbar_insert() instead.
|
||||||
**/
|
**/
|
||||||
GtkWidget *
|
GtkWidget *
|
||||||
gtk_toolbar_prepend_element (GtkToolbar *toolbar,
|
gtk_toolbar_prepend_element (GtkToolbar *toolbar,
|
||||||
@ -3644,7 +3670,7 @@ gtk_toolbar_prepend_element (GtkToolbar *toolbar,
|
|||||||
const char *tooltip_text,
|
const char *tooltip_text,
|
||||||
const char *tooltip_private_text,
|
const char *tooltip_private_text,
|
||||||
GtkWidget *icon,
|
GtkWidget *icon,
|
||||||
GtkSignalFunc callback,
|
GCallback callback,
|
||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
return gtk_toolbar_insert_element (toolbar, type, widget, text,
|
return gtk_toolbar_insert_element (toolbar, type, widget, text,
|
||||||
@ -3674,9 +3700,11 @@ gtk_toolbar_prepend_element (GtkToolbar *toolbar,
|
|||||||
* be %NULL.
|
* be %NULL.
|
||||||
*
|
*
|
||||||
* @callback must be a pointer to a function taking a #GtkWidget and a gpointer as
|
* @callback must be a pointer to a function taking a #GtkWidget and a gpointer as
|
||||||
* arguments. Use the GTK_SIGNAL_FUNC() to cast the function to #GtkSignalFunc.
|
* arguments. Use G_CALLBACK() to cast the function to #GCallback.
|
||||||
*
|
*
|
||||||
* Return value: the new toolbar element as a #GtkWidget.
|
* Return value: the new toolbar element as a #GtkWidget.
|
||||||
|
*
|
||||||
|
* Deprecated: 2.4: Use gtk_toolbar_insert() instead.
|
||||||
**/
|
**/
|
||||||
GtkWidget *
|
GtkWidget *
|
||||||
gtk_toolbar_insert_element (GtkToolbar *toolbar,
|
gtk_toolbar_insert_element (GtkToolbar *toolbar,
|
||||||
@ -3686,7 +3714,7 @@ gtk_toolbar_insert_element (GtkToolbar *toolbar,
|
|||||||
const char *tooltip_text,
|
const char *tooltip_text,
|
||||||
const char *tooltip_private_text,
|
const char *tooltip_private_text,
|
||||||
GtkWidget *icon,
|
GtkWidget *icon,
|
||||||
GtkSignalFunc callback,
|
GCallback callback,
|
||||||
gpointer user_data,
|
gpointer user_data,
|
||||||
gint position)
|
gint position)
|
||||||
{
|
{
|
||||||
@ -3741,7 +3769,7 @@ internal_insert_element (GtkToolbar *toolbar,
|
|||||||
const char *tooltip_text,
|
const char *tooltip_text,
|
||||||
const char *tooltip_private_text,
|
const char *tooltip_private_text,
|
||||||
GtkWidget *icon,
|
GtkWidget *icon,
|
||||||
GtkSignalFunc callback,
|
GCallback callback,
|
||||||
gpointer user_data,
|
gpointer user_data,
|
||||||
gint position,
|
gint position,
|
||||||
gboolean use_stock)
|
gboolean use_stock)
|
||||||
|
@ -193,21 +193,21 @@ GtkWidget* gtk_toolbar_append_item (GtkToolbar *toolbar,
|
|||||||
const char *tooltip_text,
|
const char *tooltip_text,
|
||||||
const char *tooltip_private_text,
|
const char *tooltip_private_text,
|
||||||
GtkWidget *icon,
|
GtkWidget *icon,
|
||||||
GtkSignalFunc callback,
|
GCallback callback,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
GtkWidget* gtk_toolbar_prepend_item (GtkToolbar *toolbar,
|
GtkWidget* gtk_toolbar_prepend_item (GtkToolbar *toolbar,
|
||||||
const char *text,
|
const char *text,
|
||||||
const char *tooltip_text,
|
const char *tooltip_text,
|
||||||
const char *tooltip_private_text,
|
const char *tooltip_private_text,
|
||||||
GtkWidget *icon,
|
GtkWidget *icon,
|
||||||
GtkSignalFunc callback,
|
GCallback callback,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
GtkWidget* gtk_toolbar_insert_item (GtkToolbar *toolbar,
|
GtkWidget* gtk_toolbar_insert_item (GtkToolbar *toolbar,
|
||||||
const char *text,
|
const char *text,
|
||||||
const char *tooltip_text,
|
const char *tooltip_text,
|
||||||
const char *tooltip_private_text,
|
const char *tooltip_private_text,
|
||||||
GtkWidget *icon,
|
GtkWidget *icon,
|
||||||
GtkSignalFunc callback,
|
GCallback callback,
|
||||||
gpointer user_data,
|
gpointer user_data,
|
||||||
gint position);
|
gint position);
|
||||||
|
|
||||||
@ -216,7 +216,7 @@ GtkWidget* gtk_toolbar_insert_stock (GtkToolbar *toolbar,
|
|||||||
const gchar *stock_id,
|
const gchar *stock_id,
|
||||||
const char *tooltip_text,
|
const char *tooltip_text,
|
||||||
const char *tooltip_private_text,
|
const char *tooltip_private_text,
|
||||||
GtkSignalFunc callback,
|
GCallback callback,
|
||||||
gpointer user_data,
|
gpointer user_data,
|
||||||
gint position);
|
gint position);
|
||||||
|
|
||||||
@ -235,7 +235,7 @@ GtkWidget* gtk_toolbar_append_element (GtkToolbar *toolbar,
|
|||||||
const char *tooltip_text,
|
const char *tooltip_text,
|
||||||
const char *tooltip_private_text,
|
const char *tooltip_private_text,
|
||||||
GtkWidget *icon,
|
GtkWidget *icon,
|
||||||
GtkSignalFunc callback,
|
GCallback callback,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
|
|
||||||
GtkWidget* gtk_toolbar_prepend_element (GtkToolbar *toolbar,
|
GtkWidget* gtk_toolbar_prepend_element (GtkToolbar *toolbar,
|
||||||
@ -245,7 +245,7 @@ GtkWidget* gtk_toolbar_prepend_element (GtkToolbar *toolbar,
|
|||||||
const char *tooltip_text,
|
const char *tooltip_text,
|
||||||
const char *tooltip_private_text,
|
const char *tooltip_private_text,
|
||||||
GtkWidget *icon,
|
GtkWidget *icon,
|
||||||
GtkSignalFunc callback,
|
GCallback callback,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
|
|
||||||
GtkWidget* gtk_toolbar_insert_element (GtkToolbar *toolbar,
|
GtkWidget* gtk_toolbar_insert_element (GtkToolbar *toolbar,
|
||||||
@ -255,7 +255,7 @@ GtkWidget* gtk_toolbar_insert_element (GtkToolbar *toolbar,
|
|||||||
const char *tooltip_text,
|
const char *tooltip_text,
|
||||||
const char *tooltip_private_text,
|
const char *tooltip_private_text,
|
||||||
GtkWidget *icon,
|
GtkWidget *icon,
|
||||||
GtkSignalFunc callback,
|
GCallback callback,
|
||||||
gpointer user_data,
|
gpointer user_data,
|
||||||
gint position);
|
gint position);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user