GtkNotebook: remove gtk_notebook_set_window_creation_hook

http://bugzilla.gnome.org/show_bug.cgi?id=630521
This commit is contained in:
Matthias Clasen 2010-09-24 11:10:51 -04:00
parent 3557761fb3
commit b47b1428b8
4 changed files with 2 additions and 48 deletions

View File

@ -2226,8 +2226,6 @@ gtk_notebook_set_group
gtk_notebook_get_group
gtk_notebook_set_action_widget
gtk_notebook_get_action_widget
GtkNotebookWindowCreationFunc
gtk_notebook_set_window_creation_hook
<SUBSECTION Standard>
GTK_NOTEBOOK
GTK_IS_NOTEBOOK

View File

@ -2066,7 +2066,6 @@ gtk_notebook_set_tab_label_text
gtk_notebook_set_tab_pos
gtk_notebook_get_tab_hborder
gtk_notebook_get_tab_vborder
gtk_notebook_set_window_creation_hook
gtk_notebook_get_group
gtk_notebook_set_group
gtk_notebook_get_tab_reorderable

View File

@ -467,10 +467,6 @@ static void gtk_notebook_buildable_add_child (GtkBuildable *buildable,
GObject *child,
const gchar *type);
static GtkNotebookWindowCreationFunc window_creation_hook = NULL;
static gpointer window_creation_hook_data;
static GDestroyNotify window_creation_hook_destroy = NULL;
static guint notebook_signals[LAST_SIGNAL] = { 0 };
G_DEFINE_TYPE_WITH_CODE (GtkNotebook, gtk_notebook, GTK_TYPE_CONTAINER,
@ -958,9 +954,6 @@ gtk_notebook_class_init (GtkNotebookClass *class)
* necessary properties to the notebook (e.g. the
* #GtkNotebook:group ).
*
* The default handler uses the global window creation hook,
* if one has been set with gtk_notebook_set_window_creation_hook().
*
* Returns: a #GtkNotebook that @page should be added to, or %NULL.
*
* Since: 2.12
@ -3367,9 +3360,6 @@ gtk_notebook_create_window (GtkNotebook *notebook,
gint x,
gint y)
{
if (window_creation_hook)
return (* window_creation_hook) (notebook, page, x, y, window_creation_hook_data);
return NULL;
}
@ -7594,30 +7584,6 @@ gtk_notebook_reorder_child (GtkNotebook *notebook,
position);
}
/**
* gtk_notebook_set_window_creation_hook:
* @func: (allow-none): the #GtkNotebookWindowCreationFunc, or %NULL
* @data: user data for @func
* @destroy: (allow-none): Destroy notifier for @data, or %NULL
*
* Installs a global function used to create a window
* when a detached tab is dropped in an empty area.
*
* Since: 2.10
**/
void
gtk_notebook_set_window_creation_hook (GtkNotebookWindowCreationFunc func,
gpointer data,
GDestroyNotify destroy)
{
if (window_creation_hook_destroy)
window_creation_hook_destroy (window_creation_hook_data);
window_creation_hook = func;
window_creation_hook_data = data;
window_creation_hook_destroy = destroy;
}
/**
* gtk_notebook_set_group:
* @notebook: a #GtkNotebook

View File

@ -100,12 +100,6 @@ struct _GtkNotebookClass
void (*_gtk_reserved1) (void);
};
typedef GtkNotebook* (*GtkNotebookWindowCreationFunc) (GtkNotebook *source,
GtkWidget *page,
gint x,
gint y,
gpointer data);
/***********************************************************
* Creation, insertion, deletion *
***********************************************************/
@ -142,9 +136,6 @@ void gtk_notebook_remove_page (GtkNotebook *notebook,
* Tabs drag and drop *
***********************************************************/
void gtk_notebook_set_window_creation_hook (GtkNotebookWindowCreationFunc func,
gpointer data,
GDestroyNotify destroy);
void gtk_notebook_set_group (GtkNotebook *notebook,
gpointer group);
gpointer gtk_notebook_get_group (GtkNotebook *notebook);