gtk: expose GtkTooltips to introspection scanner
This commit is contained in:
parent
d07415153d
commit
c5ba66cd42
2 changed files with 18 additions and 2 deletions
|
|
@ -197,6 +197,14 @@ gtk_tooltips_set_delay (GtkTooltips *tooltips,
|
|||
tooltips->delay = delay;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_tooltips_data_get:
|
||||
* @widget: a #GtkWidget
|
||||
*
|
||||
* Retrieves tooltip data for @widget.
|
||||
*
|
||||
* Returns: (transfer none) (type gpointer): the tooltip data for @widget
|
||||
*/
|
||||
GtkTooltipsData*
|
||||
gtk_tooltips_data_get (GtkWidget *widget)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -24,7 +24,11 @@
|
|||
* GTK+ at ftp://ftp.gtk.org/pub/gtk/.
|
||||
*/
|
||||
|
||||
#ifndef GTK_DISABLE_DEPRECATED
|
||||
#ifdef __GI_SCANNER__
|
||||
#define GTK_TOOLTIPS_VISIBLE_FOR_GI_SCANNER
|
||||
#endif
|
||||
|
||||
#if !defined (GTK_DISABLE_DEPRECATED) || defined (GTK_TOOLTIPS_VISIBLE_FOR_GI_SCANNER)
|
||||
|
||||
#ifndef __GTK_TOOLTIPS_H__
|
||||
#define __GTK_TOOLTIPS_H__
|
||||
|
|
@ -106,4 +110,8 @@ G_END_DECLS
|
|||
|
||||
#endif /* __GTK_TOOLTIPS_H__ */
|
||||
|
||||
#endif /* GTK_DISABLE_DEPRECATED */
|
||||
#endif /* !GTK_DISABLE_DEPRECATED || GTK_TOOLTIPS_VISIBLE_FOR_GI_SCANNER */
|
||||
|
||||
#ifdef GTK_TOOLTIPS_VISIBLE_FOR_GI_SCANNER
|
||||
#undef GTK_TOOLTIPS_VISIBLE_FOR_GI_SCANNER
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue