Re: App menu name
- From: Phil Wolff <adiabat centurylink net>
- To: Kjell Ahlstedt <kjell ahlstedt bredband net>
- Cc: gtkmm-list gnome org
- Subject: Re: App menu name
- Date: Fri, 28 Nov 2014 08:11:45 -0800
We've identified the problem and the solution. The issue seems to be
confined to one flavor of desktop in one flavor of Linux. Search engines
will eventually pick this up, so I'm inclined to let it go.
On 2014/11/28 06:40, Kjell Ahlstedt wrote:
You're right. If I add a .desktop file for the application, and run
the Ubuntu Unity desktop environment, the name of the app menu is read
from the Name entry in the .desktop file. But the Gnome Flashback
desktop environment lets gtk+ display both the app menu and the
window's menubar attached to the window. And gtk+ still gets the app
menu name with g_get_application_name(), if
Glib::set_application_name() has been called. If not, Gnome Flashback
also gets the app menu name from the .desktop file.
To further complicate the issue, Unity and Gnome Flashback/gtk+/glib
seems to use slightly different algorithms for finding the right
.desktop file, when the program has been started from the command
line. I haven't investigated in detail, and I don't want to do it.
Basically it seems Gnome Flashback only considers .desktop files with
the same name as the executable file, while Unity checks the contents
of the .desktop files (the Exec and/or the TryExec entries, I think).
If you think the issue with the app menu name needs further
investigation or documentation, please file a bug in Bugzilla,
preferably with suggestions what to do.
Kjell
Den 2014-11-27 01:07, Phil Wolff skrev:
I am now seeing my application's name as the app menu title, and it
appeared after I created a .desktop file for the application. When I
remove the ,desktop file, the app menu title reverts to "Unknown
Application Name."
On 2014/11/26 06:32, Kjell Ahlstedt wrote:
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
--
If sunbeams were weapons of war, we would have had solar energy
centuries ago.
-- George Porter
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]