Changeset 469

Show
Ignore:
Timestamp:
02/28/05 13:47:23 (4 years ago)
Author:
nk
Message:

mostly glade/gui stuff

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/gajim.py

    r362 r469  
    2828_ = i18n._ 
    2929 
    30 import getopt, sys 
     30import getopt 
     31import sys 
     32import signal 
    3133 
    3234def usage(): 
     
    4951                sys.exit() 
    5052 
     53 
     54# FIXME: not sure where to put that. maybe here? 
     55# ^C exits the application 
     56signal.signal(signal.SIGINT, signal.SIG_DFL) 
     57 
    5158Core.core.start(mode) 
    5259print _("Core Stopped") 
  • trunk/plugins/gtkgui/gtkgui.glade

    r465 r469  
    2828 
    2929      <child> 
    30         <widget class="GtkHandleBox" id="handlebox2"> 
     30        <widget class="GtkMenuBar" id="menubar1"> 
    3131          <property name="visible">True</property> 
    32           <property name="shadow_type">GTK_SHADOW_OUT</property> 
    33           <property name="handle_position">GTK_POS_LEFT</property> 
    34           <property name="snap_edge">GTK_POS_TOP</property> 
    35  
    36           <child> 
    37             <widget class="GtkMenuBar" id="menubar1"> 
    38               <property name="visible">True</property> 
    39  
    40               <child> 
    41                 <widget class="GtkImageMenuItem" id="gajim_menu"> 
    42                   <property name="visible">True</property> 
    43                   <property name="label" translatable="yes">_Menu</property> 
    44                   <property name="use_underline">True</property> 
    45  
    46                   <child internal-child="image"> 
    47                     <widget class="GtkImage" id="image192"> 
     32 
     33          <child> 
     34            <widget class="GtkMenuItem" id="gajim_menu"> 
     35              <property name="visible">True</property> 
     36              <property name="label" translatable="yes">_Chat</property> 
     37              <property name="use_underline">True</property> 
     38 
     39              <child> 
     40                <widget class="GtkMenu" id="gajim_menu_menu"> 
     41 
     42                  <child> 
     43                    <widget class="GtkImageMenuItem" id="new_message_mni"> 
    4844                      <property name="visible">True</property> 
    49                       <property name="stock">gtk-convert</property> 
    50                       <property name="icon_size">1</property> 
    51                       <property name="xalign">0.5</property> 
    52                       <property name="yalign">0.5</property> 
    53                       <property name="xpad">0</property> 
    54                       <property name="ypad">0</property> 
    55                     </widget> 
    56                   </child> 
    57  
    58                   <child> 
    59                     <widget class="GtkMenu" id="gajim_menu_menu"> 
    60  
    61                       <child> 
    62                         <widget class="GtkImageMenuItem" id="preferences"> 
     45                      <property name="label" translatable="yes">_New Message</property> 
     46                      <property name="use_underline">True</property> 
     47                      <signal name="activate" handler="on_new_message_mni_activate" last_modification_time="Mon, 28 Feb 2005 00:31:12 GMT"/> 
     48                      <accelerator key="N" modifiers="GDK_CONTROL_MASK" signal="activate"/> 
     49 
     50                      <child internal-child="image"> 
     51                        <widget class="GtkImage" id="image287"> 
    6352                          <property name="visible">True</property> 
    64                           <property name="label" translatable="yes">_Preferences</property> 
    65                           <property name="use_underline">True</property> 
    66                           <signal name="activate" handler="on_preferences_activate" last_modification_time="Wed, 22 Oct 2003 21:18:29 GMT"/> 
    67                           <accelerator key="P" modifiers="GDK_CONTROL_MASK" signal="activate"/> 
    68  
    69                           <child internal-child="image"> 
    70                             <widget class="GtkImage" id="image193"> 
    71                               <property name="visible">True</property> 
    72                               <property name="stock">gtk-preferences</property> 
    73                               <property name="icon_size">1</property> 
    74                               <property name="xalign">0.5</property> 
    75                               <property name="yalign">0.5</property> 
    76                               <property name="xpad">0</property> 
    77                               <property name="ypad">0</property> 
    78                             </widget> 
    79                           </child> 
    80                         </widget> 
    81                       </child> 
    82  
    83                       <child> 
    84                         <widget class="GtkImageMenuItem" id="accounts"> 
    85                           <property name="visible">True</property> 
    86                           <property name="label" translatable="yes">A_ccounts</property> 
    87                           <property name="use_underline">True</property> 
    88                           <signal name="activate" handler="on_accounts_activate" last_modification_time="Wed, 22 Oct 2003 21:18:21 GMT"/> 
    89                           <accelerator key="A" modifiers="GDK_CONTROL_MASK" signal="activate"/> 
    90  
    91                           <child internal-child="image"> 
    92                             <widget class="GtkImage" id="image194"> 
    93                               <property name="visible">True</property> 
    94                               <property name="stock">gtk-select-color</property> 
    95                               <property name="icon_size">1</property> 
    96                               <property name="xalign">0.5</property> 
    97                               <property name="yalign">0.5</property> 
    98                               <property name="xpad">0</property> 
    99                               <property name="ypad">0</property> 
    100                             </widget> 
    101                           </child> 
    102                         </widget> 
    103                       </child> 
    104  
    105                       <child> 
    106                         <widget class="GtkImageMenuItem" id="browse_agents"> 
    107                           <property name="visible">True</property> 
    108                           <property name="label" translatable="yes">_Browse agents</property> 
    109                           <property name="use_underline">True</property> 
    110                           <signal name="activate" handler="on_browse_agents_activate" last_modification_time="Wed, 12 Nov 2003 10:50:33 GMT"/> 
    111  
    112                           <child internal-child="image"> 
    113                             <widget class="GtkImage" id="image195"> 
    114                               <property name="visible">True</property> 
    115                               <property name="stock">gtk-find</property> 
    116                               <property name="icon_size">1</property> 
    117                               <property name="xalign">0.5</property> 
    118                               <property name="yalign">0.5</property> 
    119                               <property name="xpad">0</property> 
    120                               <property name="ypad">0</property> 
    121                             </widget> 
    122                           </child> 
    123                         </widget> 
    124                       </child> 
    125  
    126                       <child> 
    127                         <widget class="GtkSeparatorMenuItem" id="separatormenuitem1"> 
    128                           <property name="visible">True</property> 
    129                         </widget> 
    130                       </child> 
    131  
    132                       <child> 
    133                         <widget class="GtkImageMenuItem" id="add"> 
    134                           <property name="visible">True</property> 
    135                           <property name="label" translatable="yes">Add</property> 
    136                           <property name="use_underline">True</property> 
    137  
    138                           <child internal-child="image"> 
    139                             <widget class="GtkImage" id="image196"> 
    140                               <property name="visible">True</property> 
    141                               <property name="stock">gtk-add</property> 
    142                               <property name="icon_size">1</property> 
    143                               <property name="xalign">0.5</property> 
    144                               <property name="yalign">0.5</property> 
    145                               <property name="xpad">0</property> 
    146                               <property name="ypad">0</property> 
    147                             </widget> 
    148                           </child> 
    149                         </widget> 
    150                       </child> 
    151  
    152                       <child> 
    153                         <widget class="GtkCheckMenuItem" id="show_offline"> 
    154                           <property name="visible">True</property> 
    155                           <property name="label" translatable="yes">Show Offline</property> 
    156                           <property name="use_underline">True</property> 
    157                           <property name="active">False</property> 
    158                           <signal name="activate" handler="on_show_offline_activate" last_modification_time="Wed, 31 Dec 2003 09:49:15 GMT"/> 
    159                           <accelerator key="O" modifiers="GDK_CONTROL_MASK" signal="activate"/> 
    160                         </widget> 
    161                       </child> 
    162  
    163                       <child> 
    164                         <widget class="GtkMenuItem" id="join_gc"> 
    165                           <property name="visible">True</property> 
    166                           <property name="label" translatable="yes">_Join Groupchat</property> 
    167                           <property name="use_underline">True</property> 
    168                           <signal name="activate" handler="on_join_gc_activate" last_modification_time="Tue, 03 Aug 2004 22:15:03 GMT"/> 
    169                         </widget> 
    170                       </child> 
    171  
    172                       <child> 
    173                         <widget class="GtkSeparatorMenuItem" id="separator1"> 
    174                           <property name="visible">True</property> 
    175                         </widget> 
    176                       </child> 
    177  
    178                       <child> 
    179                         <widget class="GtkImageMenuItem" id="about"> 
    180                           <property name="visible">True</property> 
    181                           <property name="label" translatable="yes">_About</property> 
    182                           <property name="use_underline">True</property> 
    183                           <signal name="activate" handler="on_about_activate" last_modification_time="Fri, 03 Oct 2003 12:49:50 GMT"/> 
    184  
    185                           <child internal-child="image"> 
    186                             <widget class="GtkImage" id="image197"> 
    187                               <property name="visible">True</property> 
    188                               <property name="stock">gtk-help</property> 
    189                               <property name="icon_size">1</property> 
    190                               <property name="xalign">0.5</property> 
    191                               <property name="yalign">0.5</property> 
    192                               <property name="xpad">0</property> 
    193                               <property name="ypad">0</property> 
    194                             </widget> 
    195                           </child> 
    196                         </widget> 
    197                       </child> 
    198  
    199                       <child> 
    200                         <widget class="GtkImageMenuItem" id="quit"> 
    201                           <property name="visible">True</property> 
    202                           <property name="label" translatable="yes">_Quit</property> 
    203                           <property name="use_underline">True</property> 
    204                           <signal name="activate" handler="on_quit_activate" last_modification_time="Fri, 03 Oct 2003 12:49:50 GMT"/> 
    205                           <accelerator key="Q" modifiers="GDK_CONTROL_MASK" signal="activate"/> 
    206  
    207                           <child internal-child="image"> 
    208                             <widget class="GtkImage" id="image198"> 
    209                               <property name="visible">True</property> 
    210                               <property name="stock">gtk-quit</property> 
    211                               <property name="icon_size">1</property> 
    212                               <property name="xalign">0.5</property> 
    213                               <property name="yalign">0.5</property> 
    214                               <property name="xpad">0</property> 
    215                               <property name="ypad">0</property> 
    216                             </widget> 
    217                           </child> 
     53                          <property name="stock">gtk-new</property> 
     54                          <property name="icon_size">1</property> 
     55                          <property name="xalign">0.5</property> 
     56                          <property name="yalign">0.5</property> 
     57                          <property name="xpad">0</property> 
     58                          <property name="ypad">0</property> 
    21859                        </widget> 
    21960                      </child> 
    22061                    </widget> 
    22162                  </child> 
     63 
     64                  <child> 
     65                    <widget class="GtkMenuItem" id="join_gc"> 
     66                      <property name="visible">True</property> 
     67                      <property name="label" translatable="yes">_Join Groupchat</property> 
     68                      <property name="use_underline">True</property> 
     69                      <signal name="activate" handler="on_join_gc_activate" last_modification_time="Tue, 03 Aug 2004 22:15:03 GMT"/> 
     70                    </widget> 
     71                  </child> 
     72 
     73                  <child> 
     74                    <widget class="GtkSeparatorMenuItem" id="separatormenuitem1"> 
     75                      <property name="visible">True</property> 
     76                    </widget> 
     77                  </child> 
     78 
     79                  <child> 
     80                    <widget class="GtkImageMenuItem" id="add"> 
     81                      <property name="visible">True</property> 
     82                      <property name="label" translatable="yes">Add Contact</property> 
     83                      <property name="use_underline">True</property> 
     84 
     85                      <child internal-child="image"> 
     86                        <widget class="GtkImage" id="image288"> 
     87                          <property name="visible">True</property> 
     88                          <property name="stock">gtk-add</property> 
     89                          <property name="icon_size">1</property> 
     90                          <property name="xalign">0.5</property> 
     91                          <property name="yalign">0.5</property> 
     92                          <property name="xpad">0</property> 
     93                          <property name="ypad">0</property> 
     94                        </widget> 
     95                      </child> 
     96                    </widget> 
     97                  </child> 
     98 
     99                  <child> 
     100                    <widget class="GtkCheckMenuItem" id="show_offline"> 
     101                      <property name="visible">True</property> 
     102                      <property name="label" translatable="yes">Show Offline</property> 
     103                      <property name="use_underline">True</property> 
     104                      <property name="active">False</property> 
     105                      <signal name="activate" handler="on_show_offline_activate" last_modification_time="Wed, 31 Dec 2003 09:49:15 GMT"/> 
     106                      <accelerator key="O" modifiers="GDK_CONTROL_MASK" signal="activate"/> 
     107                    </widget> 
     108                  </child> 
     109 
     110                  <child> 
     111                    <widget class="GtkSeparatorMenuItem" id="separator1"> 
     112                      <property name="visible">True</property> 
     113                    </widget> 
     114                  </child> 
     115 
     116                  <child> 
     117                    <widget class="GtkImageMenuItem" id="quit"> 
     118                      <property name="visible">True</property> 
     119                      <property name="label" translatable="yes">_Quit</property> 
     120                      <property name="use_underline">True</property> 
     121                      <signal name="activate" handler="on_quit_activate" last_modification_time="Fri, 03 Oct 2003 12:49:50 GMT"/> 
     122                      <accelerator key="Q" modifiers="GDK_CONTROL_MASK" signal="activate"/> 
     123 
     124                      <child internal-child="image"> 
     125                        <widget class="GtkImage" id="image289"> 
     126                          <property name="visible">True</property> 
     127                          <property name="stock">gtk-quit</property> 
     128                          <property name="icon_size">1</property> 
     129                          <property name="xalign">0.5</property> 
     130                          <property name="yalign">0.5</property> 
     131                          <property name="xpad">0</property> 
     132                          <property name="ypad">0</property> 
     133                        </widget> 
     134                      </child> 
     135                    </widget> 
     136                  </child> 
     137                </widget> 
     138              </child> 
     139            </widget> 
     140          </child> 
     141 
     142          <child> 
     143            <widget class="GtkMenuItem" id="edit"> 
     144              <property name="visible">True</property> 
     145              <property name="label" translatable="yes">_Edit</property> 
     146              <property name="use_underline">True</property> 
     147 
     148              <child> 
     149                <widget class="GtkMenu" id="edit_menu"> 
     150 
     151                  <child> 
     152                    <widget class="GtkImageMenuItem" id="accounts"> 
     153                      <property name="visible">True</property> 
     154                      <property name="label" translatable="yes">A_ccounts</property> 
     155                      <property name="use_underline">True</property> 
     156                      <signal name="activate" handler="on_accounts_activate" last_modification_time="Wed, 22 Oct 2003 21:18:21 GMT"/> 
     157                      <accelerator key="A" modifiers="GDK_CONTROL_MASK" signal="activate"/> 
     158 
     159                      <child internal-child="image"> 
     160                        <widget class="GtkImage" id="image290"> 
     161                          <property name="visible">True</property> 
     162                          <property name="stock">gtk-select-color</property> 
     163                          <property name="icon_size">1</property> 
     164                          <property name="xalign">0.5</property> 
     165                          <property name="yalign">0.5</property> 
     166                          <property name="xpad">0</property> 
     167                          <property name="ypad">0</property> 
     168                        </widget> 
     169                      </child> 
     170                    </widget> 
     171                  </child> 
     172 
     173                  <child> 
     174                    <widget class="GtkImageMenuItem" id="browse_agents"> 
     175                      <property name="visible">True</property> 
     176                      <property name="label" translatable="yes">_Browse Agents</property> 
     177                      <property name="use_underline">True</property> 
     178                      <signal name="activate" handler="on_browse_agents_activate" last_modification_time="Wed, 12 Nov 2003 10:50:33 GMT"/> 
     179 
     180                      <child internal-child="image"> 
     181                        <widget class="GtkImage" id="image291"> 
     182                          <property name="visible">True</property> 
     183                          <property name="stock">gtk-find</property> 
     184                          <property name="icon_size">1</property> 
     185                          <property name="xalign">0.5</property> 
     186                          <property name="yalign">0.5</property> 
     187                          <property name="xpad">0</property> 
     188                          <property name="ypad">0</property> 
     189                        </widget> 
     190                      </child> 
     191                    </widget> 
     192                  </child> 
     193 
     194                  <child> 
     195                    <widget class="GtkImageMenuItem" id="preferences"> 
     196                      <property name="visible">True</property> 
     197                      <property name="label" translatable="yes">_Preferences</property> 
     198                      <property name="use_underline">True</property> 
     199                      <signal name="activate" handler="on_preferences_activate" last_modification_time="Wed, 22 Oct 2003 21:18:29 GMT"/> 
     200                      <accelerator key="P" modifiers="GDK_CONTROL_MASK" signal="activate"/> 
     201 
     202                      <child internal-child="image"> 
     203                        <widget class="GtkImage" id="image292"> 
     204                          <property name="visible">True</property> 
     205                          <property name="stock">gtk-preferences</property> 
     206                          <property name="icon_size">1</property> 
     207                          <property name="xalign">0.5</property> 
     208                          <property name="yalign">0.5</property> 
     209                          <property name="xpad">0</property> 
     210                          <property name="ypad">0</property> 
     211                        </widget> 
     212                      </child> 
     213                    </widget> 
     214                  </child> 
     215                </widget> 
     216              </child> 
     217            </widget> 
     218          </child> 
     219 
     220          <child> 
     221            <widget class="GtkMenuItem" id="help"> 
     222              <property name="visible">True</property> 
     223              <property name="label" translatable="yes">_Help</property> 
     224              <property name="use_underline">True</property> 
     225 
     226              <child> 
     227                <widget class="GtkMenu" id="help_menu"> 
     228 
     229                  <child> 
     230                    <widget class="GtkImageMenuItem" id="about"> 
     231                      <property name="visible">True</property> 
     232                      <property name="label" translatable="yes">_About</property> 
     233                      <property name="use_underline">True</property> 
     234                      <signal name="activate" handler="on_about_activate" last_modification_time="Fri, 03 Oct 2003 12:49:50 GMT"/> 
     235 
     236                      <child internal-child="image"> 
     237                        <widget class="GtkImage" id="image293"> 
     238                          <property name="visible">True</property> 
     239                          <property name="stock">gtk-about</property> 
     240                          <property name="icon_size">1</property> 
     241                          <property name="xalign">0.5</property> 
     242                          <property name="yalign">0.5</property> 
     243                          <property name="xpad">0</property> 
     244                          <property name="ypad">0</property> 
     245                        </widget> 
     246                      </child> 
     247                    </widget> 
     248                  </child> 
    222249                </widget> 
    223250              </child> 
     
    228255          <property name="padding">0</property> 
    229256          <property name="expand">False</property> 
    230           <property name="fill">True</property> 
     257          <property name="fill">False</property> 
    231258        </packing> 
    232259      </child> 
     
    510537                  <property name="height_request">0</property> 
    511538                  <property name="visible">True</property> 
     539                  <property name="tooltip" translatable="yes">Click to see contact's information</property> 
    512540                  <property name="can_focus">True</property> 
    513541                  <property name="label" translatable="yes">Anonymous &lt;id@server/res&gt;</property> 
     
    15631591                                  <property name="visible">True</property> 
    15641592                                  <property name="can_focus">True</property> 
    1565                                   <property name="label" translatable="yes">Save passphrase (DANGEROUS)</property> 
     1593                                  <property name="label" translatable="yes">Save passphrase (insecure)</property> 
    15661594                                  <property name="use_underline">True</property> 
    15671595                                  <property name="relief">GTK_RELIEF_NORMAL</property> 
     
    19912019                <widget class="GtkLabel" id="label87"> 
    19922020                  <property name="visible">True</property> 
    1993                   <property name="label" translatable="yes">Informations about you are stored 
    1994 on the server.</property> 
     2021                  <property name="label" translatable="yes">Information about you are stored 
     2022on the server as a vCard</property> 
    19952023                  <property name="use_underline">False</property> 
    19962024                  <property name="use_markup">False</property> 
     
    21572185  <property name="border_width">5</property> 
    21582186  <property name="width_request">400</property> 
    2159   <property name="height_request">270</property> 
     2187  <property name="height_request">334</property> 
    21602188  <property name="visible">True</property> 
    21612189  <property name="title" translatable="yes">Add user</property> 
     
    21812209          <property name="visible">True</property> 
    21822210          <property name="n_rows">5</property> 
    2183           <property name="n_columns">3</property> 
     2211          <property name="n_columns">2</property> 
    21842212          <property name="homogeneous">False</property> 
    21852213          <property name="row_spacing">5</property> 
     
    21872215 
    21882216          <child> 
    2189             <widget class="GtkEntry" id="entry_login"> 
     2217            <widget class="GtkCheckButton" id="checkbutton_auth"> 
    21902218              <property name="visible">True</property> 
    21912219              <property name="can_focus">True</property> 
    2192               <property name="editable">True</property> 
    2193               <property name="visibility">True</property> 
    2194               <property name="max_length">0</property> 
    2195               <property name="text" translatable="yes"></property> 
    2196               <property name="has_frame">True</property> 
    2197               <property name="invisible_char">*</property> 
    2198               <property name="activates_default">False</property> 
    2199               <signal name="changed" handler="on_entry_login_changed" last_modification_time="Wed, 02 Feb 2005 22:34:32 GMT"/> 
     2220              <property name="label" translatable="yes">Automatically authorize contact</property> 
     2221              <property name="use_underline">True</property> 
     2222              <property name="relief">GTK_RELIEF_NORMAL</property> 
     2223              <property name="focus_on_click">True</property> 
     2224              <property name="active">True</property> 
     2225              <property name="inconsistent">False</property> 
     2226              <property name="draw_indicator">True</property> 
    22002227            </widget> 
    22012228            <packing> 
    2202               <property name="left_attach">2</property> 
    2203               <property name="right_attach">3</property> 
    2204               <property name="top_attach">0</property> 
    2205               <property name="bottom_attach">1</property> 
    2206               <property name="y_options"></property> 
    2207             </packing> 
    2208           </child> 
    2209  
    2210           <child> 
    2211             <widget class="GtkEntry" id="entry_who"> 
    2212               <property name="visible">True</property> 
    2213               <property name="can_focus">True</property> 
    2214               <property name="editable">False</property> 
    2215               <property name="visibility">True</property> 
    2216               <property name="max_length">0</property> 
    2217               <property name="text" translatable="yes"></property> 
    2218               <property name="has_frame">True</property> 
    2219               <property name="invisible_char">*</property> 
    2220               <property name="activates_default">False</property> 
    2221             </widget> 
    2222             <packing> 
    2223               <property name="left_attach">2</property> 
    2224               <property name="right_attach">3</property> 
    2225               <property name="top_attach">2</property> 
    2226               <property name="bottom_attach">3</property> 
     2229              <property name="left_attach">1</property> 
     2230              <property name="right_attach">2</property> 
     2231              <property name="top_attach">4</property> 
     2232              <property name="bottom_attach">5</property> 
     2233              <property name="x_options">fill</property> 
    22272234              <property name="y_options"></property> 
    22282235            </packing> 
     
    22442251            </widget> 
    22452252            <packing> 
    2246               <property name="left_attach">1</property> 
    2247               <property name="right_attach">2</property> 
     2253              <property name="left_attach">0</property> 
     2254              <property name="right_attach">1</property> 
    22482255              <property name="top_attach">0</property> 
    22492256              <property name="bottom_attach">1</property> 
     
    22682275            </widget> 
    22692276            <packing> </