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 697030 - Should use AnjutaCloseButton in message-view tabs
Should use AnjutaCloseButton in message-view tabs
Status: RESOLVED FIXED
Product: anjuta
Classification: Applications
Component: unknown
git master
Other Linux
: Normal normal
: ---
Assigned To: Anjuta maintainers
Anjuta maintainers
: 697760 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-04-01 11:34 UTC by Arnel Borja
Modified: 2013-04-14 20:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add close button from gEdit (6.98 KB, patch)
2013-04-08 03:10 UTC, Arnel Borja
committed Details | Review
Replace close button in tabs and search box (6.55 KB, patch)
2013-04-08 03:27 UTC, Arnel Borja
committed Details | Review
Replace close button in tabs of message-view (1.85 KB, patch)
2013-04-08 03:27 UTC, Arnel Borja
none Details | Review
Replace close button in tabs of message-view (2.11 KB, patch)
2013-04-09 16:45 UTC, Arnel Borja
none Details | Review
message-view: Use AnjutaCloseButton in tabs (2.39 KB, patch)
2013-04-14 20:54 UTC, Carl-Anton Ingmarsson
committed Details | Review

Description Arnel Borja 2013-04-01 11:34:44 UTC
gEdit, Glade, DevHelp, Nautilus, GNOME Terminal and other GNOME applications uses the symbolic icon "window-close-symbolic" for the close button in the tabs of their GtkNotebook. Because Anjuta doesn't use it, the buttons in Anjuta for tabs are a bit larger than in other applications, since it uses the stock image for close instead of the symbolic icon.

Seems like other GNOME applications contain a source file (gedit-close-button.c in gEdit) to create a close button. It contains code to set the size of the button and loading  It probably came from gEdit. Plugins like project-manager and message-view also need it.

Should we add this source file to Anjuta too, to make close buttons smaller and to make it consistent with other applications? Or should we change each plugin manually to use those symbolic icons?

I think adding this module to libanjuta is a good thing, so that we could just create instances of an AnjutaCloseButton in each plugin. Though I don't see any other applications that include their *CloseButton widget to their API.

I also used an add button for the tabs of devhelp and terminal plugins. I used the stock image for add, which made the tab labels larger and to have two lines instead of one.
Comment 1 Johannes Schmid 2013-04-01 19:24:49 UTC
Probably best to add anjuta-close-button.[ch] to libanjuta and reuse the button in the plugins.

We actually do some magic of the close button to shrink it already but it might not be the best way (even if the code was initially copied from gedit).
Comment 2 Arnel Borja 2013-04-08 00:18:35 UTC
Maybe we could change it into something like AnjutaSymbolicButton or AnjutaIconButton? Because some plugins also uses icons for add and remove in their grips, the bookmarks pane for example.

Then it needs an additional property, like "icon-name", that could be set to the name of the icon, like "window-close-symbolic".
Comment 3 Arnel Borja 2013-04-08 03:10:58 UTC
Created attachment 240919 [details] [review]
Add close button from gEdit

I removed "gEdit" in the license and replaced with "This library".
Comment 4 Arnel Borja 2013-04-08 03:27:01 UTC
Created attachment 240920 [details] [review]
Replace close button in tabs and search box
Comment 5 Arnel Borja 2013-04-08 03:27:47 UTC
Created attachment 240921 [details] [review]
Replace close button in tabs of message-view
Comment 6 Arnel Borja 2013-04-08 03:30:49 UTC
For comment #2, I just changed the close buttons because I think the go back and forward buttons of Devhelp won't look good in symbolic icons. But if you still want all buttons in grips to use symbolic icons to make them smaller, I will update the patches.
Comment 7 Arnel Borja 2013-04-09 16:45:14 UTC
Created attachment 241079 [details] [review]
Replace close button in tabs of message-view

Forgot to include header.
Comment 8 Carl-Anton Ingmarsson 2013-04-11 21:12:58 UTC
*** Bug 697760 has been marked as a duplicate of this bug. ***
Comment 9 Carl-Anton Ingmarsson 2013-04-11 21:21:45 UTC
I have commited https://bugzilla.gnome.org/attachment.cgi?id=240919 and https://bugzilla.gnome.org/attachment.cgi?id=240920 with some small changes.
I did not commit the patch for the message view since AnjutaTabber doesn't really play well with the new AnjutaCloseButton. I'm retitling the bug to using AnjutaCloseButton in the message-view once AnjutaTabber is fixed.
Comment 10 Carl-Anton Ingmarsson 2013-04-14 20:54:24 UTC
The following fix has been pushed:
7ce0955 message-view: Use AnjutaCloseButton in tabs
Comment 11 Carl-Anton Ingmarsson 2013-04-14 20:54:29 UTC
Created attachment 241529 [details] [review]
message-view: Use AnjutaCloseButton in tabs