forked from AuroraMiddleware/gtk
gtk-demo: Make search progress visible again
Set a progress fraction, so that the pulsing progress in the search entry demo is actually visible.
This commit is contained in:
parent
348a38a876
commit
a7e25f2c73
@ -54,6 +54,7 @@ finish_search (GtkButton *button)
|
|||||||
static gboolean
|
static gboolean
|
||||||
start_search_feedback (gpointer data)
|
start_search_feedback (gpointer data)
|
||||||
{
|
{
|
||||||
|
gtk_entry_set_progress_fraction (GTK_ENTRY (data), 0.1);
|
||||||
search_progress_id = g_timeout_add_full (G_PRIORITY_DEFAULT, 100,
|
search_progress_id = g_timeout_add_full (G_PRIORITY_DEFAULT, 100,
|
||||||
(GSourceFunc)search_progress, data,
|
(GSourceFunc)search_progress, data,
|
||||||
(GDestroyNotify)search_progress_done);
|
(GDestroyNotify)search_progress_done);
|
||||||
|
Loading…
Reference in New Issue
Block a user