[gnome-notes/wip-remove-note-id: 1/2] window-base: fix compile warning in search toolbar
- From: Isaque Galdino de Araujo <igaldino src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-notes/wip-remove-note-id: 1/2] window-base: fix compile warning in search toolbar
- Date: Thu, 21 Jan 2021 14:32:50 +0000 (UTC)
commit 10921b4bb22f4b0dce993cda453c8ecf609e952a
Author: Isaque Galdino <igaldino gmail com>
Date: Thu Jan 21 11:08:50 2021 -0300
window-base: fix compile warning in search toolbar
Compiler was complaining when creating search toolbar. The code was
casting BjbWindowBase object to GtkWidget but bjb_search_toolbar_new
expects BjbWindowBase.
So, this fixes that wrong casting.
src/bjb-window-base.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/bjb-window-base.c b/src/bjb-window-base.c
index a4be0be..d56a38f 100644
--- a/src/bjb-window-base.c
+++ b/src/bjb-window-base.c
@@ -365,7 +365,7 @@ bjb_window_base_constructed (GObject *obj)
self->entry );
/* Search entry toolbar */
- self->search_bar = bjb_search_toolbar_new (GTK_WIDGET (obj), self->controller);
+ self->search_bar = bjb_search_toolbar_new (self, self->controller);
gtk_box_pack_start (GTK_BOX (self->vbox), GTK_WIDGET (self->search_bar), FALSE, FALSE, 0);
/* Shared toolbar */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]