Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=955c3109e038dd034282d2d90c11691be5a5441b

commit 955c3109e038dd034282d2d90c11691be5a5441b
Author: James Buren <[email protected]>
Date:   Fri Nov 9 16:25:02 2012 -0600

add UI event lopp

diff --git a/src/ui_newt.c b/src/ui_newt.c
index 1858eb2..52ac7cd 100644
--- a/src/ui_newt.c
+++ b/src/ui_newt.c
@@ -584,6 +584,30 @@ extern bool ui_window_partition(struct device 
**devices,struct disk **disks)

newtFormSetCurrent(form,listbox);

+  while(true)
+  {
+    newtFormRun(form,&es);
+
+    if(es.reason == NEWT_EXIT_COMPONENT && es.u.co == listbox)
+    {
+      union partition_action action = { .data = (uintptr_t) 
newtListboxGetCurrent(listbox) };
+
+      if(action.disk)
+      {
+      }
+      else if(action.partition)
+      {
+      }
+      else if(action.space)
+      {
+      }
+    }
+    else if(es.reason == NEWT_EXIT_COMPONENT && es.u.co == next)
+    {
+      break;
+    }
+  }
+
newtFormDestroy(form);

newtPopWindow();
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to