[E-devel] Proposed API addition to Ecore_Con

2010-08-27 Thread Nick Mekius_ Hughart
The attached patch adds a new function called ecore_con_server_name_get.
 All it does is return the name field of the given Ecore_Con_Server object.
 Since we are in this alpha state I was unsure if such an addition was
possible, but I think it can be useful.  Without this I will have to store a
copy of the server string in my own code and send it around with the server
object which will be a pain as well as a waste.
Index: src/lib/ecore_con/Ecore_Con.h
===
--- src/lib/ecore_con/Ecore_Con.h	(revision 51669)
+++ src/lib/ecore_con/Ecore_Con.h	(working copy)
@@ -366,6 +366,7 @@
  void *data);
 EAPI int   ecore_con_server_connected_get(Ecore_Con_Server *svr);
 EAPI Eina_List *   ecore_con_server_clients_get(Ecore_Con_Server *svr);
+EAPI const char *  ecore_con_server_name_get(Ecore_Con_Server *svr);
 EAPI int   ecore_con_server_send(Ecore_Con_Server *svr,
  const void *data,
  int size);
Index: src/lib/ecore_con/ecore_con.c
===
--- src/lib/ecore_con/ecore_con.c	(revision 51669)
+++ src/lib/ecore_con/ecore_con.c	(working copy)
@@ -511,6 +511,24 @@
 }

 /**
+ * Retrieves the name of server.
+ * @param   svr The given server.
+ * @return  The name of the server.
+ */
+EAPI const char *
+ecore_con_server_name_get(Ecore_Con_Server *svr)
+{
+   if (!ECORE_MAGIC_CHECK(svr, ECORE_MAGIC_CON_SERVER))
+ {
+ECORE_MAGIC_FAIL(svr, ECORE_MAGIC_CON_SERVER,
+ ecore_con_server_name_get);
+return NULL;
+ }
+
+   return svr-name;
+}
+
+/**
  * Sends the given data to the given server.
  * @param   svr  The given server.
  * @param   data The given data.
--
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] Temperature module F/C patch

2005-09-08 Thread Nick \Mekius_\ Hughart
Here is a patch to add support for setting the temperature module to read in fahrenheit or celcius.


[E-devel] Temperature module F/C patch (patch attached)

2005-09-08 Thread Nick \Mekius_\ Hughart
Here is a patch to add support for setting the temperature module to read in fahrenheit or celcius.


temperature.patch
Description: Binary data


[E-devel] ewl entry home/end patch

2005-07-10 Thread Nick \Mekius_\ Hughart
I made a quick diff to add support for the home/end keys which I use
quite often :).

Right now it's not very smart.  It will goto the very beginning or
very end even in a multiline entry, but I'll look into improving it
for multiline entries so it goes to the beginning and end of the line
the cursor is on.


ewl_entry_home_end.diff
Description: Binary data


[E-devel] Ewl Entry Cursor patch revised

2005-07-09 Thread Nick \Mekius_\ Hughart
Made a few changes for the better.  Cursor now is not shown until text
box is selected the first time and disappears when deselecting.


ewl_entry.patch
Description: Binary data


[E-devel] ewl_entry cursor patch

2005-07-08 Thread Nick \Mekius_\ Hughart
Patch to make the cursor appear only when the entry has focus.  This
helps in a couple ways.  It doesn't look as ugly and it also helps see
which entry actually has focus.


---
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] I'll learn to attach one of these days

2005-07-08 Thread Nick \Mekius_\ Hughart
Here is the ewl_entry patch, with the attachment :).

I'll try and remember this from now on.


ewl_entry.patch
Description: Binary data