~ubuntu-branches/ubuntu/natty/transmission/natty

« back to all changes in this revision

Viewing changes to gtk/actions.c

  • Committer: Bazaar Package Importer
  • Author(s): Krzysztof Klimonda
  • Date: 2009-12-08 10:49:11 UTC
  • mfrom: (1.1.29 upstream) (2.1.10 sid)
  • Revision ID: james.westby@ubuntu.com-20091208104911-06gio45n2nla3vpg
Tags: 1.80~b1-0ubuntu1
* New upstream release (LP: #460620), rebased on debian unstable
  remaining changes:
  - debian/control:
    + Added replaces & provides clutch (now included as part of transmission).
      Can be removed in lucid+1
    + Added quilt, liblaunchpad-integration-dev and lsb-release to Build-Depends
  - debian/rules:
    + create a po template during package build.
  - debian/patches/01_lpi.patch:
    + integrate transmission with launchpad
  - debian/patches/20_add_x-ubuntu-gettext-domain.diff:
    + add x-ubuntu-gettext-domain to .desktop file.
  - debian/transmission-daemon.default:
    - remove --auth from OPTIONS
* Fixes bugs:
  - tray menu shows wrong status for "main window" when started minimized
    (LP: #451415)
* Refreshed patches:
  - dont_build_libevent.patch
  - 99_autoreconf.patch
* Removed patches:
  - 21_onPortTested.diff, 23_tr_torrentNext.diff and
    24_tr_torrentDeleteLocalData_do_move.diff
* debian/patches/21_fix_inhibition.patch:
  - The right value for suspend inhibition is 4
* debian/control:
  - Build-Depend on libgconf2-dev to enable magnet link registration and on
    libcanberra-gtk-dev for notification sound.
* debian/watch:
  - make it detect beta versions, to be removed after 1.80 is released.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * This file Copyright (C) 2007-2009 Charles Kerr <charles@transmissionbt.com>
 
2
 * This file Copyright (C) 2007-2009 Mnemosyne LLC
3
3
 *
4
4
 * This file is licensed by the GPL version 2.  Works owned by the
5
5
 * Transmission project are granted a special exemption to clause 2(b)
7
7
 * This exemption does not extend to derived works not owned by
8
8
 * the Transmission project.
9
9
 *
10
 
 * $Id: actions.c 9093 2009-09-10 17:39:44Z charles $
 
10
 * $Id: actions.c 9671 2009-12-05 02:19:24Z charles $
11
11
 */
12
12
 
13
13
#include <string.h>
 
14
 
14
15
#include <glib/gi18n.h>
15
16
#include <gtk/gtk.h>
 
17
 
16
18
#include <libtransmission/transmission.h>
 
19
 
17
20
#include "actions.h"
18
21
#include "conf.h"
19
22
#include "tr-core.h"
20
23
#include "tr-prefs.h"
21
24
#include "lock.h"
 
25
 
22
26
#include "logo.h"
 
27
#include "ratio-icon.h"
23
28
#include "options-icon.h"
24
29
#include "turtles.h"
25
30
 
97
102
 
98
103
static GtkActionEntry entries[] =
99
104
{
 
105
    { "file-menu", NULL, N_( "_File" ), NULL, NULL, NULL  },
100
106
    { "torrent-menu", NULL, N_( "_Torrent" ), NULL, NULL, NULL  },
101
107
    { "view-menu", NULL, N_( "_View" ), NULL, NULL, NULL  },
102
108
    { "sort-menu", NULL, N_( "_Sort Torrents By" ), NULL, NULL, NULL },
103
109
    { "edit-menu", NULL, N_( "_Edit" ), NULL, NULL, NULL },
104
110
    { "help-menu", NULL, N_( "_Help" ), NULL, NULL, NULL },
 
111
    { "copy-magnet-link-to-clipboard",  GTK_STOCK_COPY, N_("Copy _Magnet Link to Clipboard" ), "<control>M", NULL,  G_CALLBACK( action_cb ) },
 
112
    { "add-torrent-from-url",  GTK_STOCK_ADD, N_("Add _URL..." ), NULL, N_( "Add URL..." ),  G_CALLBACK( action_cb ) },
105
113
    { "add-torrent-toolbar",  GTK_STOCK_ADD, NULL, NULL, N_( "Add a torrent" ),  G_CALLBACK( action_cb ) },
106
 
    { "add-torrent-menu", GTK_STOCK_ADD, N_( "_Add..." ), "<control>D", N_( "Add a torrent" ), G_CALLBACK( action_cb ) },
 
114
    { "add-torrent-menu", GTK_STOCK_ADD, N_( "_Add File..." ), "<control>D", N_( "Add a torrent" ), G_CALLBACK( action_cb ) },
107
115
    { "start-torrent", GTK_STOCK_MEDIA_PLAY, N_( "_Start" ), "<control>S", N_( "Start torrent" ), G_CALLBACK( action_cb ) },
108
116
    { "show-stats", NULL, N_( "_Statistics" ), NULL, NULL, G_CALLBACK( action_cb ) },
109
117
    { "donate", NULL, N_( "_Donate" ), NULL, NULL, G_CALLBACK( action_cb ) },
110
 
    { "verify-torrent", NULL, N_( "_Verify Local Data" ), NULL, NULL, G_CALLBACK( action_cb ) },
 
118
    { "verify-torrent", NULL, N_( "_Verify Local Data" ), "<control>V", NULL, G_CALLBACK( action_cb ) },
111
119
    { "pause-torrent", GTK_STOCK_MEDIA_PAUSE, N_( "_Pause" ), "<control>P", N_( "Pause torrent" ), G_CALLBACK( action_cb ) },
112
120
    { "pause-all-torrents", GTK_STOCK_MEDIA_PAUSE, N_( "_Pause All" ), NULL, N_( "Pause all torrents" ), G_CALLBACK( action_cb ) },
113
121
    { "start-all-torrents", GTK_STOCK_MEDIA_PLAY, N_( "_Start All" ), NULL, N_( "Start all torrents" ), G_CALLBACK( action_cb ) },
140
148
    { tr_icon_lock, "transmission-lock" },
141
149
    { options_icon, "options"           },
142
150
    { blue_turtle,  "alt-speed-on"      },
143
 
    { grey_turtle,  "alt-speed-off"     }
 
151
    { grey_turtle,  "alt-speed-off"     },
 
152
    { ratio_icon,   "ratio"             }
144
153
};
145
154
 
146
155
static void