[virt-tools-list] [PATCH virt-viewer 1/4] window: Do not use constant
Fabiano Fidêncio
fabiano at fidencio.org
Wed Jun 22 08:24:06 UTC 2016
I'd prefer a commit message as: "window: Use a predefined macro
instead of constant", but that's not a big deal.
On Wed, Jun 22, 2016 at 8:17 AM, Pavel Grunt <pgrunt at redhat.com> wrote:
> ---
> src/virt-viewer-window.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c
> index 8ec2521..e03df65 100644
> --- a/src/virt-viewer-window.c
> +++ b/src/virt-viewer-window.c
> @@ -378,7 +378,7 @@ virt_viewer_window_get_real_zoom_level(VirtViewerWindow *self)
> GtkAllocation allocation;
> guint width, height;
>
> - g_return_val_if_fail(self->priv->display != NULL, 100);
> + g_return_val_if_fail(self->priv->display != NULL, NORMAL_ZOOM_LEVEL);
>
> gtk_widget_get_allocation(GTK_WIDGET(self->priv->display), &allocation);
> virt_viewer_display_get_desktop_size(self->priv->display, &width, &height);
> --
> 2.9.0
>
> _______________________________________________
> virt-tools-list mailing list
> virt-tools-list at redhat.com
> https://www.redhat.com/mailman/listinfo/virt-tools-list
Acked-by: Fabiano Fidêncio <fidencio at redhat.com>
--
Fabiano Fidêncio
More information about the virt-tools-list
mailing list