After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 637330 - [PATCH] theme: Add tiled_left/tiled_right frame states
[PATCH] theme: Add tiled_left/tiled_right frame states
Status: RESOLVED FIXED
Product: mutter
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2010-12-15 17:36 UTC by Florian Müllner
Modified: 2011-01-05 16:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
theme: Add tiled_left/tiled_right frame states (13.12 KB, patch)
2010-12-15 17:36 UTC, Florian Müllner
reviewed Details | Review
theme: Add tiled_left/tiled_right frame states (13.31 KB, patch)
2011-01-05 01:02 UTC, Florian Müllner
committed Details | Review

Description Florian Müllner 2010-12-15 17:36:54 UTC
See attached patch, as requested by Lapo. Assuming the patch in bug 635683, so not bumping the theme format version here (could be changed easily if necessary).
Comment 1 Florian Müllner 2010-12-15 17:36:57 UTC
Created attachment 176486 [details] [review]
theme: Add tiled_left/tiled_right frame states

It may be desirable for theme authors to treat side-by-side tiled
windows differently, for instance to give the edge-touching border
a width of 0, so add additional frame states for tiled windows.
Comment 2 Owen Taylor 2011-01-04 21:29:40 UTC
Review of attachment 176486 [details] [review]:

Few questions

::: src/ui/theme.c
@@ +4831,3 @@
             break;
+          case META_FRAME_STATE_TILED_LEFT:
+            styles = style_set->tiled_left_styles;

Shouldn't there be some sort of fallback here so things work with old themes?

@@ +4919,3 @@
     return FALSE;
 
+#if 0

Unclear why you are adding #if 0'd code
Comment 3 Florian Müllner 2011-01-05 01:02:40 UTC
Created attachment 177535 [details] [review]
theme: Add tiled_left/tiled_right frame states

(In reply to comment #2)
> Review of attachment 176486 [details] [review]:
> 
> Few questions
> 
> ::: src/ui/theme.c
> @@ +4831,3 @@
>              break;
> +          case META_FRAME_STATE_TILED_LEFT:
> +            styles = style_set->tiled_left_styles;
> 
> Shouldn't there be some sort of fallback here so things work with old themes?

Hmm, yeah - there seems to be an implicit fallback to the normal frame style (haven't tested with shaded), but should be explicit.



> @@ +4919,3 @@
>      return FALSE;
> 
> +#if 0
> 
> Unclear why you are adding #if 0'd code

Sorry - it was meant along the lines of "I didn't overlook that we check frame styles, but the new ones should be optional in my opinion". I deleted the #if'ed out code.
Comment 4 Owen Taylor 2011-01-05 16:27:51 UTC
Review of attachment 177535 [details] [review]:

Looks good
Comment 5 Florian Müllner 2011-01-05 16:41:53 UTC
Attachment 177535 [details] pushed as ed99d12 - theme: Add tiled_left/tiled_right frame states