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:
parent
c474ad6a53
commit
7c2e926c44
6 changed files with 2 additions and 18 deletions
|
@ -276,10 +276,3 @@ meta_core_set_screen_cursor (Display *xdisplay,
|
|||
|
||||
meta_frame_set_screen_cursor (window->frame, cursor);
|
||||
}
|
||||
|
||||
void
|
||||
meta_retheme_all (void)
|
||||
{
|
||||
if (meta_get_display ())
|
||||
meta_display_retheme_all ();
|
||||
}
|
||||
|
|
|
@ -77,6 +77,4 @@ void meta_core_set_screen_cursor (Display *xdisplay,
|
|||
Window frame_on_screen,
|
||||
MetaCursor cursor);
|
||||
|
||||
void meta_retheme_all (void);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -337,7 +337,6 @@ const char* meta_event_mode_to_string (int m);
|
|||
const char* meta_event_detail_to_string (int d);
|
||||
|
||||
void meta_display_queue_retheme_all_windows (MetaDisplay *display);
|
||||
void meta_display_retheme_all (void);
|
||||
|
||||
void meta_display_ping_window (MetaWindow *window,
|
||||
guint32 serial);
|
||||
|
|
|
@ -1969,12 +1969,6 @@ meta_display_queue_retheme_all_windows (MetaDisplay *display)
|
|||
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.
|
||||
*/
|
||||
|
|
|
@ -717,7 +717,7 @@ prefs_changed_callback (MetaPreference pref,
|
|||
switch (pref)
|
||||
{
|
||||
case META_PREF_DRAGGABLE_BORDER_WIDTH:
|
||||
meta_display_retheme_all ();
|
||||
meta_display_queue_retheme_all_windows (meta_get_display ());
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
@ -336,7 +336,7 @@ meta_frames_style_updated (GtkWidget *widget)
|
|||
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue