mirror of the now-defunct rocklinux.org
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.

133 lines
4.0 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/gnome2/gnome-pilot/gcc34.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. The usual gcc-3.4 compile fixes - including deleteing goto's ,-)
  20. - Rene Rebe <rene@exactcode.de>
  21. --- gnome-pilot-2.0.10/capplet/gnome-pilot-pdialog.c.orig 2004-05-13 20:42:05.535368544 +0200
  22. +++ gnome-pilot-2.0.10/capplet/gnome-pilot-pdialog.c 2004-05-13 20:42:31.767380672 +0200
  23. @@ -135,15 +135,13 @@
  24. priv->xml = glade_xml_new (GLADEDATADIR "/gpilotd-capplet.glade", "PilotSettings", NULL);
  25. if (!priv->xml) {
  26. g_message ("gnome-pilot-pdialog init(): Could not load the Glade XML file!");
  27. - goto error;
  28. + return;
  29. }
  30. if (!get_widgets (gppd)) {
  31. g_message ("gnome-pilot-pdialog init(): Could not find all widgets in the XML file!");
  32. - goto error;
  33. + return;
  34. }
  35. -
  36. - error:
  37. }
  38. --- gnome-pilot-2.0.10/capplet/gnome-pilot-capplet.c.orig 2004-05-13 20:40:51.301653784 +0200
  39. +++ gnome-pilot-2.0.10/capplet/gnome-pilot-capplet.c 2004-05-13 20:41:29.590832944 +0200
  40. @@ -171,18 +171,16 @@
  41. priv->xml = glade_xml_new (GLADEDATADIR "/gpilotd-capplet.glade", "CappletMain", NULL);
  42. if (!priv->xml) {
  43. g_message ("gnome-pilot-capplet init(): Could not load the Glade XML file!");
  44. - goto error;
  45. + return;
  46. }
  47. if (!get_widgets (gpcap)) {
  48. g_message ("gnome-pilot-capplet init(): Could not find all widgets in the XML file!");
  49. - goto error;
  50. + return;
  51. }
  52. fill_widgets (gpcap);
  53. init_widgets (gpcap);
  54. -
  55. - error:
  56. }
  57. GnomePilotCapplet *
  58. --- gnome-pilot-2.0.10/capplet/gnome-pilot-ddialog.c.orig 2004-05-13 20:43:06.454107488 +0200
  59. +++ gnome-pilot-2.0.10/capplet/gnome-pilot-ddialog.c 2004-05-13 20:43:43.189522856 +0200
  60. @@ -114,15 +114,13 @@
  61. priv->xml = glade_xml_new (GLADEDATADIR "/gpilotd-capplet.glade", "DeviceSettings", NULL);
  62. if (!priv->xml) {
  63. g_message ("gnome-pilot-ddialog init(): Could not load the Glade XML file!");
  64. - goto error;
  65. + return;
  66. }
  67. if (!get_widgets (gpdd)) {
  68. g_message ("gnome-pilot-ddialog init(): Could not find all widgets in the XML file!");
  69. - goto error;
  70. + return;
  71. }
  72. -
  73. - error:
  74. }
  75. --- gnome-pilot-2.0.10/capplet/gnome-pilot-druid.c.orig 2004-05-13 20:47:56.979940848 +0200
  76. +++ gnome-pilot-2.0.10/capplet/gnome-pilot-druid.c 2004-05-13 20:48:22.909998880 +0200
  77. @@ -168,19 +168,17 @@
  78. priv->xml = glade_xml_new (GLADEDATADIR "/gpilotd-capplet.glade", NULL, NULL);
  79. if (!priv->xml) {
  80. g_message ("gnome-pilot-druid init(): Could not load the Glade XML file!");
  81. - goto error;
  82. + return;
  83. }
  84. if (!get_widgets (gpd)) {
  85. g_message ("gnome-pilot-druid init(): Could not find all widgets in the XML file!");
  86. - goto error;
  87. + return;
  88. }
  89. map_widgets (gpd);
  90. fill_widgets (gpd);
  91. init_widgets (gpd);
  92. -
  93. - error:
  94. }
  95. --- ./capplet/gnome-pilot-cdialog.c.orig 2004-05-13 21:18:57.751060640 +0200
  96. +++ ./capplet/gnome-pilot-cdialog.c 2004-05-13 21:19:22.850244984 +0200
  97. @@ -112,17 +112,15 @@
  98. priv->xml = glade_xml_new (GLADEDATADIR "/gpilotd-capplet.glade", "ConduitSettings", NULL);
  99. if (!priv->xml) {
  100. g_message ("gnome-pilot-cdialog init(): Could not load the Glade XML file!");
  101. - goto error;
  102. + return;
  103. }
  104. if (!get_widgets (gpcd)) {
  105. g_message ("gnome-pilot-cdialog init(): Could not find all widgets in the XML file!");
  106. - goto error;
  107. + return;
  108. }
  109. gnome_dialog_close_hides (GNOME_DIALOG (priv->dialog), TRUE);
  110. -
  111. - error:
  112. }