! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Using the icon chooser in the menueditor
Status:
CLOSED: FIXED
Severity:
enhancement
Product:
Xfce4-menueditor
Component:
General

Comments

Description Benedikt Meurer editbugs 2006-08-26 14:35:16 CEST
The icon selection in the menueditor is not really convenient right now, esp. since one has to look up the name of the icon manually first. Since exo now contains an icon chooser dialog, it should be used in the menueditor if libexo is available. I'm going to attach a patch to do this for the edit dialog.
Comment 1 Benedikt Meurer editbugs 2006-08-26 14:38:44 CEST
Created attachment 747 
Possible fix

This patch adds support for the icon to the edit dialog (should be easy to add to the add dialog...). If exo is not available when compiling xfdesktop it'll simply display the previous behaviour.

The patch also removes the dialog separator, because we don't use it in Xfce's dialogs.

Note that the patch adds a new translable string (-> "No icon"). But that shouldn't cause trouble as translators will have to check xfdesktop again before rc1 to translate the new desktop icon related strings.
Comment 2 Jean-François Wauthy editbugs 2006-08-26 16:04:01 CEST
great, your new icon chooser widget rox

but i miss (or didn't find how) being able to select "no icon"
Comment 3 Benedikt Meurer editbugs 2006-08-26 16:05:55 CEST
If its necessary to be able to reset the icon, you can add another button "Revert" (or whatever) to the dialog. But I don't think it makes sense to reset the icon for menu entries to "No icon".
Comment 4 Jean-François Wauthy editbugs 2006-08-26 16:07:47 CEST
The user should be able to remove a selected icon and set no icon instead. At least it's how the menueditor currently works and i don't want to remove that functionnality.

I'll take a look into adding a button to the dialog then.
Comment 5 Benedikt Meurer editbugs 2006-08-26 16:11:40 CEST
Add

 GTK_STOCK_REVERT, your-response-id,

to exo_icon_chooser_dialog_new() and your-response-id to gtk_dialog_set_alternative_button_order(), between GTK_RESPONSE_ACCEPT and GTK_RESPONSE_CANCEL.
Comment 6 Jean-François Wauthy editbugs 2006-09-06 17:10:08 CEST
patch applied and i added support in the add dialog (rev 23095)

Bug #2220

Reported by:
Benedikt Meurer
Reported on: 2006-08-26
Last modified on: 2009-07-14

People

Assignee:
Xfce Bug Triage
CC List:
0 users

Version

Attachments

Possible fix (10.41 KB, patch)
2006-08-26 14:38 CEST , Benedikt Meurer
no flags

Additional information