Ticket #4044: gajim_not_only_first_message_notification_plus_thin_border.patch

File gajim_not_only_first_message_notification_plus_thin_border.patch, 1.8 kB (added by digital7@…, 5 months ago)
  • gajim/data/glade/popup_notification_window.glade

    diff -ru original/gajim/data/glade/popup_notification_window.glade patched/gajim/data/glade/popup_notification_window.glade
    old new  
    44<glade-interface> 
    55 
    66<widget class="GtkWindow" id="popup_notification_window"> 
    7   <property name="border_width">6</property> 
     7  <property name="border_width">1</property> 
    88  <property name="width_request">312</property> 
    99  <property name="height_request">95</property> 
    1010  <property name="title" translatable="yes"></property> 
  • gajim/src/common/config.py

    diff -ru original/gajim/src/common/config.py patched/gajim/src/common/config.py
    old new  
    4646 
    4747        __options = { 
    4848                # name: [ type, default_value, help_string ] 
     49                'notify_only_on_the_first_message': [ opt_bool, True ], 
    4950                'verbose': [ opt_bool, False, '', True ], 
    5051                'alwaysauth': [ opt_bool, False ], 
    5152                'autopopup': [ opt_bool, False ], 
  • gajim/src/common/helpers.py

    diff -ru original/gajim/src/common/helpers.py patched/gajim/src/common/helpers.py
    old new  
    782782                        return True 
    783783                if popup == 'no': 
    784784                        return False 
    785         if type and (not gajim.config.get(type) or not is_first_message): 
     785#-->if type and (not gajim.config.get(type) or not is_first_message): <--# 
     786        if type and (not gajim.config.get(type)): 
     787                return False 
     788        if type and not is_first_message and gajim.config.get('notify_only_on_the_first_message'): 
    786789                return False 
    787790        if gajim.config.get('autopopupaway'): # always show notification 
    788791                return True