Enlightenment CVS committal

Author  : handyande
Project : e17
Module  : apps/examine

Dir     : e17/apps/examine/src


Modified Files:
        examine.c examine_client.c 


Log Message:
Yay, examine is a tad smaller now ;)
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/examine/src/examine.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -3 -r1.26 -r1.27
--- examine.c   6 Oct 2004 20:34:02 -0000       1.26
+++ examine.c   13 Oct 2004 22:27:18 -0000      1.27
@@ -79,7 +79,7 @@
   ewl_window_title_set(EWL_WINDOW(main_win), "Examine Configuration Client");
   ewl_window_name_set(EWL_WINDOW(main_win), "Examine");
   ewl_window_class_set(EWL_WINDOW(main_win), "examine");
-  ewl_object_size_request(EWL_OBJECT(main_win), 200, 250);
+  ewl_object_size_request(EWL_OBJECT(main_win), 250, 320);
   ewl_object_fill_policy_set((Ewl_Object *) main_win, EWL_FLAG_FILL_FILL);
   ewl_callback_append(main_win, EWL_CALLBACK_DELETE_WINDOW,
                       __destroy_main_window, NULL);
@@ -308,10 +308,13 @@
       Ecore_List     *themes;
       int             theme_seen;
       char           *theme_item;
+      Ewl_Object     *tmp;
 
       entries[1] = ewl_hbox_new();
       themes = ecore_list_new();
-
+      ewl_object_fill_policy_set(EWL_OBJECT(entries[1]), EWL_FLAG_FILL_ALL |
+                                                         EWL_FLAG_FILL_SHRINK);
+      
       search_path = strdup(__examine_client_theme_search_path);
       ptr = search_path;
       end = search_path + strlen(search_path);
@@ -425,6 +428,7 @@
   notebook = ewl_notebook_new();
   ewl_notebook_tabs_position_set(EWL_NOTEBOOK(notebook), EWL_POSITION_TOP);
   ewl_notebook_tabs_alignment_set(EWL_NOTEBOOK(notebook), EWL_FLAG_ALIGN_LEFT);
+  ewl_object_fill_policy_set(EWL_OBJECT(notebook), EWL_FLAG_FILL_ALL);
   ewl_container_child_append(EWL_CONTAINER(main_box), notebook);
   ewl_widget_show(notebook);
 
@@ -468,13 +472,17 @@
   button = ewl_text_new(name);
   ewl_widget_show(button);
 
-  pane = ewl_scrollpane_new(); /* FIXME: ewl scrollpane does not allow */
-//  additions after realisation
-//  pane = ewl_vbox_new();
+  pane = ewl_vbox_new();
+  scrollpane = ewl_scrollpane_new();
+
+  ewl_object_alignment_set(EWL_OBJECT(scrollpane), EWL_FLAG_ALIGN_TOP);
+  ewl_widget_show(scrollpane);
+      
   ewl_object_alignment_set(EWL_OBJECT(pane), EWL_FLAG_ALIGN_TOP);
   ewl_widget_show(pane);
 
-  ewl_notebook_page_prepend(EWL_NOTEBOOK(notebook), button, pane);
+  ewl_container_child_append(EWL_CONTAINER(scrollpane), pane);
+  ewl_notebook_page_prepend(EWL_NOTEBOOK(notebook), button, scrollpane);
 
   new_panel = malloc(sizeof(examine_panel));
   new_panel->name = strdup(name);
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/examine/src/examine_client.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- examine_client.c    6 Oct 2004 20:34:02 -0000       1.19
+++ examine_client.c    13 Oct 2004 22:27:19 -0000      1.20
@@ -334,23 +334,45 @@
     examine_client_revert(prop_item);
     prop_item = prop_item->next;
   }
-  draw_tree(prop_list);
 }
 
 void
 examine_client_revert(examine_prop * target)
 {
+  char           *bugfix;
+  Ewl_Widget     *sibling;
   switch (target->type) {
   case PT_INT:
+    target->value.val = target->oldvalue.val;
+    ewl_spinner_value_set(EWL_SPINNER(target->w), target->value.val);
+    break;
   case PT_BLN:
     target->value.val = target->oldvalue.val;
+    ewl_checkbutton_checked_set(EWL_CHECKBUTTON(target->w), target->value.val);
     break;
   case PT_FLT:
     target->value.fval = target->oldvalue.fval;
+    ewl_spinner_value_set(EWL_SPINNER(target->w), target->value.fval);
+    break;
+  case PT_THM:
+    free(target->value.ptr);
+    target->value.ptr = strdup(target->oldvalue.ptr);
+
+    ewl_container_child_iterate_begin(EWL_CONTAINER(target->w));
+    while (sibling = ewl_container_child_next(EWL_CONTAINER(target->w))) {
+      sibling = EWL_WIDGET(EWL_CONTAINER(sibling)->redirect);
+      bugfix = ewl_text_text_get(EWL_TEXT(sibling));
+      if (strcmp(bugfix, target->value.ptr))
+        ewl_text_color_set(EWL_TEXT(sibling), 0, 0, 0, 0xFF);
+      else
+        ewl_text_color_set(EWL_TEXT(sibling), 0xFF, 0, 0, 0xFF);
+      ewl_text_text_set(EWL_TEXT(sibling), bugfix);
+    }
     break;
   default:                     /* PT_STR, PT_RGB */
     free(target->value.ptr);
     target->value.ptr = strdup(target->oldvalue.ptr);
+    ewl_entry_text_set(EWL_ENTRY(target->w), target->value.ptr);
   }
 }
 




-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to