source: trunk/dports/gnome/gtk2/files/664238.diff @ 87416

Last change on this file since 87416 was 87416, checked in by ryandesign@…, 9 years ago

gtk2: fix drag and drop crash; see #32152

File size: 836 bytes
  • gtk/gtkquartz.c

    From ede7c10f00ca07bfcf129bb91af533a046c76e0f Mon Sep 17 00:00:00 2001
    From: John Ralls <jralls@ceridwen.us>
    Date: Sat, 19 Nov 2011 11:33:28 -0800
    Subject: [PATCH] [Bug 664238] GTK apps crash when dragging something
    
    Corrects a bad condition in a test in fadc82ad.
    ---
     gtk/gtkquartz.c |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    old new _gtk_quartz_create_image_from_pixbuf (GdkPixbuf *pixbuf) 
    3939
    4040  pixbuf_width = gdk_pixbuf_get_width (pixbuf);
    4141  pixbuf_height = gdk_pixbuf_get_height (pixbuf);
    42   g_return_val_if_fail (pixbuf_width == 0 && pixbuf_height == 0, NULL);
     42  g_return_val_if_fail (pixbuf_width != 0 && pixbuf_height != 0, NULL);
    4343  rowstride = gdk_pixbuf_get_rowstride (pixbuf);
    4444  has_alpha = gdk_pixbuf_get_has_alpha (pixbuf);
    4545
Note: See TracBrowser for help on using the repository browser.