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:
Florian Müllner 2011-03-20 23:10:49 +01:00
parent 0cdac78bd5
commit eb17cd9ba9
4 changed files with 27 additions and 0 deletions

View File

@ -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)

View File

@ -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);

View File

@ -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)

View File

@ -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);