mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
ui: Add meta_ui_update_frame_style()
This method allows forcing a style update of a particular frame from the core, so that it can pick up style variants. https://bugzilla.gnome.org/show_bug.cgi?id=645355
This commit is contained in:
parent
0cdac78bd5
commit
eb17cd9ba9
@ -1126,6 +1126,20 @@ meta_frames_set_title (MetaFrames *frames,
|
|||||||
invalidate_whole_window (frames, frame);
|
invalidate_whole_window (frames, frame);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
meta_frames_update_frame_style (MetaFrames *frames,
|
||||||
|
Window xwindow)
|
||||||
|
{
|
||||||
|
MetaUIFrame *frame;
|
||||||
|
|
||||||
|
frame = meta_frames_lookup_window (frames, xwindow);
|
||||||
|
|
||||||
|
g_assert (frame);
|
||||||
|
|
||||||
|
meta_frames_attach_style (frames, frame);
|
||||||
|
invalidate_whole_window (frames, frame);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
meta_frames_repaint_frame (MetaFrames *frames,
|
meta_frames_repaint_frame (MetaFrames *frames,
|
||||||
Window xwindow)
|
Window xwindow)
|
||||||
|
@ -124,6 +124,9 @@ void meta_frames_set_title (MetaFrames *frames,
|
|||||||
Window xwindow,
|
Window xwindow,
|
||||||
const char *title);
|
const char *title);
|
||||||
|
|
||||||
|
void meta_frames_update_frame_style (MetaFrames *frames,
|
||||||
|
Window xwindow);
|
||||||
|
|
||||||
void meta_frames_repaint_frame (MetaFrames *frames,
|
void meta_frames_repaint_frame (MetaFrames *frames,
|
||||||
Window xwindow);
|
Window xwindow);
|
||||||
|
|
||||||
|
@ -444,6 +444,13 @@ meta_ui_unflicker_frame_bg (MetaUI *ui,
|
|||||||
target_width, target_height);
|
target_width, target_height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
meta_ui_update_frame_style (MetaUI *ui,
|
||||||
|
Window xwindow)
|
||||||
|
{
|
||||||
|
meta_frames_update_frame_style (ui->frames, xwindow);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
meta_ui_repaint_frame (MetaUI *ui,
|
meta_ui_repaint_frame (MetaUI *ui,
|
||||||
Window xwindow)
|
Window xwindow)
|
||||||
|
@ -117,6 +117,9 @@ void meta_ui_set_frame_title (MetaUI *ui,
|
|||||||
Window xwindow,
|
Window xwindow,
|
||||||
const char *title);
|
const char *title);
|
||||||
|
|
||||||
|
void meta_ui_update_frame_style (MetaUI *ui,
|
||||||
|
Window window);
|
||||||
|
|
||||||
void meta_ui_repaint_frame (MetaUI *ui,
|
void meta_ui_repaint_frame (MetaUI *ui,
|
||||||
Window xwindow);
|
Window xwindow);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user