After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 563405 - Add gproperties to MetaWindow: "title", "icon", "mini-icon"
Add gproperties to MetaWindow: "title", "icon", "mini-icon"
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2008-12-06 01:04 UTC by Colin Walters
Modified: 2008-12-06 01:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add gproperties to MetaWindow: "title", "icon", "mini-icon" (4.43 KB, patch)
2008-12-06 01:04 UTC, Colin Walters
reviewed Details | Review
Add gproperties to MetaWindow: "title", "icon", "mini-icon" (4.49 KB, patch)
2008-12-06 01:29 UTC, Colin Walters
none Details | Review

Description Colin Walters 2008-12-06 01:04:40 UTC
Needed for patch for overlay.
Comment 1 Colin Walters 2008-12-06 01:04:44 UTC
Created attachment 124038 [details] [review]
Add gproperties to MetaWindow: "title", "icon", "mini-icon"

We need these properties to do things outside of the frame, without
dropping to libwnck.
Comment 2 Owen Taylor 2008-12-06 01:17:01 UTC
+  if (modified)
+    g_object_notify (G_OBJECT (window), "title");

Suggest notifying at the end after ::desc has been updated.

+  g_object_class_install_property (object_class,
+                                   PROP_TITLE,
+                                   g_param_spec_string ("title",
+                                                        "Window title",
+                                                        "",
+                                                        "",
+                                                        G_PARAM_READABLE));  

Nick should be "Title" to match the name of the property. Nicks are always
the name nicely formatted.

Description should be "The title of the window" if you can't think of anything more useful to say.

Same applies to the other two properties. Is there any reason to use ""
rather than NULL for the default? (default matters here really not at all,
so might as well keep it simple.)

+      
+      g_object_notify (G_OBJECT (window), "icon");
+      g_object_notify (G_OBJECT (window), "mini-icon");    

Good practice to surround multiple notifications with a g_object_freeze_notify()
g_object_thaw_notify() pair. Otherwise looks fine to me.

- Owen
Comment 3 Colin Walters 2008-12-06 01:29:27 UTC
Created attachment 124040 [details] [review]
Add gproperties to MetaWindow: "title", "icon", "mini-icon"

We need these properties to do things outside of the frame, without
dropping to libwnck.
Comment 4 Colin Walters 2008-12-06 01:30:25 UTC
Thanks, all fixed.

commit 4fc9c5ace4394d4504d6c3ba2457a00724d78b2b
Author: Colin Walters <walters@verbum.org>
Date:   Fri Dec 5 20:03:27 2008 -0500

    Add gproperties to MetaWindow: "title", "icon", "mini-icon"
    
    We need these properties to do things outside of the frame, without
    dropping to libwnck.
    
    http://bugzilla.gnome.org/show_bug.cgi?id=563405