forked from AuroraMiddleware/gtk
Drop gtk_events_pending
This was just a thin wrapper around gtk_main_context_pending, which should be used directly instead.
This commit is contained in:
parent
24917ac353
commit
ebc720bfdb
@ -4418,7 +4418,6 @@ gtk_get_default_language
|
||||
gtk_get_locale_direction
|
||||
gtk_init
|
||||
gtk_init_check
|
||||
gtk_events_pending
|
||||
gtk_main
|
||||
gtk_main_level
|
||||
gtk_main_quit
|
||||
|
@ -1152,33 +1152,6 @@ gtk_main_quit (void)
|
||||
g_main_loop_quit (main_loops->data);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_events_pending:
|
||||
*
|
||||
* Checks if any events are pending.
|
||||
*
|
||||
* This can be used to update the UI and invoke timeouts etc.
|
||||
* while doing some time intensive computation.
|
||||
*
|
||||
* ## Updating the UI during a long computation
|
||||
*
|
||||
* |[<!-- language="C" -->
|
||||
* // computation going on...
|
||||
*
|
||||
* while (gtk_events_pending ())
|
||||
* gtk_main_iteration ();
|
||||
*
|
||||
* // ...computation continued
|
||||
* ]|
|
||||
*
|
||||
* Returns: %TRUE if any events are pending, %FALSE otherwise
|
||||
*/
|
||||
gboolean
|
||||
gtk_events_pending (void)
|
||||
{
|
||||
return g_main_context_pending (NULL);
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_main_iteration:
|
||||
*
|
||||
|
@ -109,8 +109,6 @@ GDK_AVAILABLE_IN_ALL
|
||||
PangoLanguage *gtk_get_default_language (void);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GtkTextDirection gtk_get_locale_direction (void);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
gboolean gtk_events_pending (void);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
void gtk_main (void);
|
||||
|
Loading…
Reference in New Issue
Block a user