I suppose you have seen the example at
https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/application/command_line_handling.
Unfortunately it's not mentioned in the gtkmm tutorial. The
tutorial would benefit from a whole new chapter, describing
Gtk::Application and Gtk::ApplicationWindow. More volunteers would
be welcome. The gtkmm tutorial has not been kept up-to-date with
the latest changes in gtk+ and gtkmm. As an example, the Gesture
classes are not mentioned.
There is a short description of command-line options in the
section that describes Boxes,
https://developer.gnome.org/gtkmm-tutorial/stable/sec-multi-item-containers.html.en#boxes-command-line-options.
Kjell
Den 2014-11-26 13:48, Phil Wolff skrev:
I'm
also running Ubuntu (14.10), and I use the Unity desktop. I'm
inclined to regard Unity as the prime suspect, so I'll submit a
bug report accordingly.
I was also looking at the changes you mention, and I think it
would be great if you could demo the handling of command-line
option and file parameters as well...
On 2014/11/26 02:03, Kjell Ahlstedt wrote:
Den 2014-11-26 05:32, Phil Wolff skrev:
I'm looking at the example code at
https://git.gnome.org/browse/gtkmm-documentation/tree/examples/book/application/app_and_win_menus.
At runtime the app menu is titled "Unknown Application Name,"
but the win menus are properly titled as "File," "Edit," and
"Notification."
Does this imply that something is missing from the code?
______________________________________________
I have recently pushed some changes that make the
menus/main_menu example use an application menu. Then I noticed
the same thing.
I use Ubuntu, which has two desktop environments to choose from:
Ubuntu Unity and Gnome Flashback. Ubuntu Unity shows both the
app menu and the menubar outside the application's window, and
the app menu is titled "Unknown Application Name". Gnome
Flashback shows both the app menu and the menubar in the
application's window, and the app menu is titled
"Gtk::Application Example" (or whatever name is set with
Glib::set_application_name()). Gtk+'s demo program behaves the
same.
I don't know if something is missing in these programs, or if
it's a bug in the Ubuntu Unity desktop shell. Which operating
system do you use?
Kjell
|