Enlightenment CVS committal
Author : moom
Project : e17
Module : libs/etk
Dir : e17/libs/etk/src/lib
Modified Files:
etk_dialog.c
Log Message:
* [Dialog] Change the default fill-policy with etk_dialog_button_add()
and etk_dialog_button_add_from_stock()
===================================================================
RCS file: /cvs/e/e17/libs/etk/src/lib/etk_dialog.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- etk_dialog.c 10 Mar 2007 03:22:08 -0000 1.18
+++ etk_dialog.c 10 Mar 2007 03:36:30 -0000 1.19
@@ -138,7 +138,7 @@
/**
* @brief Creates and packs a button to the dialog's action-area.
- * The button will be packed in the start-group of the action-area's hbox, and
will not expand.
+ * The button will be packed in the start-group of the action-area's hbox, and
will use the ETK_BOX_FILL fill-policy
* @param dialog a dialog
* @param label the button's label
* @param response_id the response-id to associate to the button (see
Etk_Dialog_Response_ID for common IDs).
@@ -154,14 +154,14 @@
return NULL;
button = etk_button_new_with_label(label);
- etk_dialog_pack_button_in_action_area(dialog, ETK_BUTTON(button),
response_id, ETK_BOX_START, ETK_BOX_NONE, 0);
+ etk_dialog_pack_button_in_action_area(dialog, ETK_BUTTON(button),
response_id, ETK_BOX_START, ETK_BOX_FILL, 0);
etk_widget_show(button);
return button;
}
/**
* @brief Creates and packs a button to the dialog's action-area. The button
is created from the given stock-id,
- * will be packed in the start-group of the action-area's hbox, and will not
expand.
+ * will be packed in the start-group of the action-area's hbox, and will use
the ETK_BOX_FILL fill-policy
* @param dialog a dialog
* @param stock_id the button's stock id
* @param response_id the response-id to associate to the button (see
Etk_Dialog_Response_ID for common IDs).
@@ -177,7 +177,7 @@
return NULL;
button = etk_button_new_from_stock(stock_id);
- etk_dialog_pack_button_in_action_area(dialog, ETK_BUTTON(button),
response_id, ETK_BOX_START, ETK_BOX_NONE, 0);
+ etk_dialog_pack_button_in_action_area(dialog, ETK_BUTTON(button),
response_id, ETK_BOX_START, ETK_BOX_FILL, 0);
etk_widget_show(button);
return button;
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs