GtkTreeView: Prevent drag and drop to a nested level

2018-06-15 Thread Lars Paulsen
Hi All, I am using a GTkTreeView with automatic DND enabled and I wonder if there is a simple way to prevent/suppress that a toplevel item can be dragged to a child position of another toplevel item. What I did so far was catch the "row-inserted" signal, check if the item has moved to a chil

question about gtk_dialog (gtk2)

2018-06-15 Thread Wojciech Puchar
how to make dialogs appear on center of screen not on left corner. tried multiple things no results. For normal windows gtk_window_set_position works for dialog it doesn't below is example routine to ask a yes/no question from my program. i've tried gtk_window_set_position(GTK_WINDOW(dialog)