1 Description: allow the initial animation to be disabled
2 Bug: http://bugzilla.gnome.org/show_bug.cgi?id=575938
3 Origin: http://bugzilla.gnome.org/attachment.cgi?id=130957&action=view
5 Index: gnome-panel-2.30.0/config.h.in
6 ===================================================================
7 --- gnome-panel-2.30.0.orig/config.h.in 2010-03-30 11:52:43.000000000 +1100
8 +++ gnome-panel-2.30.0/config.h.in 2010-06-03 13:58:08.683946428 +1000
10 /* Defined when compiling the clock applet in-process */
11 #undef CLOCK_INPROCESS
13 +/* Define to disable initial animation */
14 +#undef DISABLE_INITIAL_ANIMATION
16 /* always defined to indicate that i18n is enabled */
19 Index: gnome-panel-2.30.0/configure.in
20 ===================================================================
21 --- gnome-panel-2.30.0.orig/configure.in 2010-03-30 11:06:16.000000000 +1100
22 +++ gnome-panel-2.30.0/configure.in 2010-06-03 13:58:08.683946428 +1000
24 PANEL_INPROCESS_APPLETS="(none)"
27 +# Make it possible to disable initial slide-in animation
28 +AC_ARG_ENABLE(initial-animation,
29 + AC_HELP_STRING([--disable-initial-animation],
30 + [disable the initial slide-in animation of panels]),
31 + [AS_IF([test "x$enable_initial_animation" = xno],
32 + [AC_DEFINE([DISABLE_INITIAL_ANIMATION], [1],
33 + [Define to disable initial animation])])],
36 AM_CONDITIONAL(CLOCK_INPROCESS, test -n "$CLOCK_COMPILE_INPROCESS")
37 AM_CONDITIONAL(FISH_INPROCESS, test -n "$FISH_COMPILE_INPROCESS")
38 AM_CONDITIONAL(NOTIFICATION_AREA_INPROCESS, test -n "$NOTIFICATION_AREA_COMPILE_INPROCESS")
39 Index: gnome-panel-2.30.0/gnome-panel/panel-toplevel.c
40 ===================================================================
41 --- gnome-panel-2.30.0.orig/gnome-panel/panel-toplevel.c 2010-03-05 03:25:59.000000000 +1100
42 +++ gnome-panel-2.30.0/gnome-panel/panel-toplevel.c 2010-06-03 13:58:08.683946428 +1000
45 panel_toplevel_initially_hide (PanelToplevel *toplevel)
47 +#ifndef DISABLE_INITIAL_ANIMATION
48 if (!toplevel->priv->attached) {
49 toplevel->priv->initial_animation_done = FALSE;
52 toplevel->priv->state = PANEL_STATE_AUTO_HIDDEN;
53 gtk_widget_queue_resize (GTK_WIDGET (toplevel));
55 +#endif /* DISABLE_INITIAL_ANIMATION */
56 toplevel->priv->initial_animation_done = TRUE;