Changeset 1668


Ignore:
Timestamp:
Apr 5, 2007, 10:28:02 PM (15 years ago)
Author:
joshe
Message:

Add option to disable the annoying quit confirmation dialog.

Location:
trunk/gtk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/dialogs.c

    r1656 r1668  
    560560    struct quitdata * stuff;
    561561    GtkWidget * wind;
     562
     563    if( !tr_prefs_get_bool_with_default( PREF_ID_ASKQUIT ) )
     564    {
     565        func( cbdata );
     566        return;
     567    }
    562568
    563569    stuff          = g_new( struct quitdata, 1 );
  • trunk/gtk/tr_prefs.c

    r1615 r1668  
    130130      N_("Use a system tray / dock / notification area icon") },
    131131
     132    /* PREF_ID_ASKQUIT */
     133    { "ask-quit",               G_TYPE_BOOLEAN, PR_ENABLED,  NULL,
     134      N_("Confirm _quit"),
     135      N_("Prompt for confirmation when quitting") },
     136
    132137    /* PREF_ID_ADDSTD */
    133138    { "add-behavior-standard",  G_TYPE_NONE,    PR_ENABLED,
     
    187192    { TRUE,  -1,                FALSE },
    188193    /* PREF_ID_ICON */
     194    { TRUE,  -1,                FALSE },
     195    /* PREF_ID_ASKQUIT */
    189196    { TRUE,  -1,                FALSE },
    190197};
  • trunk/gtk/tr_prefs.h

    r1615 r1668  
    8686    PREF_ID_PEX,
    8787    PREF_ID_ICON,
     88    PREF_ID_ASKQUIT,
    8889    PREF_ID_ADDSTD,
    8990    PREF_ID_ADDIPC,
Note: See TracChangeset for help on using the changeset viewer.