]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
drm: rename ENABLE_GDM_TRANSITION to ENABLE_GDM_DEPRECATED_TRANSITION
authorRay Strode <rstrode@redhat.com>
Thu, 3 May 2012 20:52:52 +0000 (16:52 -0400)
committerRay Strode <rstrode@redhat.com>
Thu, 3 May 2012 20:52:52 +0000 (16:52 -0400)
Most distributions no longer use this transition, which relies
on plymouth quitting before X starts.

For clarity, rename the #define to include the word DEPRECATED

configure.ac
src/main.c
src/plugins/renderers/drm/plugin.c

index d872b184edbdd65d872b4bf90759b4570cb37996..116a4f15b07fd6996f308ed84b149cbada1280ce 100644 (file)
@@ -223,7 +223,7 @@ AM_CONDITIONAL(ENABLE_TESTS,  [test "$enable_tests" = yes])
 AC_ARG_ENABLE(gdm-transition, AS_HELP_STRING([--enable-gdm-transition],[enable smooth transition to gdm]),enable_gdm_transition=$enableval,enable_gdm_transition=no)
 
 if test x$enable_gdm_transition = xyes; then
-  AC_DEFINE(PLY_ENABLE_GDM_TRANSITION, 1, [Enable smooth transition to GDM])
+  AC_DEFINE(PLY_ENABLE_DEPRECATED_GDM_TRANSITION, 1, [Enable deprecated smooth transition to GDM])
 fi
 
 AC_ARG_ENABLE(upstart-monitoring, AS_HELP_STRING([--enable-upstart-monitoring],[listen for messages on the Upstart D-Bus interface]),enable_upstart_monitoring=$enableval,enable_upstart_monitoring=no)
index f471f0153766bb9e56be265762c1dacc5a3648a8..c8c9f551ed03ee6e7144093ae046125256e0df4f 100644 (file)
@@ -973,7 +973,7 @@ on_hide_splash (state_t *state)
   dump_details_and_quit_splash (state);
 }
 
-#ifdef PLY_ENABLE_GDM_TRANSITION
+#ifdef PLY_ENABLE_DEPRECATED_GDM_TRANSITION
 static void
 tell_gdm_to_transition (void)
 {
@@ -997,7 +997,7 @@ quit_program (state_t *state)
       pid_file = NULL;
     }
 
-#ifdef PLY_ENABLE_GDM_TRANSITION
+#ifdef PLY_ENABLE_DEPRECATED_GDM_TRANSITION
   if (state->should_retain_splash &&
       state->mode == PLY_MODE_BOOT)
     {
index 6f4ba0774ead1f308e9b223ed6df7e0491f3adfb..90d40e73c75e24a629383306a3b980eaf4d5c816 100644 (file)
@@ -512,7 +512,7 @@ load_driver (ply_renderer_backend_t *backend)
  * since it can map the kernel console, which gives us the ability to do
  * a more seamless transition when plymouth quits before X starts
  */
-#if defined(PLY_ENABLE_GDM_TRANSITION) && defined(PLY_ENABLE_LIBDRM_INTEL)
+#if defined(PLY_ENABLE_DEPRECATED_GDM_TRANSITION) && defined(PLY_ENABLE_LIBDRM_INTEL)
   if (backend->driver_interface == NULL && strcmp (driver_name, "i915") == 0)
     {
       backend->driver_interface = ply_renderer_i915_driver_get_interface ();
@@ -847,7 +847,7 @@ create_heads_for_active_connectors (ply_renderer_backend_t *backend)
 
   ply_hashtable_free (heads_by_controller_id);
 
-#ifdef PLY_ENABLE_GDM_TRANSITION
+#ifdef PLY_ENABLE_DEPRECATED_GDM_TRANSITION
   /* If the driver doesn't support mapping the fb console
    * then we can't get a smooth crossfade transition to
    * the display manager unless we use the /dev/fb interface