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 321155 - Panel Back ground file selector should have preview option
Panel Back ground file selector should have preview option
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: panel
2.12.x
Other All
: Normal normal
: ---
Assigned To: Panel Maintainers
Panel Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-11-10 13:39 UTC by Narayana Pattipati
Modified: 2005-12-17 11:08 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
Proposed Patch (3.91 KB, patch)
2005-12-16 14:38 UTC, Srirama Sharma
none Details | Review

Description Narayana Pattipati 2005-11-10 13:39:21 UTC
Please describe the problem:
1) Right click on panel -> Properties -> Background tab
2) Set 'Background image' radio button.
3) Click the browse button.

Observe that the image file selector dialog does not have the preview
pane on the right side.

Since its image selection opening gtk file chooser/selector should be opened
preview option. Its done in back ground capplet.

Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Vincent Untz 2005-12-15 07:16:00 UTC
2005-12-15  Vincent Untz  <vuntz@gnome.org>

	Add a preview widget in the image background chooser.
	Fix bug #321155.

	* panel-properties-dialog.c:
	(panel_properties_dialog_chooser_preview_update): new
	(panel_properties_dialog_setup_image_chooser): connect stuff to update
	the preview widget
Comment 2 Srirama Sharma 2005-12-16 14:36:15 UTC
Vincent, was working out a patch for this bug, you seem to beat me to it :)
Just checked out the latest code and found some test cases did not pass through.

Have listed them below,

   When user has already set his background image and wants to change it 

 - Clicking on the file-chooser button will not show the preview of the current
   background image of the panel.

 - When user browses through the list and selects another image file (eg:
   try1.png) in the file chooser, the preview is seen. 
   Now if the user Cancels the filechooser dialog and again opens the 
   filechooser dialog, the preview of the last image which had the selection 
   and was cancelled is seen (ie try1.png) though its not the actual panel 
   background image. 

Attaching the patch I had worked upon. Probably if you agree on the validity of
the test cases above we could work out the differential patch that could get 
in. Please have a look at the attached patch.
Comment 3 Srirama Sharma 2005-12-16 14:38:17 UTC
Created attachment 56071 [details] [review]
Proposed Patch
Comment 4 Vincent Untz 2005-12-17 11:08:02 UTC
Srirama: the bugs you describe are GtkFileChooserButton bugs. We won't
workaround them in the panel.

See eg bug 319525