Changeset 10392

Show
Ignore:
Timestamp:
09/08/08 13:27:37 (2 months ago)
Author:
asterix
Message:

show better icon for send file menuitems / buttons. Fixes #4282

Location:
trunk
Files:
1 added
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/data/glade/message_window.glade

    r10017 r10392  
    277277                            <property name="visible">True</property> 
    278278                            <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property> 
    279                             <property name="stock">gtk-save</property> 
    280279                            <property name="icon_size">1</property> 
    281280                          </widget> 
  • trunk/src/chat_control.py

    r10362 r10392  
    10261026 
    10271027                self._send_file_button = self.xml.get_widget('send_file_button') 
     1028                # add a special img for send file button 
     1029                path_to_upload_img = os.path.join(gajim.DATA_DIR, 'pixmaps', 'upload.png') 
     1030                img = gtk.Image() 
     1031                img.set_from_file(path_to_upload_img) 
     1032                self._send_file_button.set_image(img) 
    10281033                id = self._send_file_button.connect('clicked', 
    10291034                        self._on_send_file_menuitem_activate) 
     
    19711976                separatormenuitem2 = xml.get_widget('separatormenuitem2') 
    19721977 
     1978                # add a special img for send file menuitem 
     1979                path_to_upload_img = os.path.join(gajim.DATA_DIR, 'pixmaps', 'upload.png') 
     1980                img = gtk.Image() 
     1981                img.set_from_file(path_to_upload_img) 
     1982                send_file_menuitem.set_image(img) 
     1983 
    19731984                muc_icon = gtkgui_helpers.load_icon('muc_active') 
    19741985                if muc_icon: 
  • trunk/src/groupchat_control.py

    r10377 r10392  
    21102110 
    21112111                item = xml.get_widget('send_file_menuitem') 
     2112                # add a special img for send file menuitem 
     2113                path_to_upload_img = os.path.join(gajim.DATA_DIR, 'pixmaps', 'upload.png') 
     2114                img = gtk.Image() 
     2115                img.set_from_file(path_to_upload_img) 
     2116                item.set_image(img) 
     2117 
    21122118                if not c.resource: 
    21132119                        item.set_sensitive(False) 
  • trunk/src/roster_window.py

    r10384 r10392  
    51645164                                'add_special_notification_menuitem') 
    51655165 
     5166                        # add a special img for send file menuitem 
     5167                        path_to_upload_img = os.path.join(gajim.DATA_DIR, 'pixmaps', 
     5168                                'upload.png') 
     5169                        img = gtk.Image() 
     5170                        img.set_from_file(path_to_upload_img) 
     5171                        send_file_menuitem.set_image(img) 
     5172 
    51665173                        if not our_jid: 
    51675174                                # add a special img for rename menuitem 
     
    52855292                execute_command_menuitem = xml.get_widget( 
    52865293                        'execute_command_menuitem') 
     5294 
     5295                # add a special img for send file menuitem 
     5296                path_to_upload_img = os.path.join(gajim.DATA_DIR, 'pixmaps', 'upload.png') 
     5297                img = gtk.Image() 
     5298                img.set_from_file(path_to_upload_img) 
     5299                send_file_menuitem.set_image(img) 
    52875300 
    52885301                # send custom status icon