Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8064095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:15:52+00:00 2026-06-05T11:15:52+00:00

I am developing a GUI app with gtk 3 and vala. This is my

  • 0

I am developing a GUI app with gtk 3 and vala.
This is my source code from MainWindow::MainWindow()

    var menu = new MenuModel();
    var app = this.application;
    app.menubar = menu;

valac gives this errors :

ewns_viewer.vala:54.9-54.19: error: The name `menubar' does not exist in the context of `Gtk.Application'
        app.menubar = menu;
        ^^^^^^^^^^^

Looking at this, says otherwise.
I also tried

var obj_class = (ObjectClass) typeof (Gtk.Application).class_ref ();
var properties = obj_class.list_properties ();
foreach (var prop in properties) 
{
    stdout.printf ("%s\n", prop.name);
}

That gives this output :

application-id
flags
is-registered
is-remote
inactivity-timeout
action-group
register-session
app-menu
menubar

If I get it right Gtk.Application has all that properties,so why does valac give me this error?

I am using valac 0.14.2.Ubuntu 12.04.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T11:15:54+00:00Added an answer on June 5, 2026 at 11:15 am

    The binding in /usr/share/vala-0.14/vapi/gtk+-3.0.vapi is out of date for Vala 0.14 on Ubuntu. If you install Vala 0.16, this binding will be available.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a GUI application in Qt. This is my first GUI application and
im developing an GUI Application, using JSWing, i load XML file, then deserialize it,
I am developing WTL GUI application. I want to print something on console. How
I'm developing a C++ application that needs a GUI. I would like to use
I'm developing Swing application, and everything works fine usually. But I have an GUI
Currently developing an application using the newest version of symfony, obtained through PEAR. This
I'm developing a GUI app in C#. It's a multithread app, and I would
I am developing a GUI application in Qt Creator and want to write some
Is NetBeans recommended for developing a GUI for a Python app? Does it have
I am developing a Java Desktop Application and designing the GUI with the help

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.