[evince/wip/gpoo/fix-warnings: 6/6] shell: Fix compilation warning on ev-zoom-action
- From: Germán Poo-Caamaño <gpoo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/wip/gpoo/fix-warnings: 6/6] shell: Fix compilation warning on ev-zoom-action
- Date: Sun, 17 Oct 2021 17:09:20 +0000 (UTC)
commit 2bfe441dc59c41fd7230a8903127cf5056526e0c
Author: Germán Poo-Caamaño <gpoo gnome org>
Date: Sun Oct 17 10:20:59 2021 -0300
shell: Fix compilation warning on ev-zoom-action
shell/ev-zoom-action.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/shell/ev-zoom-action.c b/shell/ev-zoom-action.c
index fc11c47c..df7210b3 100644
--- a/shell/ev-zoom-action.c
+++ b/shell/ev-zoom-action.c
@@ -192,7 +192,8 @@ max_zoom_changed_cb (EvDocumentModel *model,
EvZoomActionPrivate *priv = GET_PRIVATE (zoom_action);
g_menu_remove_all (G_MENU (priv->zoom_free_section));
- g_clear_pointer (&priv->popup, (GDestroyNotify)gtk_widget_destroy);
+ gtk_widget_destroy (GTK_WIDGET (priv->popup));
+ priv->popup = NULL;
ev_zoom_action_populate_free_zoom_section (zoom_action);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]