[PATCH] toytoolkit: remove unused actions from titlebar menu

Kristian Høgsberg hoegsberg at gmail.com
Tue Aug 14 07:12:54 PDT 2012


On Tue, Aug 14, 2012 at 12:26:54PM +0200, Philipp Brüschweiler wrote:
> They were introduced in b3cca0a41130ff45b70b730cb8f2273dd91531a5
> but never actually implemented. Removing them should at least stop
> users from wondering if weston is broken.

Looks good.
Kristian

> https://bugs.freedesktop.org/show_bug.cgi?id=52455
> ---
>  clients/window.c | 8 +++-----
>  1 Datei geändert, 3 Zeilen hinzugefügt(+), 5 Zeilen entfernt(-)
> 
> diff --git a/clients/window.c b/clients/window.c
> index c274541..3262174 100644
> --- a/clients/window.c
> +++ b/clients/window.c
> @@ -1587,9 +1587,6 @@ frame_menu_func(struct window *window, int index, void *data)
>  		if (window->fullscreen_handler)
>  			window->fullscreen_handler(window, window->user_data);
>  		break;
> -	case 2: /* rotate */
> -	case 3: /* scale */
> -		break;
>  	}
>  }
>  
> @@ -1600,12 +1597,13 @@ window_show_frame_menu(struct window *window,
>  	int32_t x, y;
>  
>  	static const char *entries[] = {
> -		"Close", "Fullscreen", "Rotate", "Scale"
> +		"Close", "Fullscreen"
>  	};
>  
>  	input_get_position(input, &x, &y);
>  	window_show_menu(window->display, input, time, window,
> -			 x - 10, y - 10, frame_menu_func, entries, 4);
> +			 x - 10, y - 10, frame_menu_func, entries,
> +			 ARRAY_LENGTH(entries));
>  }
>  
>  static int
> -- 
> 1.7.11.4
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list