From d2bf57f07486199ed2277d793c23b6ca7e09ce6d Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 5 Sep 2022 10:02:52 -0700 Subject: [PATCH] GTK plugin load_store_with_attrs: remove unused 'job' parameter --- plugin/gtk/callbacks.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/plugin/gtk/callbacks.c b/plugin/gtk/callbacks.c index 08cf5c082..ee1073c82 100644 --- a/plugin/gtk/callbacks.c +++ b/plugin/gtk/callbacks.c @@ -191,9 +191,7 @@ on_about1_activate (GtkMenuItem *menuitem, NULL); } -static void -load_store_with_attrs(GtkListStore *model, GVJ_t *job) -{ +static void load_store_with_attrs(GtkListStore *model) { gtk_list_store_clear(model); } @@ -229,7 +227,7 @@ on_drawingarea1_expose_event (GtkWidget *widget, } cairo_destroy(cr); - load_store_with_attrs(GTK_LIST_STORE(g_object_get_data(G_OBJECT(widget), "attr_store")), job); + load_store_with_attrs(GTK_LIST_STORE(g_object_get_data(G_OBJECT(widget), "attr_store"))); return FALSE; } @@ -351,7 +349,7 @@ on_drawingarea1_button_press_event (GtkWidget *widget, pointer.y = event->y; (job->callbacks->button_press)(job, event->button, pointer); - load_store_with_attrs(GTK_LIST_STORE(g_object_get_data(G_OBJECT(widget), "attr_store")), job); + load_store_with_attrs(GTK_LIST_STORE(g_object_get_data(G_OBJECT(widget), "attr_store"))); return FALSE; } -- 2.50.1