Ignore:
Timestamp:
Sep 7, 2012, 5:18:17 PM (9 years ago)
Author:
jordan
Message:

load the UI from a resource file rather than a string. Patch by fmuellner

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/Makefile.am

    r13199 r13477  
    4848    stats.h \
    4949    torrent-cell-renderer.h \
     50    transmission-resources.h \
    5051    tr-core.h \
    5152    tr-icon.h \
    5253    tr-prefs.h \
    5354    tr-window.h \
    54     ui.h \
    5555    util.h
    5656
     
    7575    stats.c \
    7676    torrent-cell-renderer.c \
     77    transmission-resources.c \
    7778    tr-core.c \
    7879    tr-icon.c \
     
    107108icondir = $(datadir)/pixmaps
    108109
     110UI_FILES = transmission-ui.xml
     111
     112transmission-resources.c: transmission.gresource.xml $(UI_FILES)
     113        glib-compile-resources --target=$@ --sourcedir=$(srcdir) \
     114          --generate-source --c-name transmission $<
     115
     116transmission-resources.h: transmission.gresource.xml
     117        glib-compile-resources --target=$@ --sourcedir=$(srcdir) \
     118          --generate-header --c-name transmission $<
     119
    109120EXTRA_DIST = \
    110121    $(DESKTOP_IN_FILES) \
     
    120131
    121132BUILT_SOURCES = \
    122         setransmission.res
     133        setransmission.res \
     134        transmission-resources.c \
     135        transmission-resources.h
    123136
    124137CLEANFILES = \
    125         transmission.res
     138        setransmission.res \
     139        transmission-resources.c \
     140        transmission-resources.h
    126141
    127142transmission_gtk_LDADD += \
Note: See TracChangeset for help on using the changeset viewer.