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 642333 - st-entry: Add API to set an actor as primary/secondary icon
st-entry: Add API to set an actor as primary/secondary 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: 642335
 
 
Reported: 2011-02-14 22:30 UTC by Florian Müllner
Modified: 2011-02-21 16:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
st-entry: Add API to set an actor as primary/secondary icon (3.89 KB, patch)
2011-02-14 22:30 UTC, Florian Müllner
committed Details | Review

Description Florian Müllner 2011-02-14 22:30:04 UTC
The latest mockups for the search entry[0] use themed symbolic icons instead of the currently used close icon; to support this, add API to set the icons from a ClutterActor instead of a filename.

[0] http://git.gnome.org/browse/gnome-shell-design/plain/mockups/static/searchbox.png
Comment 1 Florian Müllner 2011-02-14 22:30:08 UTC
Created attachment 180863 [details] [review]
st-entry: Add API to set an actor as primary/secondary icon

Currently an entry's primary/secondary icon can only be set by
filename. In order to allow using themed icons, add API to set
a generic ClutterActor as icon.
Comment 2 Owen Taylor 2011-02-15 20:54:13 UTC
Review of attachment 180863 [details] [review]:

OK to commit except for minor style nits

::: src/st/st-entry.c
@@ +960,3 @@
+  _st_entry_set_icon (entry, &priv->primary_icon, icon);
+
+}

Stray blank line

@@ +967,3 @@
+ * @icon: (allow-none): an #ClutterActor
+ *
+ * Set the primary icon of the entry to @icon

secondary icon. (Would like it if the doc comments in this file described *what* primary and secondary icons were somewhere though existing problem.)

@@ +981,3 @@
+  _st_entry_set_icon (entry, &priv->secondary_icon, icon);
+
+}

Another stray blank line
Comment 3 Florian Müllner 2011-02-21 16:55:01 UTC
Attachment 180863 [details] pushed as bffe796 - st-entry: Add API to set an actor as primary/secondary icon