Re: Title on gnome-shell



On Tue, Feb 27, 2018 at 1:59 PM, Takao Fujiwara <fujiwara redhat com> wrote:
How can I set the title name of GtkWindow on gnome-shell?

gtk_window_set_title(), but that's probably not what you mean - there
are few places where gnome-shell uses the window title, in general the
application name is more prominent. For that it is important that
gnome-shell finds the .desktop file that corresponds to the window.
There are several options for making that work, most importantly:

 - use GtkApplication with an ID that corresponds to the .desktop file
   (for example "com.example.Foo" and com.example.Foo.desktop)

 - set the WM_CLASS property to the .desktop file name
  (e.g. g_setprgname("foo-bar"); and foo-bar.desktop)

 - set the StartupWMClass field in the .desktop file to the WM_CLASS
   of your program

Refer to https://wiki.gnome.org/Projects/GnomeShell/ApplicationBased
for more details.


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