Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tractor
carburetor
Commits
3f951b6f
Commit
3f951b6f
authored
Oct 07, 2019
by
Danial Behzadi
Browse files
v2.8
parent
712428cf
Changes
4
Hide whitespace changes
Inline
Side-by-side
carburetor
View file @
3f951b6f
...
...
@@ -4,11 +4,9 @@
from
distutils.util
import
strtobool
import
gi
gi
.
require_version
(
'Gtk'
,
'3.0'
)
gi
.
require_version
(
'Gdk'
,
'3.0'
)
from
gi.repository
import
Gdk
,
Gio
,
Gtk
,
GLib
gi
.
require_versions
({
'Gdk'
:
'3.0'
,
'Gtk'
:
'3.0'
,
'Notify'
:
'0.7'
})
from
gi.repository
import
Gdk
,
Gio
,
Gtk
,
GLib
,
Notify
import
gettext
import
notify2
import
os
import
re
import
signal
...
...
@@ -26,7 +24,7 @@ locale_dir = s_data_dir+"/locales"
translate
=
gettext
.
translation
(
'messages'
,
localedir
=
locale_dir
,
fallback
=
True
)
_
=
translate
.
gettext
app_name
=
_
(
"Carburetor"
)
n
otify
2
.
init
(
app_name
)
N
otify
.
init
(
app_name
)
class
ToolButton
(
Gtk
.
ToolButton
):
...
...
@@ -79,8 +77,8 @@ class StartButton(ToolButton):
self
.
show_all
()
def
notify
(
self
):
notif
=
n
otify
2
.
Notification
(
app_name
,
self
.
notification
)
notif
.
set_timeout
(
n
otify
2
.
EXPIRES_DEFAULT
)
notif
=
N
otify
.
Notification
.
new
(
app_name
,
self
.
notification
)
notif
.
set_timeout
(
N
otify
.
EXPIRES_DEFAULT
)
notif
.
show
()
def
update_label
(
self
):
...
...
@@ -148,8 +146,9 @@ class ProgressBar(Gtk.ProgressBar):
Gtk
.
ProgressBar
.
__init__
(
self
)
def
set_progress
(
self
,
percentage
):
fraction
=
float
(
percentage
)
/
100
self
.
set_fraction
(
fraction
)
if
isinstance
(
percentage
,
int
):
fraction
=
float
(
percentage
)
/
100
self
.
set_fraction
(
fraction
)
class
StopButton
(
Gtk
.
Button
):
def
__init__
(
self
):
...
...
@@ -247,10 +246,10 @@ class NewidButton(ToolButton):
if
self
.
is_running
():
newid
=
Popen
(
command
+
"newid"
,
stdout
=
PIPE
,
shell
=
True
)
newid
.
wait
()
notif
=
notify
2
.
Notification
(
app_name
,
_
(
"You have a new identity!"
))
notif
=
notify
.
Notification
.
new
(
app_name
,
_
(
"You have a new identity!"
))
else
:
notif
=
notify
2
.
Notification
(
app_name
,
_
(
"Tractor is not running!"
))
notif
.
set_timeout
(
notify
2
.
EXPIRES_DEFAULT
)
notif
=
notify
.
Notification
.
new
(
app_name
,
_
(
"Tractor is not running!"
))
notif
.
set_timeout
(
notify
.
EXPIRES_DEFAULT
)
notif
.
show
()
...
...
debian/changelog
View file @
3f951b6f
carburetor (2.8-1) bionic; urgency=medium
* use internal gi notification
* fix a bug in setting progress button
-- Danial Behzadi <dani.behzi@ubuntu.com> Mon, 07 Oct 2019 18:35:00 +0330
carburetor (2.7-1) bionic; urgency=medium
* add http tunnel port
...
...
debian/control
View file @
3f951b6f
...
...
@@ -7,7 +7,7 @@ Build-Depends: debhelper (>=9)
Package: carburetor
Architecture: all
Depends: ${shlibs:Depends}, ${misc:Depends}, tractor (>=2.4-0~), python3, python3-gi(>=3.10.2), python3-gi-cairo, gir1.2-gtk-3.0, python3-distutils
, python3-notify2
Depends: ${shlibs:Depends}, ${misc:Depends}, tractor (>=2.4-0~), python3, python3-gi(>=3.10.2), python3-gi-cairo, gir1.2-gtk-3.0, python3-distutils
Description: Settings app for Tractor
This package is a graphical settings for tractor
which is an app using Python stem to provide
...
...
locales/messages.pot
View file @
3f951b6f
...
...
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-0
7
-0
9
1
3
:3
8
+0
4
30\n"
"POT-Creation-Date: 2019-
1
0-0
7
1
8
:3
5
+0
3
30\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
...
...
@@ -17,232 +17,232 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: carburetor:2
8
#: carburetor:2
6
msgid "Carburetor"
msgstr ""
#: carburetor:4
7
#: carburetor:4
5
msgid "Stop"
msgstr ""
#: carburetor:6
2
#: carburetor:6
0
msgid "Tractor is running"
msgstr ""
#: carburetor:6
5
#: carburetor:6
3
msgid "Start"
msgstr ""
#: carburetor:
70
#: carburetor:
68
msgid "Tractor is stopped"
msgstr ""
#: carburetor:11
5
#: carburetor:11
3
msgid "stopping…"
msgstr ""
#: carburetor:1
2
1
#: carburetor:11
9
msgid "starting…"
msgstr ""
#: carburetor:21
2
#: carburetor:21
1
msgid "Unset Proxy"
msgstr ""
#: carburetor:21
7
#: carburetor:21
6
msgid "Set Proxy"
msgstr ""
#: carburetor:2
40
#: carburetor:2
39
msgid "New ID"
msgstr ""
#: carburetor:2
50
#: carburetor:2
49
msgid "You have a new identity!"
msgstr ""
#: carburetor:25
2
#: carburetor:25
1
msgid "Tractor is not running!"
msgstr ""
#: carburetor:26
2
#: carburetor:26
1
msgid "Settings for Tractor"
msgstr ""
#: carburetor:28
8
#: carburetor:28
7
msgid "Austria"
msgstr ""
#: carburetor:28
9
#: carburetor:28
8
msgid "Bulgaria"
msgstr ""
#: carburetor:29
0
#: carburetor:2
8
9
msgid "Canada"
msgstr ""
#: carburetor:29
1
#: carburetor:29
0
msgid "Czech"
msgstr ""
#: carburetor:29
2
#: carburetor:29
1
msgid "Finland"
msgstr ""
#: carburetor:29
3
#: carburetor:29
2
msgid "France"
msgstr ""
#: carburetor:29
4
#: carburetor:29
3
msgid "Germany"
msgstr ""
#: carburetor:29
5
#: carburetor:29
4
msgid "Ireland"
msgstr ""
#: carburetor:29
6
#: carburetor:29
5
msgid "Moldova"
msgstr ""
#: carburetor:29
7
#: carburetor:29
6
msgid "Netherlands"
msgstr ""
#: carburetor:29
8
#: carburetor:29
7
msgid "Norway"
msgstr ""
#: carburetor:29
9
#: carburetor:29
8
msgid "Poland"
msgstr ""
#: carburetor:
300
#: carburetor:
299
msgid "Romania"
msgstr ""
#: carburetor:30
1
#: carburetor:30
0
msgid "Russia"
msgstr ""
#: carburetor:30
2
#: carburetor:30
1
msgid "Seychelles"
msgstr ""
#: carburetor:30
3
#: carburetor:30
2
msgid "Singapore"
msgstr ""
#: carburetor:30
4
#: carburetor:30
3
msgid "Spain"
msgstr ""
#: carburetor:30
5
#: carburetor:30
4
msgid "Sweden"
msgstr ""
#: carburetor:30
6
#: carburetor:30
5
msgid "Switzerland"
msgstr ""
#: carburetor:30
7
#: carburetor:30
6
msgid "Ukraine"
msgstr ""
#: carburetor:30
8
#: carburetor:30
7
msgid "United Kingdom"
msgstr ""
#: carburetor:30
9
#: carburetor:30
8
msgid "United States"
msgstr ""
#: carburetor:31
8
#: carburetor:31
7
msgid "<b>Exit node</b>"
msgstr ""
#: carburetor:32
2
#: carburetor:32
1
msgid "<small>The country you want to connect from</small>"
msgstr ""
#: carburetor:3
30
#: carburetor:3
29
msgid "Auto (Best)"
msgstr ""
#: carburetor:34
7
#: carburetor:34
6
msgid "<b>Socks Port</b>"
msgstr ""
#: carburetor:35
1
#: carburetor:35
0
msgid "<small>Local port on which Tractor would be listen</small>"
msgstr ""
#: carburetor:37
5
#: carburetor:37
4
msgid "<b>DNS Port</b>"
msgstr ""
#: carburetor:37
9
#: carburetor:37
8
msgid ""
"<small>Local port on which you would have an anonymous name server</small>"
msgstr ""
#: carburetor:40
3
#: carburetor:40
2
msgid "<b>HTTP Tunnel Port</b>"
msgstr ""
#: carburetor:40
7
#: carburetor:40
6
msgid "<small>Local port on which a HTTP tunnel would be listen</small>"
msgstr ""
#: carburetor:43
1
#: carburetor:43
0
msgid "<b>Accept connection</b>"
msgstr ""
#: carburetor:43
5
#: carburetor:43
4
msgid ""
"<small>Whether or not allowing external devices to use this network</small>"
msgstr ""
#: carburetor:45
5
#: carburetor:45
4
msgid "<b>Use bridges</b>"
msgstr ""
#: carburetor:45
9
#: carburetor:45
8
msgid "<small>Bridges help you to bypass tor sensorship</small>"
msgstr ""
#: carburetor:47
9
#: carburetor:47
8
msgid "Bridges:"
msgstr ""
#: carburetor:
500
#: carburetor:
499
msgid "Save"
msgstr ""
#: carburetor:51
3
#: carburetor:51
2
msgid "Can not save the bridges"
msgstr ""
#: carburetor:51
4
#: carburetor:51
3
msgid "Please check the syntax of bridges"
msgstr ""
#: carburetor:52
9
#: carburetor:52
8
msgid "<b>obfs4proxy executable</b>"
msgstr ""
#: carburetor:53
3
#: carburetor:53
2
msgid "<small>You should specify where is obfs4proxy file</small>"
msgstr ""
#: carburetor:5
60
#: carburetor:5
59
msgid "General"
msgstr ""
#: carburetor:56
1
#: carburetor:56
0
msgid "Ports"
msgstr ""
#: carburetor:56
2
#: carburetor:56
1
msgid "Bridges"
msgstr ""
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment