mirror of
https://github.com/alexkay/spek.git
synced 2025-04-19 09:57:41 +03:00
Add GStreamer dependency
This commit is contained in:
parent
e86cd8b111
commit
2a679d6d9d
@ -17,8 +17,8 @@ AM_PROG_VALAC([0.7.0])
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_INTLTOOL([0.35])
|
||||
|
||||
pkg_modules="gtk+-2.0 >= 2.14.0"
|
||||
SPEK_PACKAGES="--pkg gtk+-2.0"
|
||||
pkg_modules="gtk+-2.0 >= 2.14.0 gstreamer-0.10 >= 0.10.17"
|
||||
SPEK_PACKAGES="--pkg gtk+-2.0 --pkg gstreamer-0.10"
|
||||
PKG_CHECK_MODULES(SPEK, [$pkg_modules])
|
||||
AC_SUBST(SPEK_CFLAGS)
|
||||
AC_SUBST(SPEK_LIBS)
|
||||
|
@ -4,8 +4,9 @@ namespace Spek {
|
||||
public class Window : Gtk.Window {
|
||||
|
||||
public Window () {
|
||||
this.title = "Spek";
|
||||
this.title = Config.PACKAGE_STRING;
|
||||
this.set_default_size (300, 200);
|
||||
this.destroy.connect (Gtk.main_quit);
|
||||
|
||||
var toolbar = new Toolbar ();
|
||||
var open = new ToolButton.from_stock (STOCK_OPEN);
|
||||
@ -29,7 +30,6 @@ namespace Spek {
|
||||
if (chooser.run () == ResponseType.ACCEPT) {
|
||||
// TODO
|
||||
}
|
||||
chooser.destroy ();
|
||||
}
|
||||
}
|
||||
}
|
@ -6,10 +6,8 @@ int main (string[] args) {
|
||||
Intl.textdomain (Config.GETTEXT_PACKAGE);
|
||||
|
||||
Gtk.init (ref args);
|
||||
|
||||
var window = new Spek.Window ();
|
||||
window.destroy.connect (Gtk.main_quit);
|
||||
|
||||
Gst.init (ref args);
|
||||
new Spek.Window ();
|
||||
Gtk.main ();
|
||||
return 0;
|
||||
}
|
||||
|
@ -1,6 +1,5 @@
|
||||
[CCode (prefix = "", lower_case_cprefix = "", cheader_filename = "config.h")]
|
||||
namespace Config
|
||||
{
|
||||
namespace Config {
|
||||
/* Package information */
|
||||
public const string PACKAGE_NAME;
|
||||
public const string PACKAGE_STRING;
|
||||
@ -12,6 +11,6 @@ namespace Config
|
||||
/* Configured paths - these variables are not present in config.h, they are
|
||||
* passed to underlying C code as cmd line macros. */
|
||||
public const string LOCALEDIR; /* /usr/local/share/locale */
|
||||
public const string PKGDATADIR; /* /usr/local/share/sampala */
|
||||
public const string PKGLIBDIR; /* /usr/local/lib/sampala */
|
||||
public const string PKGDATADIR; /* /usr/local/share/spek */
|
||||
public const string PKGLIBDIR; /* /usr/local/lib/spek */
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user