SOURCES: perl-Etk-api.patch (NEW) - build with current etk API
qboosh
qboosh at pld-linux.org
Sun Sep 9 23:30:55 CEST 2007
Author: qboosh Date: Sun Sep 9 21:30:55 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- build with current etk API
---- Files affected:
SOURCES:
perl-Etk-api.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/perl-Etk-api.patch
diff -u /dev/null SOURCES/perl-Etk-api.patch:1.1
--- /dev/null Sun Sep 9 23:30:55 2007
+++ SOURCES/perl-Etk-api.patch Sun Sep 9 23:30:50 2007
@@ -0,0 +1,444 @@
+--- Etk-Perl-0.07/xs/Combobox.xs.orig 2007-07-29 09:56:12.000000000 +0200
++++ Etk-Perl-0.07/xs/Combobox.xs 2007-09-09 21:15:57.774638958 +0200
+@@ -15,418 +15,6 @@
+ #include "EtkTypes.h"
+ #include "EtkSignals.h"
+
+-MODULE = Etk::Combobox::Entry PACKAGE = Etk::Combobox::Entry PREFIX = etk_combobox_entry_
+-
+-Etk_Combobox_Entry *
+-new(class)
+- SV *class
+- CODE:
+- RETVAL = ETK_COMBOBOX_ENTRY(etk_combobox_entry_new());
+- OUTPUT:
+- RETVAL
+-
+-Etk_Combobox_Entry *
+-new_default(class)
+- SV *class
+- ALIAS:
+- NewDefault=1
+- CODE:
+- RETVAL = ETK_COMBOBOX_ENTRY(etk_combobox_entry_new_default());
+- OUTPUT:
+- RETVAL
+-
+-# Convert to entry
+-Etk_Widget *
+-etk_combobox_entry_entry_get(combobox_entry)
+- Etk_Combobox_Entry *combobox_entry
+- ALIAS:
+- EntryGet=1
+-
+-void
+-etk_combobox_entry_items_height_set(combobox_entry, items_height)
+- Etk_Combobox_Entry *combobox_entry
+- int items_height
+- ALIAS:
+- ItemsHeightSet=1
+-
+-int
+-etk_combobox_entry_items_height_get(combobox_entry)
+- Etk_Combobox_Entry *combobox_entry
+- ALIAS:
+- ItemsHeightGet=1
+-
+-void
+-etk_combobox_entry_column_add(combobox_entry, col_type, width, fill_policy, align)
+- Etk_Combobox_Entry *combobox_entry
+- Etk_Combobox_Entry_Column_Type col_type
+- int width
+- Etk_Combobox_Entry_Fill_Policy fill_policy
+- float align
+- ALIAS:
+- ColumnAdd=1
+-
+-void
+-etk_combobox_entry_build(combobox_entry)
+- Etk_Combobox_Entry *combobox_entry
+- ALIAS:
+- Build=1
+-
+-void
+-etk_combobox_entry_clear(combobox_entry)
+- Etk_Combobox_Entry *combobox_entry
+- ALIAS:
+- Clear=1
+-
+-# FIXME: Copied directly from combobox: These need to be changed
+-Etk_Combobox_Entry_Item *
+-etk_combobox_entry_item_append(combobox, ...)
+- Etk_Combobox_Entry * combobox
+- ALIAS:
+- ItemAppend=1
+- CODE:
+- int i;
+- void **ptr = NULL;
+-
+- ptr = calloc(items, sizeof(void *));
+- memset(ptr, 0, items * sizeof(void *));
+- /* the idea here is that we either have a max limit on how many items
+- * we can have in a combo, or we create "models" like the tree. lets
+- * see how well this will work.
+- */
+- for(i = 0; i < items - 1; i++)
+- {
+- if(SvPOK(ST(i + 1)))
+- ptr[i] = SvPV_nolen(ST(i + 1));
+- else
+- ptr[i] = SvObj(ST(i + 1), getClass("Etk_Widget"));
+- }
+- switch(items)
+- {
+- case 2:
+- RETVAL = etk_combobox_entry_item_append(combobox, ptr[0]);
+- break;
+- case 3:
+- RETVAL = etk_combobox_entry_item_append(combobox, ptr[0], ptr[1]);
+- break;
+- case 4:
+- RETVAL = etk_combobox_entry_item_append(combobox, ptr[0], ptr[1], ptr[2]);
+- break;
+- case 5:
+- RETVAL = etk_combobox_entry_item_append(combobox, ptr[0], ptr[1], ptr[2], ptr[3]);
+- break;
+- case 6:
+- RETVAL = etk_combobox_entry_item_append(combobox, ptr[0],
+- ptr[1], ptr[2], ptr[3], ptr[4]);
+- break;
+- case 7:
+- RETVAL = etk_combobox_entry_item_append(combobox, ptr[0],
+- ptr[1], ptr[2], ptr[3], ptr[4],
+- ptr[5]);
+- break;
+- case 8:
+- RETVAL = etk_combobox_entry_item_append(combobox, ptr[0],
+- ptr[1], ptr[2], ptr[3], ptr[4],
+- ptr[5], ptr[6]);
+- break;
+- case 9:
+- RETVAL = etk_combobox_entry_item_append(combobox, ptr[0],
+- ptr[1], ptr[2], ptr[3], ptr[4],
+- ptr[5], ptr[6], ptr[7]);
+- break;
+- case 10:
+- RETVAL = etk_combobox_entry_item_append(combobox, ptr[0],
+- ptr[1], ptr[2], ptr[3], ptr[4],
+- ptr[5], ptr[6], ptr[7], ptr[8]);
+- break;
+- case 11:
+- RETVAL = etk_combobox_entry_item_append(combobox, ptr[0],
+- ptr[1], ptr[2], ptr[3], ptr[4],
+- ptr[5], ptr[6], ptr[7], ptr[8],
+- ptr[9]);
+- break;
+- }
+- if(ptr)
+- free(ptr);
+- OUTPUT:
+- RETVAL
+-
+-Etk_Combobox_Entry_Item *
+-etk_combobox_entry_item_prepend(combobox, ...)
+- Etk_Combobox_Entry * combobox
+- ALIAS:
+- ItemPrepend=1
+- CODE:
+- int i;
+- void **ptr = NULL;
+-
+- ptr = calloc(items, sizeof(void *));
+- memset(ptr, 0, items * sizeof(void *));
+- /* the idea here is that we either have a max limit on how many items
+- * we can have in a combo, or we create "models" like the tree. lets
+- * see how well this will work.
+- */
+- for(i = 0; i < items - 1; i++)
+- {
+- if(SvPOK(ST(i + 1)))
+- ptr[i] = SvPV_nolen(ST(i + 1));
+- else
+- ptr[i] = SvObj(ST(i + 1), getClass("Etk_Widget"));
+- }
+- switch(items)
+- {
+- case 2:
+- RETVAL = etk_combobox_entry_item_prepend(combobox, ptr[0]);
+- break;
+- case 3:
+- RETVAL = etk_combobox_entry_item_prepend(combobox, ptr[0],
+- ptr[1]);
+- break;
+- case 4:
+- RETVAL = etk_combobox_entry_item_prepend(combobox, ptr[0],
+- ptr[1], ptr[2]);
+- break;
+- case 5:
+- RETVAL = etk_combobox_entry_item_prepend(combobox, ptr[0],
+- ptr[1], ptr[2], ptr[3]);
+- break;
+- case 6:
+- RETVAL = etk_combobox_entry_item_prepend(combobox, ptr[0],
+- ptr[1], ptr[2], ptr[3], ptr[4]);
+- break;
+- case 7:
+- RETVAL = etk_combobox_entry_item_prepend(combobox, ptr[0],
+- ptr[1], ptr[2], ptr[3], ptr[4],
+- ptr[5]);
+- break;
+- case 8:
+- RETVAL = etk_combobox_entry_item_prepend(combobox, ptr[0],
+- ptr[1], ptr[2], ptr[3], ptr[4],
+- ptr[5], ptr[6]);
+- break;
+- case 9:
+- RETVAL = etk_combobox_entry_item_prepend(combobox, ptr[0],
+- ptr[1], ptr[2], ptr[3], ptr[4],
+- ptr[5], ptr[6], ptr[7]);
+- break;
+- case 10:
+- RETVAL = etk_combobox_entry_item_prepend(combobox, ptr[0],
+- ptr[1], ptr[2], ptr[3], ptr[4],
+- ptr[5], ptr[6], ptr[7], ptr[8]);
+- break;
+- case 11:
+- RETVAL = etk_combobox_entry_item_prepend(combobox, ptr[0],
+- ptr[1], ptr[2], ptr[3], ptr[4],
+- ptr[5], ptr[6], ptr[7], ptr[8],
+- ptr[9]);
+- break;
+- }
+- if(ptr)
+- free(ptr);
+- OUTPUT:
+- RETVAL
+-
+-Etk_Combobox_Entry_Item *
+-etk_combobox_entry_item_insert(combobox, after, ...)
+- Etk_Combobox_Entry * combobox
+- Etk_Combobox_Entry_Item * after
+- ALIAS:
+- ItemInsert=1
+- CODE:
+- int i;
+- void **ptr = NULL;
+-
+- ptr = calloc(items, sizeof(void *));
+- memset(ptr, 0, items * sizeof(void *));
+- /* the idea here is that we either have a max limit on how many items
+- * we can have in a combo, or we create "models" like the tree. lets
+- * see how well this will work.
+- */
+- for(i = 0; i < items - 2; i++)
+- {
+- if(SvPOK(ST(i + 1)))
+- ptr[i] = SvPV_nolen(ST(i + 1));
+- else
+- ptr[i] = SvObj(ST(i + 1), getClass("Etk_Widget"));
+- }
+- switch(items)
+- {
+- case 2:
+- RETVAL = etk_combobox_entry_item_insert(combobox,
+- after, ptr[0]);
+- break;
+- case 3:
+- RETVAL = etk_combobox_entry_item_insert(combobox,
+- after, ptr[0],
+- ptr[1]);
+- break;
+- case 4:
+- RETVAL = etk_combobox_entry_item_insert(combobox,
+- after, ptr[0],
+- ptr[1], ptr[2]);
+- break;
+- case 5:
+- RETVAL = etk_combobox_entry_item_insert(combobox,
+- after, ptr[0],
+- ptr[1], ptr[2], ptr[3]);
+- break;
+- case 6:
+- RETVAL = etk_combobox_entry_item_insert(combobox,
+- after, ptr[0],
+- ptr[1], ptr[2], ptr[3],
+- ptr[4]);
+- break;
+- case 7:
+- RETVAL = etk_combobox_entry_item_insert(combobox,
+- after, ptr[0],
+- ptr[1], ptr[2], ptr[3],
+- ptr[4], ptr[5]);
+- break;
+- case 8:
+- RETVAL = etk_combobox_entry_item_insert(combobox,
+- after, ptr[0],
+- ptr[1], ptr[2], ptr[3],
+- ptr[4], ptr[5], ptr[6]);
+- break;
+- case 9:
+- RETVAL = etk_combobox_entry_item_insert(combobox,
+- after, ptr[0],
+- ptr[1], ptr[2], ptr[3],
+- ptr[4], ptr[5], ptr[6],
+- ptr[7]);
+- break;
+- case 10:
+- RETVAL = etk_combobox_entry_item_insert(combobox,
+- after, ptr[0],
+- ptr[1], ptr[2], ptr[3],
+- ptr[4], ptr[5], ptr[6],
+- ptr[7], ptr[8]);
+- break;
+- case 11:
+- RETVAL = etk_combobox_entry_item_insert(combobox,
+- after, ptr[0],
+- ptr[1], ptr[2], ptr[3],
+- ptr[4], ptr[5], ptr[6],
+- ptr[7], ptr[8], ptr[9]);
+- break;
+- }
+- if(ptr)
+- free(ptr);
+- OUTPUT:
+- RETVAL
+-
+-
+-void
+-etk_combobox_entry_active_item_set(combobox_entry, item)
+- Etk_Combobox_Entry *combobox_entry
+- Etk_Combobox_Entry_Item *item
+- ALIAS:
+- ActiveItemSet=1
+-
+-Etk_Combobox_Entry_Item *
+-etk_combobox_entry_active_item_get(combobox_entry)
+- Etk_Combobox_Entry *combobox_entry
+- ALIAS:
+- ActiveItemGet=1
+-
+-int
+-etk_combobox_entry_active_item_num_get(combobox_entry)
+- Etk_Combobox_Entry *combobox_entry
+- ALIAS:
+- ActiveItemNumGet=1
+-
+-Etk_Combobox_Entry_Item *
+-etk_combobox_entry_first_item_get(combobox_entry)
+- Etk_Combobox_Entry *combobox_entry
+- ALIAS:
+- FirstItemGet=1
+-
+-Etk_Combobox_Entry_Item *
+-etk_combobox_entry_last_item_get(combobox_entry)
+- Etk_Combobox_Entry *combobox_entry
+- ALIAS:
+- LastItemGet=1
+-
+-Etk_Combobox_Entry_Item *
+-etk_combobox_entry_nth_item_get(combobox_entry, index)
+- Etk_Combobox_Entry *combobox_entry
+- int index
+- ALIAS:
+- NthItemGet=1
+-
+-Etk_Bool
+-etk_combobox_entry_is_popped_up(combobox_entry)
+- Etk_Combobox_Entry *combobox_entry
+- ALIAS:
+- IsPoppedUp=1
+-
+-void
+-etk_combobox_entry_pop_up(combobox_entry)
+- Etk_Combobox_Entry *combobox_entry
+- ALIAS:
+- PopUp=1
+-
+-void
+-etk_combobox_entry_pop_down(combobox_entry)
+- Etk_Combobox_Entry *combobox_entry
+- ALIAS:
+- PopDown=1
+-
+-void
+-etk_combobox_entry_popup_feed(combobox_entry, window)
+- Etk_Combobox_Entry *combobox_entry
+- Etk_Window *window
+- ALIAS:
+- PopupFeed=1
+-
+-MODULE = Etk::Combobox::Entry::Item PACKAGE = Etk::Combobox::Entry::Item PREFIX = etk_combobox_entry_item_
+-
+-void
+-etk_combobox_entry_item_remove(item)
+- Etk_Combobox_Entry_Item *item
+- ALIAS:
+- Remove=1
+-
+-# etk_combobox_entry_item_fields_set
+-
+-# etk_combobox_entry_item_fields_get
+-
+-void
+-etk_combobox_entry_item_data_set(item, data)
+- Etk_Combobox_Entry_Item *item
+- SV * data
+- ALIAS:
+- DataSet=1
+- CODE:
+- etk_combobox_entry_item_data_set(item, newSVsv(data));
+-
+-SV *
+-etk_combobox_entry_item_data_get(item)
+- Etk_Combobox_Entry_Item *item
+- ALIAS:
+- DataGet=1
+- CODE:
+- RETVAL = newSVsv((SV*)etk_combobox_entry_item_data_get(item));
+- OUTPUT:
+- RETVAL
+-
+-Etk_Combobox_Entry_Item *
+-etk_combobox_entry_item_prev_get(item)
+- Etk_Combobox_Entry_Item *item
+- ALIAS:
+- PrevGet=1
+-
+-Etk_Combobox_Entry_Item *
+-etk_combobox_entry_item_next_get(item)
+- Etk_Combobox_Entry_Item *item
+- ALIAS:
+- NextGet=1
+-
+-Etk_Combobox_Entry *
+-etk_combobox_entry_item_combobox_entry_get(item)
+- Etk_Combobox_Entry_Item *item
+- ALIAS:
+- ComboboxEntryGet=1
+-
+ MODULE = Etk::Combobox::Item PACKAGE = Etk::Combobox::Item PREFIX = etk_combobox_item_
+
+ SV *
+--- Etk-Perl-0.07/xs/Toolbar.xs.orig 2007-07-14 02:19:43.000000000 +0200
++++ Etk-Perl-0.07/xs/Toolbar.xs 2007-09-09 21:22:37.853438150 +0200
+@@ -86,18 +86,16 @@ new(class)
+ RETVAL
+
+ void
+-etk_toolbar_append(toolbar, widget, group=ETK_BOX_START)
++etk_toolbar_append(toolbar, widget)
+ Etk_Toolbar * toolbar
+ Etk_Widget * widget
+- Etk_Box_Group group
+ ALIAS:
+ Append=1
+
+ void
+-etk_toolbar_prepend(toolbar, widget, group=ETK_BOX_START)
++etk_toolbar_prepend(toolbar, widget)
+ Etk_Toolbar * toolbar
+ Etk_Widget * widget
+- Etk_Box_Group group
+ ALIAS:
+ Prepend=1
+
================================================================
More information about the pld-cvs-commit
mailing list