Changeset 12232


Ignore:
Timestamp:
Mar 25, 2011, 7:32:30 AM (11 years ago)
Author:
jordan
Message:

(trunk gtk) get everything except torrent-cell-renderer building under GTK+ 3.0.5

Location:
trunk/gtk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/main.c

    r12223 r12232  
    15621562}
    15631563
     1564/* GTK+ versions before 2.18.0 don't have a default URI hook... */
     1565#if !GTK_CHECK_VERSION(2,18,0)
     1566 #define NEED_URL_HOOK
     1567#endif
     1568
     1569#ifdef NEED_URL_HOOK
    15641570static void
    15651571on_uri_clicked( GtkAboutDialog * u UNUSED, const gchar * uri, gpointer u2 UNUSED )
     
    15671573    gtr_open_uri( uri );
    15681574}
     1575#endif
    15691576
    15701577static void
     
    15791586    };
    15801587
     1588#ifdef NEED_URL_HOOK
    15811589    gtk_about_dialog_set_url_hook( on_uri_clicked, NULL, NULL );
     1590#endif
    15821591
    15831592    d = g_object_new( GTK_TYPE_ABOUT_DIALOG,
  • trunk/gtk/tr-window.c

    r12204 r12232  
    875875        gdk_display_flush( display );
    876876
    877         if( cursor )
     877        if( cursor ) {
     878#if GTK_CHECK_VERSION(3,0,0)
     879            g_object_unref( cursor );
     880#else
    878881            gdk_cursor_unref( cursor );
    879     }
    880 }
     882#endif
     883        }
     884    }
     885}
Note: See TracChangeset for help on using the changeset viewer.