[devhelp] window: avoid compilation warnings
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] window: avoid compilation warnings
- Date: Mon, 4 Feb 2013 11:16:18 +0000 (UTC)
commit 3ad07126a0cb1d7543589c719190f9f650b4e387
Author: Aleksander Morgado <aleksander lanedo com>
Date: Mon Feb 4 12:16:06 2013 +0100
window: avoid compilation warnings
src/dh-window.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/dh-window.c b/src/dh-window.c
index b860069..79a6864 100644
--- a/src/dh-window.c
+++ b/src/dh-window.c
@@ -643,7 +643,7 @@ window_populate (DhWindow *window)
GtkWidget *forward;
GtkWidget *box;
GtkWidget *menu_button;
- GtkWidget *menu;
+ GObject *menu;
priv = window->priv;
book_manager = dh_app_peek_book_manager (DH_APP (gtk_window_get_application (GTK_WINDOW (window))));
@@ -670,7 +670,7 @@ window_populate (DhWindow *window)
"",
FALSE);
menu = gtk_builder_get_object (priv->builder, "window-menu");
- gtk_menu_button_set_menu_model (menu_button, menu);
+ gtk_menu_button_set_menu_model (GTK_MENU_BUTTON (menu_button), G_MENU_MODEL (menu));
/* Add toolbar to main box */
gtk_box_pack_start (GTK_BOX (priv->main_box), priv->toolbar,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]