Commit 2435e831 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Deprecate gtk_paned_computed_position(). (#97077)

2003-01-31  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkpaned.h: Deprecate gtk_paned_computed_position(). (#97077)

	* gtk/gtkmain.h: Deprecate the gtk_timeout_*, gtk_idle_*
	and gtk_input_* functions.  (#71596)

	* gtk/gtkentry.c (gtk_entry_move_cursor):
	* gtk/gtklabel.c (gtk_label_move_cursor): Handle
	GTK_MOVEMENT_HORIZONTAL_PAGES in switches.

	* gdk/gdk.h: Deprecate gdk_wcstombs() and gdk_mbstowcs().  (#79803)

	* gtk/gtkitemfactory.h:
	* gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Deprecate.
	(#69244)

	* gtk/tmpl/gtkmain.sgml: Deprecate the gtk_timeout_*, gtk_idle_*
	and gtk_input_* functions.  (#71596)
parent 4a230bae
2003-01-31 Matthias Clasen <maclas@gmx.de>
* gtk/gtkpaned.h: Deprecate gtk_paned_computed_position(). (#97077)
* gtk/gtkmain.h: Deprecate the gtk_timeout_*, gtk_idle_*
and gtk_input_* functions. (#71596)
* gtk/gtkentry.c (gtk_entry_move_cursor):
* gtk/gtklabel.c (gtk_label_move_cursor): Handle
GTK_MOVEMENT_HORIZONTAL_PAGES in switches.
* gdk/gdk.h: Deprecate gdk_wcstombs() and gdk_mbstowcs(). (#79803)
* gtk/gtkitemfactory.h:
* gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Deprecate.
(#69244)
Thu Jan 30 23:48:30 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_count_special_cell):
......
2003-01-31 Matthias Clasen <maclas@gmx.de>
* gtk/gtkpaned.h: Deprecate gtk_paned_computed_position(). (#97077)
* gtk/gtkmain.h: Deprecate the gtk_timeout_*, gtk_idle_*
and gtk_input_* functions. (#71596)
* gtk/gtkentry.c (gtk_entry_move_cursor):
* gtk/gtklabel.c (gtk_label_move_cursor): Handle
GTK_MOVEMENT_HORIZONTAL_PAGES in switches.
* gdk/gdk.h: Deprecate gdk_wcstombs() and gdk_mbstowcs(). (#79803)
* gtk/gtkitemfactory.h:
* gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Deprecate.
(#69244)
Thu Jan 30 23:48:30 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_count_special_cell):
......
2003-01-31 Matthias Clasen <maclas@gmx.de>
* gtk/gtkpaned.h: Deprecate gtk_paned_computed_position(). (#97077)
* gtk/gtkmain.h: Deprecate the gtk_timeout_*, gtk_idle_*
and gtk_input_* functions. (#71596)
* gtk/gtkentry.c (gtk_entry_move_cursor):
* gtk/gtklabel.c (gtk_label_move_cursor): Handle
GTK_MOVEMENT_HORIZONTAL_PAGES in switches.
* gdk/gdk.h: Deprecate gdk_wcstombs() and gdk_mbstowcs(). (#79803)
* gtk/gtkitemfactory.h:
* gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Deprecate.
(#69244)
Thu Jan 30 23:48:30 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_count_special_cell):
......
2003-01-31 Matthias Clasen <maclas@gmx.de>
* gtk/gtkpaned.h: Deprecate gtk_paned_computed_position(). (#97077)
* gtk/gtkmain.h: Deprecate the gtk_timeout_*, gtk_idle_*
and gtk_input_* functions. (#71596)
* gtk/gtkentry.c (gtk_entry_move_cursor):
* gtk/gtklabel.c (gtk_label_move_cursor): Handle
GTK_MOVEMENT_HORIZONTAL_PAGES in switches.
* gdk/gdk.h: Deprecate gdk_wcstombs() and gdk_mbstowcs(). (#79803)
* gtk/gtkitemfactory.h:
* gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Deprecate.
(#69244)
Thu Jan 30 23:48:30 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_count_special_cell):
......
2003-01-31 Matthias Clasen <maclas@gmx.de>
* gtk/gtkpaned.h: Deprecate gtk_paned_computed_position(). (#97077)
* gtk/gtkmain.h: Deprecate the gtk_timeout_*, gtk_idle_*
and gtk_input_* functions. (#71596)
* gtk/gtkentry.c (gtk_entry_move_cursor):
* gtk/gtklabel.c (gtk_label_move_cursor): Handle
GTK_MOVEMENT_HORIZONTAL_PAGES in switches.
* gdk/gdk.h: Deprecate gdk_wcstombs() and gdk_mbstowcs(). (#79803)
* gtk/gtkitemfactory.h:
* gtk/gtkitemfactory.c (gtk_item_factory_add_foreign): Deprecate.
(#69244)
Thu Jan 30 23:48:30 2003 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_count_special_cell):
......
2003-01-31 Matthias Clasen <maclas@gmx.de>
* gtk/tmpl/gtkmain.sgml: Deprecate the gtk_timeout_*, gtk_idle_*
and gtk_input_* functions. (#71596)
2003-01-30 Matthias Clasen <maclas@gmx.de>
* gtk/running.sgml: s/overwrite/override/g (#104627, Brian Cameron)
......
......@@ -456,7 +456,7 @@ point the timeout is destroyed and will not be called again.
@data: The data to pass to the function.
@destroy: Function to call when the timeout is destroyed or %NULL.
@Returns: A unique id for the event source.
@Deprecated: Use g_timeout_add_full() instead.
<!-- ##### FUNCTION gtk_timeout_add ##### -->
<para>
......@@ -470,7 +470,7 @@ point the timeout is destroyed and will not be called again.
@function: The function to call periodically.
@data: The data to pass to the function.
@Returns: A unique id for the event source.
@Deprecated: Use g_timeout_add() instead.
<!-- ##### FUNCTION gtk_timeout_remove ##### -->
<para>
......@@ -478,6 +478,7 @@ Removes the given timeout destroying all information about it.
</para>
@timeout_handler_id: The identifier returned when installing the timeout.
@Deprecated: Use g_source_remove() instead.
<!-- ##### FUNCTION gtk_idle_add ##### -->
......@@ -490,6 +491,7 @@ higher priority are to be processed. The default priority is
@function: The function to call.
@data: The information to pass to the function.
@Returns: a unique handle for this registration.
@Deprecated: Use g_idle_add() instead.
<!-- ##### FUNCTION gtk_idle_add_priority ##### -->
......@@ -505,7 +507,7 @@ Note that you will interfere with GTK+ if you use a priority above
@function: The function to call.
@data: Data to pass to that function.
@Returns: A unique id for the event source.
@Deprecated: Use g_idle_add_full() instead.
<!-- ##### FUNCTION gtk_idle_add_full ##### -->
<para>
......@@ -522,6 +524,7 @@ Note that you will interfere with GTK+ if you use a priority above
@data: Data to pass to that function.
@destroy: Function to call when the timeout is destroyed or %NULL.
@Returns: A unique id for the event source.
@Deprecated: Use g_idle_add_full() instead.
<!-- ##### FUNCTION gtk_idle_remove ##### -->
......@@ -530,6 +533,7 @@ Removes the idle function with the given id.
</para>
@idle_handler_id: Identifies the idle function to remove.
@Deprecated: Use g_source_remove() instead.
<!-- ##### FUNCTION gtk_idle_remove_by_data ##### -->
......@@ -538,6 +542,7 @@ Removes the idle function identified by the user data.
</para>
@data: remove the idle function which was registered with this user data.
@Deprecated: Use g_idle_remove_by_data() instead.
<!-- ##### FUNCTION gtk_input_add_full ##### -->
......@@ -554,7 +559,7 @@ on a file descriptor.
@destroy: callback function to call with @data when the input
handler is removed, or %NULL.
@Returns: A unique id for the event source; to be used with gtk_input_remove().
@Deprecated: Use g_io_watch_full() instead.
<!-- ##### FUNCTION gtk_input_remove ##### -->
<para>
......@@ -562,6 +567,7 @@ Removes the function with the given id.
</para>
@input_handler_id: Identifies the function to remove.
@Deprecated: Use g_source_remove() instead.
<!-- ##### MACRO GTK_PRIORITY_REDRAW ##### -->
......
......@@ -149,10 +149,12 @@ GType gdk_rectangle_get_type (void);
/* Conversion functions between wide char and multibyte strings.
*/
#ifndef GDK_DISABLE_DEPRECATED
gchar *gdk_wcstombs (const GdkWChar *src);
gint gdk_mbstowcs (GdkWChar *dest,
const gchar *src,
gint dest_max);
#endif
/* Miscellaneous */
#ifndef GDK_MULTIHEAD_SAFE
......
......@@ -2075,6 +2075,7 @@ gtk_entry_move_cursor (GtkEntry *entry,
case GTK_MOVEMENT_DISPLAY_LINES:
case GTK_MOVEMENT_PARAGRAPHS:
case GTK_MOVEMENT_PAGES:
case GTK_MOVEMENT_HORIZONTAL_PAGES:
break;
}
}
......@@ -2108,6 +2109,7 @@ gtk_entry_move_cursor (GtkEntry *entry,
case GTK_MOVEMENT_DISPLAY_LINES:
case GTK_MOVEMENT_PARAGRAPHS:
case GTK_MOVEMENT_PAGES:
case GTK_MOVEMENT_HORIZONTAL_PAGES:
break;
}
}
......
......@@ -259,7 +259,9 @@ gtk_item_factory_item_remove_widget (GtkWidget *widget,
* This function can be used to make widgets participate in the accel
* saving/restoring functionality provided by gtk_accel_map_save() and
* gtk_accel_map_load(), even if they haven't been created by an item
* factory. The recommended API for this purpose are the functions
* factory.
*
* Deprecated: The recommended API for this purpose are the functions
* gtk_menu_item_set_accel_path() and gtk_widget_set_accel_path(); don't
* use gtk_item_factory_add_foreign() in new code, since it is likely to
* be removed in the future.
......
......@@ -148,11 +148,13 @@ void gtk_item_factory_construct (GtkItemFactory *ifactory,
/* These functions operate on GtkItemFactoryClass basis.
*/
#ifndef GTK_DISABLE_DEPRECATED
void gtk_item_factory_add_foreign (GtkWidget *accel_widget,
const gchar *full_path,
GtkAccelGroup *accel_group,
guint keyval,
GdkModifierType modifiers);
#endif
GtkItemFactory* gtk_item_factory_from_widget (GtkWidget *widget);
G_CONST_RETURN gchar* gtk_item_factory_path_from_widget (GtkWidget *widget);
......
......@@ -1799,7 +1799,7 @@ gtk_label_expose (GtkWidget *widget,
label->text && (*label->text != '\0'))
{
get_layout_location (label, &x, &y);
gtk_paint_layout (widget->style,
widget->window,
GTK_WIDGET_STATE (widget),
......@@ -3036,6 +3036,7 @@ gtk_label_move_cursor (GtkLabel *label,
case GTK_MOVEMENT_DISPLAY_LINES:
case GTK_MOVEMENT_PARAGRAPHS:
case GTK_MOVEMENT_PAGES:
case GTK_MOVEMENT_HORIZONTAL_PAGES:
break;
}
}
......@@ -3070,6 +3071,7 @@ gtk_label_move_cursor (GtkLabel *label,
case GTK_MOVEMENT_DISPLAY_LINES:
case GTK_MOVEMENT_PARAGRAPHS:
case GTK_MOVEMENT_PAGES:
case GTK_MOVEMENT_HORIZONTAL_PAGES:
break;
}
}
......
......@@ -158,6 +158,7 @@ guint gtk_quit_add_full (guint main_level,
GtkDestroyNotify destroy);
void gtk_quit_remove (guint quit_handler_id);
void gtk_quit_remove_by_data (gpointer data);
#if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION)
guint gtk_timeout_add (guint32 interval,
GtkFunction function,
gpointer data);
......@@ -187,7 +188,7 @@ guint gtk_input_add_full (gint source,
gpointer data,
GtkDestroyNotify destroy);
void gtk_input_remove (guint input_handler_id);
#endif /* !GTK_DISABLE_DEPRECATED || GTK_COMPILATION */
guint gtk_key_snooper_install (GtkKeySnoopFunc snooper,
gpointer func_data);
......
......@@ -124,11 +124,12 @@ void gtk_paned_set_position (GtkPaned *paned,
gint position);
/* Internal function */
#if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_COMPILATION)
void gtk_paned_compute_position (GtkPaned *paned,
gint allocation,
gint child1_req,
gint child2_req);
#endif /* !GTK_DISABLE_DEPRECATED || GTK_COMPILATION */
#ifndef GTK_DISABLE_DEPRECATED
#define gtk_paned_gutter_size(p,s) (void) 0
#define gtk_paned_set_gutter_size(p,s) (void) 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment