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 361311 - RFE: Do you really want to send this without adding a note?
RFE: Do you really want to send this without adding a note?
Status: RESOLVED FIXED
Product: bug-buddy
Classification: Deprecated
Component: general
2.16.x
Other Linux
: Normal enhancement
: ---
Assigned To: Diego Escalante Urrelo (not reading bugmail)
Bug-buddy Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-10-11 01:13 UTC by Karsten Bräckelmann
Modified: 2008-08-04 00:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Implements a GtkMessageDialog (2.66 KB, patch)
2007-01-07 05:02 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
[PATCH] Avoid sending reports with empty descriptions. (2.93 KB, patch)
2008-08-01 11:36 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
[PATCH] Prompt user to fill a longer description (4.92 KB, patch)
2008-08-02 03:24 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
How it looks (23.92 KB, image/png)
2008-08-02 03:25 UTC, Diego Escalante Urrelo (not reading bugmail)
  Details
[PATCH] Use a GtkMessageDialog to warn about description (3.69 KB, patch)
2008-08-02 20:19 UTC, Diego Escalante Urrelo (not reading bugmail)
none Details | Review
[PATCH] Use more purist GtkDialog for the warning (3.56 KB, patch)
2008-08-03 00:12 UTC, Diego Escalante Urrelo (not reading bugmail)
committed Details | Review

Description Karsten Bräckelmann 2006-10-11 01:13:39 UTC
Would be nice, if bug-buddy could ask the user, if he really wants to send a bug report, without adding any note -- if he did not.
Comment 1 Diego Escalante Urrelo (not reading bugmail) 2007-01-07 05:02:10 UTC
Created attachment 79602 [details] [review]
Implements a GtkMessageDialog

This makes bug buddy check if the text has more than MIN_REPORT_DETAILS_CHARS, if not it shows a GtkMessageDialog.

Pretty simple, please understand that the message is just a test because I can't think of something good.

Misc Question: Does bug-buddy has a --dry-run option? I had to comment send_report to hack this.
Comment 2 Diego Escalante Urrelo (not reading bugmail) 2007-01-11 00:20:21 UTC
Sorry for spamming but could we get this on 2.18? If not we are going to keep getting empty descriptions in bug reports.
Comment 3 Diego Escalante Urrelo (not reading bugmail) 2007-01-21 03:18:09 UTC
Just wanted to remind you that this could avoid lots of useless needinfos. Or at least I think it would.
Comment 4 Diego Escalante Urrelo (not reading bugmail) 2007-02-04 06:45:43 UTC
|˙

(ping)
Comment 5 Diego Escalante Urrelo (not reading bugmail) 2007-06-06 00:01:25 UTC
|.

(ping)
Comment 6 Diego Escalante Urrelo (not reading bugmail) 2007-07-04 06:29:24 UTC
|˙

(ping)
Comment 7 Diego Escalante Urrelo (not reading bugmail) 2007-09-19 02:55:33 UTC
|.

(ping)
Comment 8 Diego Escalante Urrelo (not reading bugmail) 2007-12-07 08:54:43 UTC
|˙

(ping)
Comment 9 Diego Escalante Urrelo (not reading bugmail) 2007-12-26 02:48:54 UTC
merry xmas, ping.
Comment 10 Cosimo Cecchi 2008-07-31 13:58:03 UTC
Diego, would you like to update the patch with a more meaningful message?
BTW, why did you choose ten characters as the lowest threshold for good descriptions? Wouldn't it be better to let in anything > 0 but block without the choice to send it anyway those without any description at all?
Comment 11 Diego Escalante Urrelo (not reading bugmail) 2008-08-01 00:40:33 UTC
Seems like I can't build b-b anymore:

In file included from /usr/include/libbonoboui-2.0/bonobo/bonobo-dock-band.h:47,
                 from /usr/include/libbonoboui-2.0/bonobo/bonobo-dock.h:55,
                 from /usr/include/libgnomeui-2.0/libgnomeui/gnome-app.h:44,
                 from /usr/include/libgnomeui-2.0/libgnomeui/libgnomeui.h:34,
                 from /usr/include/libgnomeui-2.0/gnome.h:7,
                 from bug-buddy.c:45:
/usr/include/libbonoboui-2.0/bonobo/bonobo-dock-item.h:108: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bonobo_dock_item_get_type’
In file included from /usr/include/libbonoboui-2.0/bonobo/bonobo-dock.h:55,
                 from /usr/include/libgnomeui-2.0/libgnomeui/gnome-app.h:44,
                 from /usr/include/libgnomeui-2.0/libgnomeui/libgnomeui.h:34,
                 from /usr/include/libgnomeui-2.0/gnome.h:7,
                 from bug-buddy.c:45:
/usr/include/libbonoboui-2.0/bonobo/bonobo-dock-band.h:105: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bonobo_dock_band_get_type’
In file included from /usr/include/libgnomeui-2.0/libgnomeui/gnome-app.h:44,
                 from /usr/include/libgnomeui-2.0/libgnomeui/libgnomeui.h:34,
                 from /usr/include/libgnomeui-2.0/gnome.h:7,
                 from bug-buddy.c:45:
/usr/include/libbonoboui-2.0/bonobo/bonobo-dock.h:92: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘bonobo_dock_get_type’
In file included from /usr/include/libgnomeui-2.0/libgnomeui/libgnomeui.h:35,
                 from /usr/include/libgnomeui-2.0/gnome.h:7,
                 from bug-buddy.c:45:
/usr/include/libgnomeui-2.0/libgnomeui/gnome-app-helper.h:621: error: expected specifier-qualifier-list before ‘GtkDestroyNotify’
/usr/include/libgnomeui-2.0/libgnomeui/gnome-app-helper.h:688: error: expected declaration specifiers or ‘...’ before ‘GtkDestroyNotify’
/usr/include/libgnomeui-2.0/libgnomeui/gnome-app-helper.h:726: error: expected declaration specifiers or ‘...’ before ‘GtkDestroyNotify’
/usr/include/libgnomeui-2.0/libgnomeui/gnome-app-helper.h:772: error: expected declaration specifiers or ‘...’ before ‘GtkDestroyNotify’
In file included from /usr/include/libgnomeui-2.0/libgnomeui/libgnomeui.h:62,
                 from /usr/include/libgnomeui-2.0/gnome.h:7,
                 from bug-buddy.c:45:
/usr/include/libgnomeui-2.0/libgnomeui/gnome-client.h:460: error: expected declaration specifiers or ‘...’ before ‘GtkDestroyNotify’
In file included from /usr/include/libgnomeui-2.0/libgnomeui/libgnomeui.h:84,
                 from /usr/include/libgnomeui-2.0/gnome.h:7,
                 from bug-buddy.c:45:
/usr/include/libgnomeui-2.0/libgnomeui/gnome-password-dialog.h:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘gnome_password_dialog_get_type’
make[2]: *** [bug-buddy.o] Error 1
make[2]: Leaving directory `/home/diego/gnome/src/bug-buddy/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/diego/gnome/src/bug-buddy'
make: *** [all] Error 2

Maybe something is too old on my system?
Comment 12 Cosimo Cecchi 2008-08-01 07:42:06 UTC
Yeah, I believe you have an old libgnome. Try to remove the $(DISABLE_DEPRECATED) line from src/Makefile.am, it should compile.
Comment 13 Diego Escalante Urrelo (not reading bugmail) 2008-08-01 11:36:18 UTC
Created attachment 115668 [details] [review]
[PATCH] Avoid sending reports with empty descriptions.


Based on my bugzilla patch, this improves the message and updates it to use
GtkBuilder instead of Glade. Also, it sets the button sensitive/unsensitive
instead of hiding it.
---
 src/bug-buddy.c |   59 ++++++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 46 insertions(+), 13 deletions(-)
Comment 14 Diego Escalante Urrelo (not reading bugmail) 2008-08-01 11:37:44 UTC
Ok, new patch. This one is updated and has a better message. On the misc side, I removed the hiding and made it sensitive'ness instead, dissapearing widgets are evil!.
Comment 15 Cosimo Cecchi 2008-08-01 12:26:26 UTC
I tested the patch, but thinking a bit better about it, I'm not completely sold on the approach.
I mean, if the user doesn't want to send a meaningful description he won't send it even with a ten characters limit (he will just write ten random chars instead of two/three).
The dialog itself is not a right approach IMHO, because there's no point in having the "Send" button sensitive and then denying the sending and popping up a dialog. What we could do instead is to make the "Send" button sensitive only if there's some text in the text view.
Also maybe, for bonus points, the text view could be pre-filled with something like "Please insert your description here" which will go away as soon as you click on it.
Thoughts?
Comment 16 Wouter Bolsterlee (uws) 2008-08-01 12:42:04 UTC
What about leaving the button sensitive at all times, but if the number of characters in the description is below a certain threshold a confirmation dialog pops up:

  The problem description you entered is very short. This is probably
  not of much help to the developers investigating your report. If
  you provide a better description, for instance with a description of
  how to reproduce the crash, the issue can be more easily resolved.

                                     [Send anyway]  [Review description]

My $0.02.
Comment 17 Diego Escalante Urrelo (not reading bugmail) 2008-08-02 03:24:24 UTC
Created attachment 115714 [details] [review]
[PATCH] Prompt user to fill a longer description


Implement a custom GtkDialog that offers the user the choice to Review
description (default) or Send anyway. The number of chars that trigger this
is <10. Personally it feels a bit unintuitive, but it might be due to wording,
for some reason I feel that Send anyway should be the button to the right.
Also remove the sensitive/insensitive bits, the dialog is blocking the window anyway.
---
 src/bug-buddy.c |  120 ++++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 111 insertions(+), 9 deletions(-)
Comment 18 Diego Escalante Urrelo (not reading bugmail) 2008-08-02 03:25:22 UTC
Ok, updated to follow Wouter suggestion. Marking the other one obsolete. Please comment!. Attaching screenshot btw.
Comment 19 Diego Escalante Urrelo (not reading bugmail) 2008-08-02 03:25:48 UTC
Created attachment 115715 [details]
How it looks
Comment 20 Wouter Bolsterlee (uws) 2008-08-02 11:35:06 UTC
(In reply to comment #17)
> for some reason I feel that Send anyway should be the button to the right.

Agreed, "progress" should be on the right, "abortion" on the left.
Comment 21 Wouter Bolsterlee (uws) 2008-08-02 11:40:03 UTC
I'm missing a gtk_dialog_set_default_response() call in your patch. Using that also obsoletes the gtk_widget_grab_default() call afaik.
Comment 22 Cosimo Cecchi 2008-08-02 12:30:34 UTC
Comment on attachment 115714 [details] [review]
[PATCH] Prompt user to fill a longer description

Diego, thanks for the updated patch.
It seems there's some kind of consensus this dialog is the way to go, so let's try to get this in before the UI freeze!
Some comments:


>+		dialog = gtk_dialog_new ();
>+

There's no need to use a GtkDialog and manually pack the icon and the primary/secondary labels: you can use GtkMessageDialog which does that for you with nice functions.

>+		/* Send anyway button */
>+		send_anyway = gtk_button_new_with_label (_("Send anyway"));

>+		/* Review button */
>+		review = gtk_button_new_with_label (_("Review description"));

>+		gtk_dialog_add_action_widget (GTK_DIALOG (dialog),
>+					review, GTK_RESPONSE_CANCEL);

Use gtk_dialog_add_button. Also, there's no need to use more than a GtkWidget pointer, as you don't want to store the pointers anyway. Just use one GtkWidget *widget.

>+		GTK_WIDGET_SET_FLAGS (review, GTK_CAN_DEFAULT);
>+		gtk_widget_grab_default (review);
>+		gtk_widget_show (review);

Use gtk_dialog_set_default_response.
Comment 23 Diego Escalante Urrelo (not reading bugmail) 2008-08-02 20:19:16 UTC
Created attachment 115745 [details] [review]
[PATCH] Use a GtkMessageDialog to warn about description


This patch follow the last comments, although it still uses
gtk_dialog_add_action_widget since gtk_dialog_add_button allows only stock
buttons, which we don't want because dialogs without pretty icon+buttons are
ugly and scary.
Send anyway is now the default widget, GTK_WIDGET_SET_FLAGS was still needed
because otherwise gtk_dialog_set_default_response would fail.
---
 src/bug-buddy.c |   81 ++++++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 72 insertions(+), 9 deletions(-)
Comment 24 Diego Escalante Urrelo (not reading bugmail) 2008-08-02 20:22:01 UTC
Obsoleting the older patch.
Comment 25 Cosimo Cecchi 2008-08-02 23:01:58 UTC
(In reply to comment #23)

> This patch follow the last comments, although it still uses
> gtk_dialog_add_action_widget since gtk_dialog_add_button allows only stock
> buttons, which we don't want because dialogs without pretty icon+buttons are
> ugly and scary.
> Send anyway is now the default widget, GTK_WIDGET_SET_FLAGS was still needed
> because otherwise gtk_dialog_set_default_response would fail.

gtk_dialog_add_button returns the button widget after adding it, so you can use that method and set the icon later. That function will also set the GTK_CAN_DEFAULT flag on the button for you, so gtk_dialog_set_default_response will work with no additional effort.
Comment 26 Diego Escalante Urrelo (not reading bugmail) 2008-08-03 00:12:50 UTC
Created attachment 115752 [details] [review]
[PATCH] Use more purist GtkDialog for the warning


This addresses the last comment about using gtk_dialog_add_button, nevermind I
didn't realized it returned a GtkWidget* :).
Now the patch should be ok.
---
 src/bug-buddy.c |   77 ++++++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 68 insertions(+), 9 deletions(-)
Comment 27 Cosimo Cecchi 2008-08-03 09:54:24 UTC
Thanks Diego, the patch looks good now!

Commit it to trunk please, with these nitpicks:
- Primary text should be something like "The description you provided for the crash is very short. Are you sure you want to send it?"
- Secondary text should be "A short description is probably not of much help to the developers investigating your report. If you provide a better one, for instance specifying a way to reproduce the crash, the issue can be more easily resolved".
- In the source file, split the big secondary text line into more lines of about 80 chars each.
Comment 28 Diego Escalante Urrelo (not reading bugmail) 2008-08-03 21:43:45 UTC
Committed to trunk. Feel free to fix the message lines, I split them but I'm not sure I did a good job... my current uptime is just too much :) I need to sleep.

Sorry, double commit since I forgot again about the damn changelog entry :/
Comment 29 Cosimo Cecchi 2008-08-03 23:09:04 UTC
I notified gnome-i18n and gnome-doc-list about the new strings.
Comment 30 Diego Escalante Urrelo (not reading bugmail) 2008-08-04 00:28:58 UTC
Right, i knew i forgot something, thank you.