Skip to contentSkip to conversation

ticks_disappear option in circular_progress has no default value

DISCUSSION Vladimir Testov 1 participant 1 message Feb 8, 2013

lore
Share & tools
lore
#0 lore raw

My last mesage about this problem wasn't answered.

Maybe I should write more detailed message.

There is parameter for circular progress bar, which hasn't a default value.

ticks_disappear

If it set to "0" in terms of source code ("true" in terms of grub2 theme) then ticks will APPEAR.
If it set to "1" in terms of source code ("false" in terms of grub2 theme) then ticks will DISAPPEAR.

Two patches are included for making some value to be default (grub2-ticks- appear-default.patch and grub2-ticks-disappear-default.patch)

One of them should be used. (In current situations there is no default value and I see some kind of instability if none "ticks_disappear" was mentioned in a theme.)

Thanks. )

Signature · 4 lines
With best regards,
_______________________________
Vladimir Testov, ROSA Laboratory.
www.rosalab.ru
grub-core/gfxmenu/gui_circular_progress.c +1 -0
diff -Naur grub-new/grub-core/gfxmenu/gui_circular_progress.c grub-new2/grub-core/gfxmenu/gui_circular_progress.c
@@ -303,6 +303,7 @@
   self->visible = 1;
   self->num_ticks = 64;
   self->start_angle = -64;
+  self->ticks_disappear = 0;
 
   return (grub_gui_component_t) self;
 }
grub-core/gfxmenu/gui_circular_progress.c +1 -0
diff -Naur grub-new/grub-core/gfxmenu/gui_circular_progress.c grub-new2/grub-core/gfxmenu/gui_circular_progress.c
@@ -303,6 +303,7 @@
   self->visible = 1;
   self->num_ticks = 64;
   self->start_angle = -64;
+  self->ticks_disappear = 1;
 
   return (grub_gui_component_t) self;
 }