core/core: Remove meta_retheme_all() helper

All it did was get the MetaDisplay and call a function on it.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/854
This commit is contained in:
Jonas Ådahl 2019-10-13 16:46:47 +02:00 committed by Florian Müllner
parent c474ad6a53
commit 7c2e926c44
6 changed files with 2 additions and 18 deletions

View File

@ -276,10 +276,3 @@ meta_core_set_screen_cursor (Display *xdisplay,
meta_frame_set_screen_cursor (window->frame, cursor); meta_frame_set_screen_cursor (window->frame, cursor);
} }
void
meta_retheme_all (void)
{
if (meta_get_display ())
meta_display_retheme_all ();
}

View File

@ -77,6 +77,4 @@ void meta_core_set_screen_cursor (Display *xdisplay,
Window frame_on_screen, Window frame_on_screen,
MetaCursor cursor); MetaCursor cursor);
void meta_retheme_all (void);
#endif #endif

View File

@ -337,7 +337,6 @@ const char* meta_event_mode_to_string (int m);
const char* meta_event_detail_to_string (int d); const char* meta_event_detail_to_string (int d);
void meta_display_queue_retheme_all_windows (MetaDisplay *display); void meta_display_queue_retheme_all_windows (MetaDisplay *display);
void meta_display_retheme_all (void);
void meta_display_ping_window (MetaWindow *window, void meta_display_ping_window (MetaWindow *window,
guint32 serial); guint32 serial);

View File

@ -1969,12 +1969,6 @@ meta_display_queue_retheme_all_windows (MetaDisplay *display)
g_slist_free (windows); g_slist_free (windows);
} }
void
meta_display_retheme_all (void)
{
meta_display_queue_retheme_all_windows (meta_get_display ());
}
/* /*
* Stores whether syncing is currently enabled. * Stores whether syncing is currently enabled.
*/ */

View File

@ -717,7 +717,7 @@ prefs_changed_callback (MetaPreference pref,
switch (pref) switch (pref)
{ {
case META_PREF_DRAGGABLE_BORDER_WIDTH: case META_PREF_DRAGGABLE_BORDER_WIDTH:
meta_display_retheme_all (); meta_display_queue_retheme_all_windows (meta_get_display ());
break; break;
default: default:

View File

@ -336,7 +336,7 @@ meta_frames_style_updated (GtkWidget *widget)
g_hash_table_foreach (frames->frames, reattach_style_func, NULL); g_hash_table_foreach (frames->frames, reattach_style_func, NULL);
meta_retheme_all (); meta_display_queue_retheme_all_windows (meta_get_display ());
GTK_WIDGET_CLASS (meta_frames_parent_class)->style_updated (widget); GTK_WIDGET_CLASS (meta_frames_parent_class)->style_updated (widget);
} }