Re: GTK3 menu bar


On 30 July 2015 at 18:31, Stefan Salewski <mail ssalewski de> wrote:
On Thu, 2015-07-30 at 13:25 +0100, Emmanuele Bassi wrote:

the preferred way to make a menu bar in GTK+ 3.x is to use GMenu and


There are various, incremental examples in the C API reference:


Thanks for that hint -- seems I missed that, more or less...

The reason may be that I am generally looking for GTK docs, not for
Gnome docs, so I often start at should just point to; they are on the
same infrastructure anyway, and the documentation is automatically
pushed there.

Personally I do not really care much about Windows and Mac, but I know
that GTK3 can be used on Windows. For all what is called GNOME I
generally do not know if it has unmet dependencies for Mac and Window.

As part of the consolidation effort for the core GNOME platform that
was started mid-2.x, most of the GNOME dependencies are, these days,
limited to GTK and its own dependencies. Generally speaking, anything
that requires GTK should also work on MacOS and Windows.

I just unpacked evolution 3.16.4 source code, one of the bigger tools
that uses GTK3. grepping for g_menu or gtk_menu gives me currently only
results for the later, so that one still ignores g-menu? Guess the menu
is too large for GMenu?

Not at all.

Evolution has been ported to GTK 3.x early in the process, but most of
its code base is old, huge, not heavily maintained, and thus slow
moving, so it's not odd that it only uses older technologies. I
personally would not take it as a shining example of a GTK 3

If you want to see a better use of the more recent GTK API, you should
look at gedit instead. The whole set of core GNOME applications are
also good examples of the GTK API in multiple languages:


[ ] ebassi [ gmail com]

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]