OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

524 lines
11 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../gnome-python-extras/gdl.patch
  5. # Copyright (C) 2010 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From eda1dae0e8331eee4d364535dc0685efe43a4531 Mon Sep 17 00:00:00 2001
  17. From: Johannes Schmid <jhs@gnome.org>
  18. Date: Tue, 08 Sep 2009 08:31:20 +0000
  19. Subject: Regenerated gdl.defs and updated dependency to gdl 2.27.92
  20. ---
  21. diff --git a/configure.ac b/configure.ac
  22. index 2ed3524..d09afb4 100644
  23. --- ./configure.ac
  24. +++ ./configure.ac
  25. @@ -310,14 +310,8 @@ dnl should we build the gdl module?
  26. AC_ARG_BINDING([gdl], [ON])
  27. if $build_gdl; then
  28. have_gdl07=false
  29. - PKG_CHECK_MODULES(GDL, [gdl-1.0 >= 0.7.1 gdl-gnome-1.0 >= 0.7.1 pygtk-2.0 >= pygtk_required_version], dnl
  30. + PKG_CHECK_MODULES(GDL, [gdl-1.0 >= 2.27.92 pygtk-2.0 >= pygtk_required_version], dnl
  31. [build_gdl=true; have_gdl07=true], build_gdl=false)
  32. -
  33. - dnl try again with no gnome and older version
  34. - if ! $build_gdl; then
  35. - PKG_CHECK_MODULES(GDL, [gdl-1.0 >= 0.6.1 pygtk-2.0 >= pygtk_required_version], dnl
  36. - build_gdl=true, build_gdl=false)
  37. - fi
  38. fi
  39. AM_CONDITIONAL(BUILD_GDL, $build_gdl)
  40. diff --git a/gdl/gdl.defs b/gdl/gdl.defs
  41. index 5babad1..795154d 100644
  42. --- ./gdl/gdl.defs
  43. +++ ./gdl/gdl.defs
  44. @@ -1,21 +1,10 @@
  45. ;; -*- scheme -*-
  46. ; object definitions ...
  47. -(ifdef HAVE_GDL_0_7
  48. -
  49. -(define-object ComboButton
  50. - (in-module "Gdl")
  51. - (parent "GtkHBox")
  52. - (c-name "GdlComboButton")
  53. - (gtype-id "GDL_TYPE_COMBO_BUTTON")
  54. -)
  55. -
  56. -) ; ifdef HAVE_GDL_0_7
  57. -
  58. -(define-object DockBar
  59. +(define-object DockItemGrip
  60. (in-module "Gdl")
  61. - (parent "GtkVBox")
  62. - (c-name "GdlDockBar")
  63. - (gtype-id "GDL_TYPE_DOCK_BAR")
  64. + (parent "GtkContainer")
  65. + (c-name "GdlDockItemGrip")
  66. + (gtype-id "GDL_TYPE_DOCK_ITEM_GRIP")
  67. )
  68. (define-object DockLayout
  69. @@ -46,13 +35,6 @@
  70. (gtype-id "GDL_TYPE_DOCK_ITEM")
  71. )
  72. -(define-object DockNotebook
  73. - (in-module "Gdl")
  74. - (parent "GdlDockItem")
  75. - (c-name "GdlDockNotebook")
  76. - (gtype-id "GDL_TYPE_DOCK_NOTEBOOK")
  77. -)
  78. -
  79. (define-object Dock
  80. (in-module "Gdl")
  81. (parent "GdlDockObject")
  82. @@ -60,13 +42,6 @@
  83. (gtype-id "GDL_TYPE_DOCK")
  84. )
  85. -(define-object DockPaned
  86. - (in-module "Gdl")
  87. - (parent "GdlDockItem")
  88. - (c-name "GdlDockPaned")
  89. - (gtype-id "GDL_TYPE_DOCK_PANED")
  90. -)
  91. -
  92. (define-object DockPlaceholder
  93. (in-module "Gdl")
  94. (parent "GdlDockObject")
  95. @@ -74,28 +49,8 @@
  96. (gtype-id "GDL_TYPE_DOCK_PLACEHOLDER")
  97. )
  98. -(define-object DockTablabel
  99. - (in-module "Gdl")
  100. - (parent "GtkBin")
  101. - (c-name "GdlDockTablabel")
  102. - (gtype-id "GDL_TYPE_DOCK_TABLABEL")
  103. -)
  104. -
  105. -(ifdef HAVE_GDL_0_7
  106. -
  107. -(define-object Icons
  108. - (in-module "Gdl")
  109. - (parent "GObject")
  110. - (c-name "GdlIcons")
  111. - (gtype-id "GDL_TYPE_ICONS")
  112. -)
  113. -
  114. -) ; ifdef HAVE_GDL_0_7
  115. -
  116. ;; Enumerations and flags ...
  117. -(ifdef HAVE_GDL_0_7
  118. -
  119. (define-enum DockBarStyle
  120. (in-module "Gdl")
  121. (c-name "GdlDockBarStyle")
  122. @@ -108,8 +63,6 @@
  123. )
  124. )
  125. -) ; ifdef HAVE_GDL_0_7
  126. -
  127. (define-flags DockItemBehavior
  128. (in-module "Gdl")
  129. (c-name "GdlDockItemBehavior")
  130. @@ -127,6 +80,7 @@
  131. '("cant-dock-center" "GDL_DOCK_ITEM_BEH_CANT_DOCK_CENTER")
  132. '("cant-close" "GDL_DOCK_ITEM_BEH_CANT_CLOSE")
  133. '("cant-iconify" "GDL_DOCK_ITEM_BEH_CANT_ICONIFY")
  134. + '("no-grip" "GDL_DOCK_ITEM_BEH_NO_GRIP")
  135. )
  136. )
  137. @@ -142,6 +96,20 @@
  138. )
  139. )
  140. +(define-enum SwitcherStyle
  141. + (in-module "Gdl")
  142. + (c-name "GdlSwitcherStyle")
  143. + (gtype-id "GDL_TYPE_SWITCHER_STYLE")
  144. + (values
  145. + '("text" "GDL_SWITCHER_STYLE_TEXT")
  146. + '("icon" "GDL_SWITCHER_STYLE_ICON")
  147. + '("both" "GDL_SWITCHER_STYLE_BOTH")
  148. + '("toolbar" "GDL_SWITCHER_STYLE_TOOLBAR")
  149. + '("tabs" "GDL_SWITCHER_STYLE_TABS")
  150. + '("none" "GDL_SWITCHER_STYLE_NONE")
  151. + )
  152. +)
  153. +
  154. (define-flags DockParamFlags
  155. (in-module "Gdl")
  156. (c-name "GdlDockParamFlags")
  157. @@ -179,49 +147,6 @@
  158. )
  159. )
  160. -;; From gdl-combo-button.h
  161. -
  162. -(ifdef HAVE_GDL_0_7
  163. -
  164. -(define-function gdl_combo_button_get_type
  165. - (c-name "gdl_combo_button_get_type")
  166. - (return-type "GType")
  167. -)
  168. -
  169. -(define-function gdl_combo_button_new
  170. - (c-name "gdl_combo_button_new")
  171. - (is-constructor-of "GdlComboButton")
  172. - (return-type "GtkWidget*")
  173. -)
  174. -
  175. -(define-method set_icon
  176. - (of-object "GdlComboButton")
  177. - (c-name "gdl_combo_button_set_icon")
  178. - (return-type "none")
  179. - (parameters
  180. - '("GdkPixbuf*" "pixbuf")
  181. - )
  182. -)
  183. -
  184. -(define-method set_label
  185. - (of-object "GdlComboButton")
  186. - (c-name "gdl_combo_button_set_label")
  187. - (return-type "none")
  188. - (parameters
  189. - '("const-gchar*" "label")
  190. - )
  191. -)
  192. -
  193. -(define-method set_menu
  194. - (of-object "GdlComboButton")
  195. - (c-name "gdl_combo_button_set_menu")
  196. - (return-type "none")
  197. - (parameters
  198. - '("GtkMenu*" "menu")
  199. - )
  200. -)
  201. -
  202. -) ; ifdef HAVE_GDL_0_7
  203. ;; From gdl-dock-bar.h
  204. @@ -230,17 +155,12 @@
  205. (return-type "GType")
  206. )
  207. -(define-function gdl_dock_bar_new
  208. - (is-constructor-of "GdlDockBar")
  209. +(define-method bar_new
  210. + (of-object "GdlDock")
  211. (c-name "gdl_dock_bar_new")
  212. (return-type "GtkWidget*")
  213. - (parameters
  214. - '("GdlDock*" "dock")
  215. - )
  216. )
  217. -(ifdef HAVE_GDL_0_7
  218. -
  219. (define-method get_orientation
  220. (of-object "GdlDockBar")
  221. (c-name "gdl_dock_bar_get_orientation")
  222. @@ -271,7 +191,7 @@
  223. (return-type "GdlDockBarStyle")
  224. )
  225. -) ; ifdef HAVE_GDL_0_7
  226. +
  227. ;; From gdl-dock.h
  228. @@ -279,7 +199,6 @@
  229. (c-name "gdl_dock_new")
  230. (is-constructor-of "GdlDock")
  231. (return-type "GtkWidget*")
  232. - (caller-owns-return #f)
  233. )
  234. (define-method new_from
  235. @@ -358,10 +277,49 @@
  236. )
  237. )
  238. +
  239. +
  240. +;; From gdl-dock-item-grip.h
  241. +
  242. +(define-function gdl_dock_item_grip_get_type
  243. + (c-name "gdl_dock_item_grip_get_type")
  244. + (return-type "GType")
  245. +)
  246. +
  247. +(define-method grip_new
  248. + (of-object "GdlDockItem")
  249. + (c-name "gdl_dock_item_grip_new")
  250. + (return-type "GtkWidget*")
  251. +)
  252. +
  253. +(define-method set_label
  254. + (of-object "GdlDockItemGrip")
  255. + (c-name "gdl_dock_item_grip_set_label")
  256. + (return-type "none")
  257. + (parameters
  258. + '("GtkWidget*" "label")
  259. + )
  260. +)
  261. +
  262. +(define-method hide_handle
  263. + (of-object "GdlDockItemGrip")
  264. + (c-name "gdl_dock_item_grip_hide_handle")
  265. + (return-type "none")
  266. +)
  267. +
  268. +(define-method show_handle
  269. + (of-object "GdlDockItemGrip")
  270. + (c-name "gdl_dock_item_grip_show_handle")
  271. + (return-type "none")
  272. +)
  273. +
  274. +
  275. +
  276. ;; From gdl-dock-item.h
  277. (define-function gdl_dock_item_new
  278. (c-name "gdl_dock_item_new")
  279. + (is-constructor-of "GdlDockItem")
  280. (return-type "GtkWidget*")
  281. (parameters
  282. '("const-gchar*" "name")
  283. @@ -371,14 +329,13 @@
  284. )
  285. (define-function gdl_dock_item_new_with_stock
  286. - (is-constructor-of "GdlDockItem")
  287. (c-name "gdl_dock_item_new_with_stock")
  288. (return-type "GtkWidget*")
  289. - (properties
  290. - '("name")
  291. - '("long_name")
  292. - '("stock_id" (optional))
  293. - '("behavior" (optional))
  294. + (parameters
  295. + '("const-gchar*" "name")
  296. + '("const-gchar*" "long_name")
  297. + '("const-gchar*" "stock_id")
  298. + '("GdlDockItemBehavior" "behavior")
  299. )
  300. )
  301. @@ -392,9 +349,9 @@
  302. (c-name "gdl_dock_item_dock_to")
  303. (return-type "none")
  304. (parameters
  305. - '("GdlDockItem*" "target" (null-ok))
  306. + '("GdlDockItem*" "target")
  307. '("GdlDockPlacement" "position")
  308. - '("gint" "docking_param" (default "-1"))
  309. + '("gint" "docking_param")
  310. )
  311. )
  312. @@ -422,6 +379,12 @@
  313. )
  314. )
  315. +(define-method get_grip
  316. + (of-object "GdlDockItem")
  317. + (c-name "gdl_dock_item_get_grip")
  318. + (return-type "GtkWidget*")
  319. +)
  320. +
  321. (define-method hide_grip
  322. (of-object "GdlDockItem")
  323. (c-name "gdl_dock_item_hide_grip")
  324. @@ -506,13 +469,10 @@
  325. (return-type "GType")
  326. )
  327. -(define-function gdl_dock_layout_new
  328. - (is-constructor-of "GdlDockLayout")
  329. +(define-method layout_new
  330. + (of-object "GdlDock")
  331. (c-name "gdl_dock_layout_new")
  332. (return-type "GdlDockLayout*")
  333. - (parameters
  334. - '("GdlDock*" "dock")
  335. - )
  336. )
  337. (define-method attach
  338. @@ -682,21 +642,6 @@
  339. -;; From gdl-dock-notebook.h
  340. -
  341. -(define-function gdl_dock_notebook_new
  342. - (c-name "gdl_dock_notebook_new")
  343. - (is-constructor-of "GdlDockNotebook")
  344. - (return-type "GtkWidget*")
  345. -)
  346. -
  347. -(define-function gdl_dock_notebook_get_type
  348. - (c-name "gdl_dock_notebook_get_type")
  349. - (return-type "GType")
  350. -)
  351. -
  352. -
  353. -
  354. ;; From gdl-dock-object.h
  355. (define-function gdl_dock_object_get_type
  356. @@ -848,24 +793,6 @@
  357. -;; From gdl-dock-paned.h
  358. -
  359. -(define-function gdl_dock_paned_get_type
  360. - (c-name "gdl_dock_paned_get_type")
  361. - (return-type "GType")
  362. -)
  363. -
  364. -(define-function gdl_dock_paned_new
  365. - (c-name "gdl_dock_paned_new")
  366. - (is-constructor-of "GdlDockPaned")
  367. - (return-type "GtkWidget*")
  368. - (properties
  369. - '("orientation")
  370. - )
  371. -)
  372. -
  373. -
  374. -
  375. ;; From gdl-dock-placeholder.h
  376. (define-function gdl_dock_placeholder_get_type
  377. @@ -878,7 +805,7 @@
  378. (is-constructor-of "GdlDockPlaceholder")
  379. (return-type "GtkWidget*")
  380. (parameters
  381. - '("gchar*" "name")
  382. + '("const-gchar*" "name")
  383. '("GdlDockObject*" "object")
  384. '("GdlDockPlacement" "position")
  385. '("gboolean" "sticky")
  386. @@ -896,74 +823,49 @@
  387. -;; From gdl-dock-tablabel.h
  388. +;; From gdl.h
  389. +
  390. +
  391. +
  392. +;; From gdl-tools.h
  393. +
  394. -(define-function gdl_dock_tablabel_new
  395. - (c-name "gdl_dock_tablabel_new")
  396. - (is-constructor-of "GdlDockTablabel")
  397. - (return-type "GtkWidget*")
  398. - (properties
  399. - '("item")
  400. - )
  401. -)
  402. -(define-function gdl_dock_tablabel_get_type
  403. - (c-name "gdl_dock_tablabel_get_type")
  404. +;; From libgdltypebuiltins.h
  405. +
  406. +(define-function gdl_dock_param_flags_get_type
  407. + (c-name "gdl_dock_param_flags_get_type")
  408. (return-type "GType")
  409. )
  410. -(define-method activate
  411. - (of-object "GdlDockTablabel")
  412. - (c-name "gdl_dock_tablabel_activate")
  413. - (return-type "none")
  414. +(define-function gdl_dock_object_flags_get_type
  415. + (c-name "gdl_dock_object_flags_get_type")
  416. + (return-type "GType")
  417. )
  418. -(define-method deactivate
  419. - (of-object "GdlDockTablabel")
  420. - (c-name "gdl_dock_tablabel_deactivate")
  421. - (return-type "none")
  422. +(define-function gdl_dock_placement_get_type
  423. + (c-name "gdl_dock_placement_get_type")
  424. + (return-type "GType")
  425. )
  426. -;; From gdl-icons.h
  427. -
  428. -(ifdef HAVE_GDL_0_7
  429. -
  430. -(define-function gdl_icons_new
  431. - (is-constructor-of "GdlIcons")
  432. - (c-name "gdl_icons_new")
  433. - (return-type "GdlIcons*")
  434. - (parameters
  435. - '("int" "icon_size")
  436. - )
  437. +(define-function gdl_switcher_style_get_type
  438. + (c-name "gdl_switcher_style_get_type")
  439. + (return-type "GType")
  440. )
  441. -(define-function gdl_icons_get_type
  442. - (c-name "gdl_icons_get_type")
  443. +(define-function gdl_dock_item_behavior_get_type
  444. + (c-name "gdl_dock_item_behavior_get_type")
  445. (return-type "GType")
  446. )
  447. -(define-method get_folder_icon
  448. - (of-object "GdlIcons")
  449. - (c-name "gdl_icons_get_folder_icon")
  450. - (return-type "GdkPixbuf*")
  451. +(define-function gdl_dock_item_flags_get_type
  452. + (c-name "gdl_dock_item_flags_get_type")
  453. + (return-type "GType")
  454. )
  455. -(define-method get_uri_icon
  456. - (of-object "GdlIcons")
  457. - (c-name "gdl_icons_get_uri_icon")
  458. - (return-type "GdkPixbuf*")
  459. - (parameters
  460. - '("const-char*" "uri")
  461. - )
  462. +(define-function gdl_dock_bar_style_get_type
  463. + (c-name "gdl_dock_bar_style_get_type")
  464. + (return-type "GType")
  465. )
  466. -(define-method get_mime_icon
  467. - (of-object "GdlIcons")
  468. - (c-name "gdl_icons_get_mime_icon")
  469. - (return-type "GdkPixbuf*")
  470. - (parameters
  471. - '("const-char*" "mime_type")
  472. - )
  473. -)
  474. -) ; ifdef HAVE_GDL_0_7