462
|
1 (defvar gnome-init-called nil)
|
|
2
|
|
3 (defun gnome-init (app-id app-version argv)
|
|
4 (mapc 'dll-load
|
|
5 '("libgnomesupport.so"
|
|
6 "libgnome.so"
|
|
7 "libgnomeui.so"
|
|
8 "libesd.so"
|
|
9 "libaudiofile.so"
|
|
10 "libart_lgpl.so"))
|
|
11 (if (and (not (noninteractive)) (not gnome-init-called)
|
|
12 (= (gtk-type-from-name "GnomeApp") 0))
|
|
13 (prog1
|
|
14 (gtk-call-function (gtk-import-function-internal
|
|
15 'gint "gnome_init" '(GtkString GtkString gint GtkArrayOfString))
|
|
16 (list app-id app-version (length argv) argv))
|
|
17 (setq gnome-init-called t))))
|
|
18
|
|
19 (require 'gnome-widgets)
|
|
20 (provide 'gnome)
|