Branch: Tag:

2016-11-01

2016-11-01 06:21:12 by Chris Angelico <rosuav@gmail.com>

Allow GTK2.SelectionData to be passed as a parameter

472:      enum { PUSHED_NOTHING, PUSHED_VALUE, NEED_RETURN, };    - /* - static int pgtk2_push_selection_data_param( GValue *a ) - { -  push_pgdk2object( GTK_VALUE_POINTER(*a), pgtk2_selection_data_program); -  return PUSHED_VALUE; - } - */ -  +    static int pgtk2_push_accel_group_param(const GValue *a) {    g_object_ref(g_value_get_pointer(a));    push_gobjectclass(g_value_get_pointer(a),pgtk2_accel_group_program);
591:    push_pgdk2object(gp,pgtk2_tree_path_program,0);    } else if (G_VALUE_HOLDS(a,g_type_from_name("GtkTextIter"))) {    push_pgdk2object(gp,pgtk2_text_iter_program,0); +  } else if (G_VALUE_HOLDS(a,g_type_from_name("GtkSelectionData"))) { +  push_pgdk2object(gp,pgtk2_selection_data_program,0);    } else if (G_VALUE_HOLDS(a,g_type_from_name("GdkRectangle"))) {    push_gdkobject(gp,rectangle,0);    } else if (G_VALUE_HOLDS(a,g_type_from_name("GdkRegion"))) {