buggxmessage - Bugs: bug #33847, Patch to improve...

 
 

bug #33847: Patch to improve "-default" behaviour.

Submitted by:  None
Submitted on:  Sun 24 Jul 2011 01:16:42 PM UTC  
 
Category: NoneSeverity: 1 - Wish
Item Group: NoneStatus: Wont Fix
Privacy: PublicAssigned to: Timothy Musson <timothym>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 25 Feb 2012 05:47:15 AM UTC, comment #1:

Hi! Thanks very much for the patch and your patience - I'm very sorry it's taken so long to respond. (I can blame earthquakes.)

At this stage I'm not willing to apply the patch. The problem is, the patch makes it unclear to the user which button will be activated when he presses <enter>; there's no longer a visual clue on any of the buttons.

If I've misunderstood, please try again to convince me :^)

Tim

Timothy Musson <timothym>
Project AdministratorIn charge of this item.
Sun 24 Jul 2011 01:16:42 PM UTC, original submission:

Greetings,

Attached is a patch that will correct the behaviour of the command switch "-default" to make it behave as most users will expect. It uses gtk_window_set_default rather than gtk_widget_grab_focus to properly set the default button (rather than just focusing it).

Additionally, when using -entry, it will invoke gtk_entry_set_activates_default, so that the user can hit Enter while the entry line has focus in order to dismiss the dialogue with the default button.

The end result, is that the user can use something like :

gxmessage -buttons "GTK_STOCK_OK:0,GTK_STOCK_CANCEL:1" -entry "Enter your name: " -default "GTK_STOCK_OK"

And quickly fill the enter field and press enter to dismiss the dialogue, without having to go through "tab, Enter" (previous behaviour).

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #23689:  gxmessage-2.12.4.patch added by None (944B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by timothym (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 25 Feb 2012 05:47:15 AM UTCtimothymSeverity3 - Normal=>1 - Wish
      StatusNone=>Wont Fix
      Assigned toNone=>timothym
      Open/ClosedOpen=>Closed
    Sun 24 Jul 2011 01:16:42 PM UTCNoneAttached File-=>Added gxmessage-2.12.4.patch, #23689

    Back to the top


    Powered by Savane 3.1-cleanup1