mirror of
https://github.com/brl/mutter.git
synced 2025-07-02 17:21:57 +00:00
theme: Remove unused "widget" parameter to frame style drawing
It seems that the only usage of the "widget" parameter throughout the entire call chain was to pass between two function calls as mutual recursion. https://bugzilla.gnome.org/show_bug.cgi?id=671104
This commit is contained in:
@ -2196,7 +2196,6 @@ meta_frames_paint (MetaFrames *frames,
|
||||
MetaUIFrame *frame,
|
||||
cairo_t *cr)
|
||||
{
|
||||
GtkWidget *widget;
|
||||
MetaFrameFlags flags;
|
||||
MetaFrameType type;
|
||||
GdkPixbuf *mini_icon;
|
||||
@ -2209,7 +2208,6 @@ meta_frames_paint (MetaFrames *frames,
|
||||
MetaGrabOp grab_op;
|
||||
Display *display;
|
||||
|
||||
widget = GTK_WIDGET (frames);
|
||||
display = GDK_DISPLAY_XDISPLAY (gdk_display_get_default ());
|
||||
|
||||
for (i = 0; i < META_BUTTON_TYPE_LAST; i++)
|
||||
@ -2308,7 +2306,6 @@ meta_frames_paint (MetaFrames *frames,
|
||||
|
||||
meta_theme_draw_frame_with_style (meta_theme_get_current (),
|
||||
frame->style,
|
||||
widget,
|
||||
cr,
|
||||
type,
|
||||
flags,
|
||||
|
Reference in New Issue
Block a user