Enlightenment CVS committal
Author : raster
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_dialog.c e_dialog.h
Log Message:
devil's patch... :)
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_dialog.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -3 -r1.30 -r1.31
--- e_dialog.c 6 Nov 2005 03:40:24 -0000 1.30
+++ e_dialog.c 11 Dec 2005 03:03:53 -0000 1.31
@@ -105,6 +105,17 @@
return 1;
}
+int
+e_dialog_button_disable_num_get(E_Dialog *dia, int button)
+{
+ Evas_Object *o;
+ int ret = 0;
+
+ o = evas_list_nth(dia->buttons, button);
+ if (o) ret = e_widget_disabled_get(o);
+ return ret;
+}
+
void
e_dialog_title_set(E_Dialog *dia, char *title)
{
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_dialog.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- e_dialog.h 6 Nov 2005 03:40:24 -0000 1.9
+++ e_dialog.h 11 Dec 2005 03:03:53 -0000 1.10
@@ -7,15 +7,15 @@
typedef struct _E_Dialog_Button E_Dialog_Button;
#else
-#ifndef E_DIALOG_H
-#define E_DIALOG_H
+# ifndef E_DIALOG_H
+# define E_DIALOG_H
-#define E_DIALOG_TYPE 0xE0b01012
+# define E_DIALOG_TYPE 0xE0b01012
struct _E_Dialog
{
E_Object e_obj_inherit;
-
+
E_Win *win;
Evas_Object *bg_object;
Evas_Object *box_object;
@@ -33,12 +33,13 @@
EAPI void e_dialog_button_add (E_Dialog *dia, char *label,
char *icon, void (*func) (void *data, E_Dialog *dia), void *data);
EAPI int e_dialog_button_focus_num (E_Dialog *dia, int button);
EAPI int e_dialog_button_disable_num_set (E_Dialog *dia, int button, int
disabled);
+EAPI int e_dialog_button_disable_num_get (E_Dialog *dia, int button);
EAPI void e_dialog_title_set (E_Dialog *dia, char *title);
EAPI void e_dialog_text_set (E_Dialog *dia, char *text);
EAPI void e_dialog_icon_set (E_Dialog *dia, char *icon,
Evas_Coord size);
EAPI void e_dialog_content_set (E_Dialog *dia, Evas_Object
*obj, Evas_Coord minw, Evas_Coord minh);
EAPI void e_dialog_resizable_set (E_Dialog *dia, int resizable);
EAPI void e_dialog_show (E_Dialog *dia);
-
-#endif
+
+# endif
#endif
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs