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 330355 - Mailer Preferences. New mail notification, "specify filename" should be disabled
Mailer Preferences. New mail notification, "specify filename" should be disabled
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Mailer
2.6.x (obsolete)
Other All
: Normal trivial
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2006-02-08 06:43 UTC by Johnny Jacob
Modified: 2013-09-13 00:48 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
mailer preferences.New mail notification, "specific filename" entry is enabled only when "play sound file when new mail arrives" button is selected (2.38 KB, patch)
2006-04-17 06:06 UTC, rakesh
rejected Details | Review
Patch for disabling "specify filename" in new mail notification..and enabling it only for "Play sound file when new mail arrives" option (3.17 KB, patch)
2006-07-07 07:21 UTC, Raghavendran
reviewed Details | Review
Patch for disabling "specify filename" in new mail notification..and enabling it only for "Play sound file when new mail arrives" option (1.90 KB, patch)
2006-07-10 13:21 UTC, Raghavendran
reviewed Details | Review
pimped version (1.97 KB, patch)
2006-07-14 18:12 UTC, André Klapper
committed Details | Review

Description Johnny Jacob 2006-02-08 06:43:31 UTC
Under Mailer preferences, in "New mail notifications" section, the "specify
filename" widget should be enabled only when the "play sound file when a new
mail arrives" option is selected.

Other information:
Comment 1 Karsten Bräckelmann 2006-03-20 19:02:34 UTC
Confirming.
Comment 2 rakesh 2006-04-17 06:06:25 UTC
Created attachment 63667 [details] [review]
 mailer preferences.New mail notification, "specific filename" entry is enabled only when "play sound file when new mail arrives" button is selected
Comment 3 Srinivasa Ragavan 2006-04-26 06:29:22 UTC
I dont see why you use fonts/use_custom. really a gconf key might not be reqd at all. Just enable/disable the field based on the selected radio button.
Comment 4 Raghavendran 2006-07-07 07:21:15 UTC
Created attachment 68530 [details] [review]
Patch for disabling "specify filename" in new mail notification..and enabling it only for "Play sound file when new mail arrives" option
Comment 5 André Klapper 2006-07-08 11:45:49 UTC
hi raghav,
your patch is not a clean one - please take a look at it!
please provide a clean patch that only includes code changes that are really needed to fix this bug, your current patch includes stuff which also alters codelines (means: you have added unnecessary whitespace a few times and deleted one whitespace) that should not be touched to fix this problem.
thanks a lot. :-)
Comment 6 Raghavendran 2006-07-10 13:21:11 UTC
Created attachment 68714 [details] [review]
Patch for disabling "specify filename" in new mail notification..and enabling
it only for "Play sound file when new mail arrives" option
Comment 7 André Klapper 2006-07-14 18:05:30 UTC
raghav: 
- ChangeLog: "specify filename" was *en*abled for radNotifyNot and radNotifyBeep, not *disabled*. :-)

- your patch is still not clean... there is one whitespace in front of 
  gtk_widget_set_sensitive ((GtkWidget *) prefs->notify_sound_file, TRUE);
which should not be there. yes, i can be pedantic.

- any reason why you use
  if ((val == MAIL_CONFIG_NOTIFY_NOT) || (val == MAIL_CONFIG_NOTIFY_BEEP))
instead of
  if (val != MAIL_CONFIG_NOTIFY_PLAY_SOUND)
? (just curious.)

apart from that, patch works. :-)
Comment 8 André Klapper 2006-07-14 18:12:33 UTC
Created attachment 68939 [details] [review]
pimped version

no idea; no offense.
Comment 9 André Klapper 2006-07-14 18:20:28 UTC
raghav: slap me, seems like the additional whitespace isn't your fault :-)
Comment 10 Srinivasa Ragavan 2006-07-20 04:12:03 UTC
Fixed to HEAD
Comment 11 André Klapper 2006-08-08 22:47:27 UTC
please see my comments to bug 350411