*** rbgtkclist.c.orig Sat Jan 8 20:52:28 2000 --- rbgtkclist.c Thu Jun 1 23:59:42 2000 *************** *** 216,219 **** --- 216,227 ---- static VALUE + clist_optimal_column_width(self, col) + VALUE self, col; + { + return INT2NUM(gtk_clist_optimal_column_width(GTK_CLIST(get_widget(self)), + NUM2INT(col))); + } + + static VALUE clist_set_col_width(self, col, width) VALUE self, col, width; *************** *** 705,708 **** --- 713,717 ---- rb_define_method(gCList, "set_column_resizeable", clist_set_col_resizeable, 2); rb_define_method(gCList, "set_column_auto_resize", clist_set_col_auto_resize, 2); + rb_define_method(gCList, "optimal_column_width", clist_optimal_column_width, 1); rb_define_method(gCList, "set_column_width", clist_set_col_width, 2); rb_define_method(gCList, "set_column_max_width", clist_set_col_max_width, 2); *** rbgtkwindow.c.orig Wed Jan 26 02:42:21 2000 --- rbgtkwindow.c Fri Jun 2 00:11:08 2000 *************** *** 160,163 **** --- 160,172 ---- } + static VALUE + gwin_set_transient_for(self, parent) + VALUE self, parent; + { + gtk_window_set_transient_for(GTK_WINDOW(get_widget(self)), + get_widget(parent)); + return self; + } + void Init_gtk_window() { *************** *** 185,188 **** --- 194,198 ---- rb_define_method(gWindow, "grab_remove", gwin_grab_remove, 0); rb_define_method(gWindow, "set_modal", gwin_set_modal, 1); + rb_define_method(gWindow, "set_transient_for", gwin_set_transient_for, 1); }