After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 321140 - Lots of cleanups for compiler warnings and removal of unneeded code
Lots of cleanups for compiler warnings and removal of unneeded code
Status: RESOLVED FIXED
Product: gtk-engines
Classification: Deprecated
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtk-engines maintainers
gtk-engines maintainers
Depends on: 322886
Blocks:
 
 
Reported: 2005-11-10 10:57 UTC by Kjartan Maraas
Modified: 2006-01-04 23:42 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
patch as described (71.14 KB, patch)
2005-11-10 10:58 UTC, Kjartan Maraas
none Details | Review
patch for clearlooks (19.05 KB, patch)
2005-11-10 15:24 UTC, Kjartan Maraas
committed Details | Review
patch for crux (9.54 KB, patch)
2005-11-10 15:25 UTC, Kjartan Maraas
committed Details | Review
patch for hc (1.11 KB, patch)
2005-11-10 15:25 UTC, Kjartan Maraas
committed Details | Review
patch for industrial (5.85 KB, patch)
2005-11-10 15:26 UTC, Kjartan Maraas
committed Details | Review
patch for lighthouseblue (5.85 KB, patch)
2005-11-10 15:26 UTC, Kjartan Maraas
rejected Details | Review
patch for metal (6.64 KB, patch)
2005-11-10 15:26 UTC, Kjartan Maraas
committed Details | Review
patch for mist (2.22 KB, patch)
2005-11-10 15:27 UTC, Kjartan Maraas
committed Details | Review
patch for redmond (4.17 KB, patch)
2005-11-10 15:27 UTC, Kjartan Maraas
committed Details | Review
patch for smooth (56.63 KB, patch)
2005-11-10 15:27 UTC, Kjartan Maraas
none Details | Review
patch for thinice (2.74 KB, patch)
2005-11-10 15:28 UTC, Kjartan Maraas
committed Details | Review
updated patch (98.77 KB, patch)
2005-11-11 21:53 UTC, Kjartan Maraas
committed Details | Review
correct patch for lighthouse blue (3.37 KB, patch)
2005-12-14 23:38 UTC, Kjartan Maraas
committed Details | Review
fix too agressive removal of functions (5.43 KB, patch)
2005-12-21 21:57 UTC, Kjartan Maraas
committed Details | Review

Description Kjartan Maraas 2005-11-10 10:57:57 UTC
Patch attached.

- mark functions static
- declare functions in headers when used in more than one file
- remove useless code
- fix #if vs. #ifdef in many cases
- other cleanups
Comment 1 Kjartan Maraas 2005-11-10 10:58:27 UTC
Created attachment 54573 [details] [review]
patch as described
Comment 2 Kjartan Maraas 2005-11-10 10:59:29 UTC
 clearlooks/src/clearlooks_draw.c                            |   20 --
 clearlooks/src/clearlooks_draw.h                            |   18 +
 clearlooks/src/clearlooks_style.c                           |   49 +----
 clearlooks/src/clearlooks_style.h                           |    2
 clearlooks/src/support.c                                    |    4
 clearlooks/src/support.h                                    |    9
 crux/src/crux-draw.c                                        |  113 +-----------
crux/src/crux-main.c                                        |    6
 crux/src/crux-rc-parser.c                                   |   16 -
 crux/src/crux-rc-style.c                                    |    3
 hc/src/hc-main.c                                            |    2
 hc/src/hc-style.c                                           |    6
 industrial/src/industrial_style.c                           |   62 +-----
 lighthouseblue/src/lighthouseblue_style.c                   |   13 -
 metal/src/metal_gtk2_drawing.c                              |   34 +--
 metal/src/metal_gtk2_engine.c                               |    4
 metal/src/metal_gtk2_misc.h                                 |   14 +
 mist/src/mist-rc-style.c                                    |    1
 mist/src/mist-style.c                                       |   15 -
 redmond/src/redmond_gtk2_drawing.c                          |    1
 redmond/src/redmond_gtk2_engine.c                           |    2
 redmond/src/redmond_gtk2_misc.c                             |    3
 smooth/src/engine/shared/gtk/smooth_gtk_drawing.c           |   12 -
 smooth/src/engine/shared/gtk/smooth_gtk_misc.c              |    8
 smooth/src/engine/smooth_gtk2_drawing.c                     |   42 ----
 smooth/src/engine/smooth_gtk2_misc.c                        |    8
 smooth/src/engine/smooth_gtk2_rc.c                          |    2
 smooth/src/interfaces/abstract/abstract_drawing_interface.c |    4
 smooth/src/interfaces/drawing_interface.c                   |    6
 smooth/src/interfaces/gdk2/gdk2_drawing_interface.c         |    8
 smooth/src/interfaces/gdk2/src/gdk2_gradient_routines.c     |   14 -
 smooth/src/interfaces/shared/gdk/gdk_drawing_interface.c    |    9
 smooth/src/utils/draw_arrows.c                              |   26 --
 smooth/src/utils/draw_arrows.h                              |    4
 smooth/src/utils/draw_border.c                              |   15 -
 smooth/src/utils/draw_checkmark.c                           |    3
 smooth/src/utils/draw_grips.c                               |    2
 thinice/src/thinice_rc_style.c                              |    2
 thinice/src/thinice_theme_draw.c                            |   11 -
 39 files changed, 165 insertions(+), 408 deletions(-)
Comment 3 Thomas Wood 2005-11-10 12:29:56 UTC
It would be useful to have per-engine patches, since each engine is usually
maintained by a different person.
Comment 4 Kjartan Maraas 2005-11-10 15:24:58 UTC
Created attachment 54582 [details] [review]
patch for clearlooks
Comment 5 Kjartan Maraas 2005-11-10 15:25:19 UTC
Created attachment 54583 [details] [review]
patch for crux
Comment 6 Kjartan Maraas 2005-11-10 15:25:39 UTC
Created attachment 54584 [details] [review]
patch for hc
Comment 7 Kjartan Maraas 2005-11-10 15:26:01 UTC
Created attachment 54585 [details] [review]
patch for industrial
Comment 8 Kjartan Maraas 2005-11-10 15:26:28 UTC
Created attachment 54586 [details] [review]
patch for lighthouseblue
Comment 9 Kjartan Maraas 2005-11-10 15:26:52 UTC
Created attachment 54587 [details] [review]
patch for metal
Comment 10 Kjartan Maraas 2005-11-10 15:27:09 UTC
Created attachment 54588 [details] [review]
patch for mist
Comment 11 Kjartan Maraas 2005-11-10 15:27:30 UTC
Created attachment 54589 [details] [review]
patch for redmond
Comment 12 Kjartan Maraas 2005-11-10 15:27:47 UTC
Created attachment 54590 [details] [review]
patch for smooth
Comment 13 Kjartan Maraas 2005-11-10 15:28:11 UTC
Created attachment 54591 [details] [review]
patch for thinice
Comment 14 Richard Stellingwerff 2005-11-10 22:32:56 UTC
I applied the Clearlooks patch. Thank you Kjartan!
Comment 15 Kjartan Maraas 2005-11-11 21:53:40 UTC
Created attachment 54652 [details] [review]
updated patch

Forgot to get removed files into the patch.
Comment 16 Thomas Wood 2005-11-15 19:58:58 UTC
Committed Crux and HC patches to gtk-engines-2-6 branch.

Some of the work in the Crux patch has already happened in HEAD, but we will
need to make sure any relevent parts of these patches get applied to HEAD aswell.
Comment 17 Thomas Wood 2005-11-28 23:00:11 UTC
I've committed most of the patches now. The individual patch for lighthouseblue appears to be the 
patch for industrial.
Comment 18 Kjartan Maraas 2005-12-07 10:45:59 UTC
Will attach a new lighthouse_blue patch when I have access to CVS again.
Comment 19 Kjartan Maraas 2005-12-14 23:38:41 UTC
Created attachment 56008 [details] [review]
correct patch for lighthouse blue
Comment 20 Kjartan Maraas 2005-12-21 21:57:11 UTC
Created attachment 56273 [details] [review]
fix too agressive removal of functions

This fixes the problems with undefined symbols after too agressive removal of functions in previous patches for the smooth engine.
Comment 21 Thomas Wood 2005-12-21 22:17:56 UTC
hc, industrial, mist, redmond and thinice have been committed to HEAD

Crux is obsolete/committed in HEAD
Clearlooks is possibly obsolete (Richard - can you check this please)
Smooth patch is committed to HEAD, but now needs the second Smooth patch applied (patch 56373)

Everything except the lighthouseblue patch has been comitted to the
gtk-engines-2-6 branch. This includes the Smooth patch, but now needs the second Smooth patch applied (patch 56373)
Comment 22 Kjartan Maraas 2005-12-21 22:36:03 UTC
Comment on attachment 56273 [details] [review]
fix too agressive removal of functions

I commited this to both branches now.
Comment 23 Thomas Wood 2006-01-04 23:42:05 UTC
I've committed the Lighthouseblue patch to both the gtk-engines-2-6 branch, and to head.

Closing the bug as all patches have now been comitted.