|
@@ -7,7 +7,7 @@
|
|
|
static GtkWidget *dialog;
|
|
|
static GtkWidget *progress;
|
|
|
|
|
|
-static void gtk_progress_update(u64 curr, u64 total, const char *title)
|
|
|
+static void gtk_ui_progress__update(u64 curr, u64 total, const char *title)
|
|
|
{
|
|
|
double fraction = total ? 1.0 * curr / total : 0.0;
|
|
|
char buf[1024];
|
|
@@ -40,7 +40,7 @@ static void gtk_progress_update(u64 curr, u64 total, const char *title)
|
|
|
gtk_main_iteration();
|
|
|
}
|
|
|
|
|
|
-static void gtk_progress_finish(void)
|
|
|
+static void gtk_ui_progress__finish(void)
|
|
|
{
|
|
|
/* this will also destroy all of its children */
|
|
|
gtk_widget_destroy(dialog);
|
|
@@ -48,12 +48,12 @@ static void gtk_progress_finish(void)
|
|
|
dialog = NULL;
|
|
|
}
|
|
|
|
|
|
-static struct ui_progress gtk_progress_fns = {
|
|
|
- .update = gtk_progress_update,
|
|
|
- .finish = gtk_progress_finish,
|
|
|
+static struct ui_progress_ops gtk_ui_progress__ops = {
|
|
|
+ .update = gtk_ui_progress__update,
|
|
|
+ .finish = gtk_ui_progress__finish,
|
|
|
};
|
|
|
|
|
|
-void perf_gtk__init_progress(void)
|
|
|
+void gtk_ui_progress__init(void)
|
|
|
{
|
|
|
- progress_fns = >k_progress_fns;
|
|
|
+ ui_progress__ops = >k_ui_progress__ops;
|
|
|
}
|