we have 2 body less functions in elm_panes
  - elm_panes_content_right_size_get
  - elm_panes_content_right_size_set

as Michael didn't seem too kind to feed the body and fix the header with my 
first patch,
I then sent the kill the head patch.

feed the body or kill the head, you choose.

Jeremy

On Tuesday 28 February 2012  23:27, Daniel Juyung Seo wrote :
> Same comment here.
> Why are you trying to remove them from h even you added them to c?
> 
> Daniel Juyung Seo (SeoZ)
> 
> On Tue, Feb 28, 2012 at 6:12 PM, Jeremy Zurcher <jer...@asynk.ch> wrote:
> > if you prefer,
> > get rid of elm_panes_content_right_size_* in header
> >
> > Jeremy
> >
> > ------------------------------------------------------------------------------
> > Keep Your Developer Skills Current with LearnDevNow!
> > The most comprehensive online learning library for Microsoft developers
> > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> > Metro Style Apps, more. Free future releases when you subscribe now!
> > http://p.sf.net/sfu/learndevnow-d2d
> > _______________________________________________
> > enlightenment-devel mailing list
> > enlightenment-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> >
> 
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

--- elm_panes.h.orig    2012-02-28 17:01:14.248104157 +0100
+++ elm_panes.h 2012-02-28 17:01:53.054770581 +0100
@@ -63,16 +63,14 @@
  * @param obj The panes object.
  * @param fixed Use @c EINA_TRUE to make @p obj to be
  * resize the left and right panes @b homogeneously.
- * Use @c EINA_FALSE to make use of the values specified in 
+ * Use @c EINA_FALSE to make use of the values specified in
  * elm_panes_content_left_size_set() and
- * elm_panes_content_right_size_set()
  * to resize the left and right panes.
  *
  * By default panes are resized homogeneously.
  *
  * @see elm_panes_fixed_get()
- * @see elmpanes_content_left_size_set()
- * @see elm_panes_content_right_size_set()
+ * @see elm_panes_content_left_size_set()
  *
  * @ingroup Panes
  */
@@ -85,8 +83,7 @@
  * @return @c EINA_TRUE, if @p obj is set to be resized @b homogeneously,
  *
  * @see elm_panes_fixed_set() for more details.
- * @see elmpanes_content_left_size_get()
- * @see elm_panes_content_right_size_get()
+ * @see elm_panes_content_left_size_get()
  *
  * @ingroup Panes
  */
@@ -131,45 +128,6 @@
 EAPI void                         elm_panes_content_left_size_set(Evas_Object 
*obj, double size);
 
 /**
- * Get the size proportion of panes widget's right side.
- *
- * @param obj The panes object.
- * @return float value between 0.0 and 1.0 representing size proportion
- * of right side.
- *
- * @see elm_panes_content_right_size_set() for more details.
- *
- * @ingroup Panes
- */
-EAPI double                       elm_panes_content_right_size_get(const 
Evas_Object *obj);
-
-/**
- * Set the size proportion of panes widget's right side.
- *
- * @param obj The panes object.
- * @param size Value between 0.0 and 1.0 representing size proportion
- * of right side.
- *
- * By default it's homogeneous, i.e., both sides have the same size.
- *
- * If something different is required, it can be set with this function.
- * For example, if the right content should be displayed over
- * 75% of the panes size, @p size should be passed as @c 0.75.
- * This way, right content will be resized to 25% of panes size.
- *
- * If displayed vertically, right content is displayed at top, and
- * right content at bottom.
- *
- * @note This proportion will change when user drags the panes bar.
- *
- * @see elm_panes_content_right_size_get()
- *
- * @ingroup Panes
- */
-EAPI void                         elm_panes_content_right_size_set(Evas_Object 
*obj, double size);
-
-
-/**
  * Set the orientation of a given panes widget.
  *
  * @param obj The panes object.
diff -Naur orig/elm_panes.c new/elm_panes.c
--- orig/elm_panes.c    2012-02-28 17:02:35.331437034 +0100
+++ new/elm_panes.c     2012-02-28 17:08:23.848101951 +0100
@@ -422,6 +422,18 @@
      edje_object_part_drag_value_set(wd->panes, "elm.bar", size, 0.0);
 }
 
+EAPI double
+elm_panes_content_right_size_get(const Evas_Object *obj)
+{
+   return 1.0-elm_panes_content_left_size_get(obj);
+}
+
+EAPI void
+elm_panes_content_right_size_set(Evas_Object *obj, double size)
+{
+   elm_panes_content_left_size_set(obj, 1.0-size);
+}
+
 EAPI void
 elm_panes_horizontal_set(Evas_Object *obj, Eina_Bool horizontal)
 {
diff -Naur orig/elm_panes.h new/elm_panes.h
--- orig/elm_panes.h    2012-02-28 17:05:41.591436098 +0100
+++ new/elm_panes.h     2012-02-28 17:06:52.184769052 +0100
@@ -63,7 +63,7 @@
  * @param obj The panes object.
  * @param fixed Use @c EINA_TRUE to make @p obj to be
  * resize the left and right panes @b homogeneously.
- * Use @c EINA_FALSE to make use of the values specified in 
+ * Use @c EINA_FALSE to make use of the values specified in
  * elm_panes_content_left_size_set() and
  * elm_panes_content_right_size_set()
  * to resize the left and right panes.
@@ -71,7 +71,7 @@
  * By default panes are resized homogeneously.
  *
  * @see elm_panes_fixed_get()
- * @see elmpanes_content_left_size_set()
+ * @see elm_panes_content_left_size_set()
  * @see elm_panes_content_right_size_set()
  *
  * @ingroup Panes
@@ -85,7 +85,7 @@
  * @return @c EINA_TRUE, if @p obj is set to be resized @b homogeneously,
  *
  * @see elm_panes_fixed_set() for more details.
- * @see elmpanes_content_left_size_get()
+ * @see elm_panes_content_left_size_get()
  * @see elm_panes_content_right_size_get()
  *
  * @ingroup Panes
@@ -155,9 +155,9 @@
  * If something different is required, it can be set with this function.
  * For example, if the right content should be displayed over
  * 75% of the panes size, @p size should be passed as @c 0.75.
- * This way, right content will be resized to 25% of panes size.
+ * This way, left content will be resized to 25% of panes size.
  *
- * If displayed vertically, right content is displayed at top, and
+ * If displayed vertically, left content is displayed at top, and
  * right content at bottom.
  *
  * @note This proportion will change when user drags the panes bar.
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to