Skip to content

Commit 93a01c4

Browse files
committed
v3.0.0a1: mastodon support [wip]
1 parent ed4d104 commit 93a01c4

File tree

4 files changed

+358
-88
lines changed

4 files changed

+358
-88
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ __pycache__/
33
*.py[cod]
44
*$py.class
55

6+
# Temporary editor files
7+
*~
8+
69
# C extensions
710
*.so
811

sayminimal/twitters.glade sayminimal/fusion.glade

+120-10
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,89 @@
234234
<placeholder/>
235235
</child>
236236
</object>
237+
<object class="GtkDialog" id="instance_dialog">
238+
<property name="width_request">200</property>
239+
<property name="can_focus">False</property>
240+
<property name="type_hint">dialog</property>
241+
<child internal-child="vbox">
242+
<object class="GtkBox">
243+
<property name="can_focus">False</property>
244+
<property name="orientation">vertical</property>
245+
<property name="spacing">2</property>
246+
<child internal-child="action_area">
247+
<object class="GtkButtonBox">
248+
<property name="can_focus">False</property>
249+
<property name="layout_style">end</property>
250+
<child>
251+
<object class="GtkButton" id="pin_cancel1">
252+
<property name="label">gtk-cancel</property>
253+
<property name="visible">True</property>
254+
<property name="can_focus">True</property>
255+
<property name="receives_default">True</property>
256+
<property name="use_stock">True</property>
257+
</object>
258+
<packing>
259+
<property name="expand">True</property>
260+
<property name="fill">True</property>
261+
<property name="position">0</property>
262+
</packing>
263+
</child>
264+
<child>
265+
<object class="GtkButton" id="pin_ok1">
266+
<property name="label">gtk-ok</property>
267+
<property name="visible">True</property>
268+
<property name="can_focus">True</property>
269+
<property name="receives_default">True</property>
270+
<property name="use_stock">True</property>
271+
</object>
272+
<packing>
273+
<property name="expand">True</property>
274+
<property name="fill">True</property>
275+
<property name="position">1</property>
276+
</packing>
277+
</child>
278+
</object>
279+
<packing>
280+
<property name="expand">False</property>
281+
<property name="fill">False</property>
282+
<property name="position">0</property>
283+
</packing>
284+
</child>
285+
<child>
286+
<object class="GtkLabel">
287+
<property name="visible">True</property>
288+
<property name="can_focus">False</property>
289+
<property name="label" translatable="yes">Enter the URL of your Mastodon instance (for example, mastodon.social):</property>
290+
<property name="wrap">True</property>
291+
</object>
292+
<packing>
293+
<property name="expand">False</property>
294+
<property name="fill">True</property>
295+
<property name="position">2</property>
296+
</packing>
297+
</child>
298+
<child>
299+
<object class="GtkEntry" id="instance_entry">
300+
<property name="visible">True</property>
301+
<property name="can_focus">True</property>
302+
<property name="activates_default">True</property>
303+
</object>
304+
<packing>
305+
<property name="expand">False</property>
306+
<property name="fill">True</property>
307+
<property name="position">4</property>
308+
</packing>
309+
</child>
310+
</object>
311+
</child>
312+
<action-widgets>
313+
<action-widget response="0">pin_cancel1</action-widget>
314+
<action-widget response="1">pin_ok1</action-widget>
315+
</action-widgets>
316+
<child>
317+
<placeholder/>
318+
</child>
319+
</object>
237320
<object class="GtkDialog" id="pin_dialog">
238321
<property name="width_request">200</property>
239322
<property name="can_focus">False</property>
@@ -286,7 +369,7 @@
286369
<object class="GtkLabel">
287370
<property name="visible">True</property>
288371
<property name="can_focus">False</property>
289-
<property name="label" translatable="yes">Enter PIN</property>
372+
<property name="label" translatable="yes">Enter Auth Code</property>
290373
</object>
291374
<packing>
292375
<property name="expand">False</property>
@@ -298,7 +381,7 @@
298381
<object class="GtkLabel">
299382
<property name="visible">True</property>
300383
<property name="can_focus">False</property>
301-
<property name="label" translatable="yes">You must authorize the app to access your Twitter account. Please visit the following URL to get a PIN and enter it below.</property>
384+
<property name="label" translatable="yes">You must authorize the app to access your account. Please visit the following URL to get an authorization code and enter it below.</property>
302385
<property name="wrap">True</property>
303386
</object>
304387
<packing>
@@ -309,7 +392,7 @@
309392
</child>
310393
<child>
311394
<object class="GtkLinkButton" id="pin_auth_url">
312-
<property name="label" translatable="yes">button</property>
395+
<property name="label" translatable="yes">(URL)</property>
313396
<property name="visible">True</property>
314397
<property name="can_focus">True</property>
315398
<property name="receives_default">True</property>
@@ -343,7 +426,7 @@
343426
<placeholder/>
344427
</child>
345428
</object>
346-
<object class="GtkWindow" id="tweetwin">
429+
<object class="GtkWindow" id="status_window">
347430
<property name="width_request">600</property>
348431
<property name="height_request">40</property>
349432
<property name="visible">True</property>
@@ -358,13 +441,40 @@
358441
<property name="can_focus">False</property>
359442
<property name="orientation">vertical</property>
360443
<child>
361-
<object class="GtkLabel" id="tweetprompt">
444+
<object class="GtkBox">
362445
<property name="visible">True</property>
363446
<property name="can_focus">False</property>
364-
<property name="hexpand">False</property>
365-
<property name="vexpand">False</property>
366-
<property name="label" translatable="yes">Enter your tweet: (140)</property>
367-
<property name="single_line_mode">True</property>
447+
<child>
448+
<object class="GtkLabel" id="prompt_label">
449+
<property name="visible">True</property>
450+
<property name="can_focus">False</property>
451+
<property name="hexpand">False</property>
452+
<property name="vexpand">False</property>
453+
<property name="label" translatable="yes">Enter your status:</property>
454+
<property name="single_line_mode">True</property>
455+
</object>
456+
<packing>
457+
<property name="expand">True</property>
458+
<property name="fill">True</property>
459+
<property name="position">0</property>
460+
</packing>
461+
</child>
462+
<child>
463+
<object class="GtkLabel" id="status_chars">
464+
<property name="visible">True</property>
465+
<property name="can_focus">False</property>
466+
<property name="hexpand">False</property>
467+
<property name="vexpand">False</property>
468+
<property name="label" translatable="yes">(0/?)</property>
469+
<property name="single_line_mode">True</property>
470+
</object>
471+
<packing>
472+
<property name="expand">False</property>
473+
<property name="fill">True</property>
474+
<property name="padding">5</property>
475+
<property name="position">1</property>
476+
</packing>
477+
</child>
368478
</object>
369479
<packing>
370480
<property name="expand">False</property>
@@ -373,7 +483,7 @@
373483
</packing>
374484
</child>
375485
<child>
376-
<object class="GtkEntry" id="tweetentry">
486+
<object class="GtkEntry" id="status_entry">
377487
<property name="visible">True</property>
378488
<property name="can_focus">True</property>
379489
<property name="width_chars">140</property>

0 commit comments

Comments
 (0)