mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 21:34:09 +00:00
restart: Make meta_restart() work without a message
In some cases there's no meaningful message to show. https://bugzilla.gnome.org/show_bug.cgi?id=739178
This commit is contained in:
parent
3691eb6d70
commit
7ed14e0ee8
@ -103,7 +103,7 @@ restart_message_painted (gpointer data)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* meta_restart:
|
* meta_restart:
|
||||||
* @message: message to display to the user.
|
* @message: (allow-none): message to display to the user, or %NULL
|
||||||
*
|
*
|
||||||
* Starts the process of restarting the compositor. Note that Mutter's
|
* Starts the process of restarting the compositor. Note that Mutter's
|
||||||
* involvement here is to make the restart visually smooth for the
|
* involvement here is to make the restart visually smooth for the
|
||||||
@ -126,7 +126,7 @@ meta_restart (const char *message)
|
|||||||
MUTTER_LIBEXECDIR "/mutter-restart-helper", NULL
|
MUTTER_LIBEXECDIR "/mutter-restart-helper", NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
if (meta_display_show_restart_message (display, message))
|
if (message && meta_display_show_restart_message (display, message))
|
||||||
{
|
{
|
||||||
/* Wait until the stage was painted */
|
/* Wait until the stage was painted */
|
||||||
clutter_threads_add_repaint_func_full (CLUTTER_REPAINT_FLAGS_POST_PAINT,
|
clutter_threads_add_repaint_func_full (CLUTTER_REPAINT_FLAGS_POST_PAINT,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user