Changes between Initial Version and Version 1 of Ticket #29659
- Timestamp:
- May 31, 2011, 2:47:51 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29659
- Property Owner changed from macports-tickets@… to singingwolfboy@…
-
Ticket #29659 – Description
initial v1 5 5 try to paste text by pressing the button "paste" and see warning in console: assertion GDK_IS_DISPLAY(...) failed. text in not inserted in the text field; 6 6 try to drag an image at the bottom of window, program crashes with bus error. last 2 calls in call stack are: 7 {{{ 7 8 #0 0x006c605a in gtk_style_context_save (context=0x14) at gtkstylecontext.c:1727 8 9 #1 0x007b099e in gtk_drag_highlight_draw (widget=0x14, cr=0x24a160, data=0x0) at gtkdnd-quartz.c:352 9 10 }}} 10 11 11 12 in order to fix these bugs, the following functions must be patched: 12 13 gtk_clipboard_wait_for_contents() in gtk/gtkclipboard-quartz.c 13 14 {{{ 14 15 selection_data = g_slice_new0 (GtkSelectionData); 15 16 selection_data->selection = clipboard->selection; … … 17 18 //FIX: set display!!!!! 18 19 selection_data->display=clipboard->display; 19 20 }}} 20 21 and 21 22 {{{ 22 23 selection_data = _gtk_quartz_get_selection_data_from_pasteboard 23 24 (clipboard->pasteboard, … … 26 27 //FIX: set display!!!!! 27 28 if(selection_data)selection_data->display=clipboard->display; 28 29 }}} 29 30 30 31 in gtk/gtkdnd-quartz.c, gtk_style_context_save() 31 32 {{{ 32 33 //GtkStyleContext *context; 33 34 //FIX: initialize pointer before using it!!!! 34 35 GtkStyleContext *context=gtk_widget_get_style_context (widget); 35 36 gtk_style_context_save (context); 37 }}} 36 38 37 39 after these patches, i've got gtk3 working properly on mac os 10.5