Changes between Initial Version and Version 1 of Ticket #29659


Ignore:
Timestamp:
May 31, 2011, 2:47:51 PM (13 years ago)
Author:
mf2k (Frank Schima)
Comment:

In the future, please use WikiFormatting and the Preview button to check. Also please Cc the maintainer(s). I have fixed these for you.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29659

    • Property Owner changed from macports-tickets@… to singingwolfboy@…
  • Ticket #29659 – Description

    initial v1  
    55try 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;
    66try to drag an image at the bottom of window, program crashes with bus error. last 2 calls in call stack are:
     7{{{
    78#0  0x006c605a in gtk_style_context_save (context=0x14) at gtkstylecontext.c:1727
    89#1  0x007b099e in gtk_drag_highlight_draw (widget=0x14, cr=0x24a160, data=0x0) at gtkdnd-quartz.c:352
    9 
     10}}}
    1011
    1112in order to fix these bugs, the following functions must be patched:
    1213gtk_clipboard_wait_for_contents() in gtk/gtkclipboard-quartz.c
    13 
     14{{{
    1415      selection_data = g_slice_new0 (GtkSelectionData);
    1516      selection_data->selection = clipboard->selection;
     
    1718      //FIX: set display!!!!!
    1819      selection_data->display=clipboard->display;
    19 
     20}}}
    2021and
    21 
     22{{{
    2223  selection_data = _gtk_quartz_get_selection_data_from_pasteboard
    2324(clipboard->pasteboard,
     
    2627  //FIX: set display!!!!!
    2728  if(selection_data)selection_data->display=clipboard->display;
    28 
     29}}}
    2930
    3031in gtk/gtkdnd-quartz.c, gtk_style_context_save()
    31 
     32{{{
    3233  //GtkStyleContext *context;
    3334  //FIX: initialize pointer before using it!!!!
    3435  GtkStyleContext *context=gtk_widget_get_style_context (widget);
    3536  gtk_style_context_save (context);
     37}}}
    3638
    3739after these patches, i've got  gtk3 working properly on mac os 10.5