Skip to content

Commit 491adfb

Browse files
author
Rajdeep Singha
committed
Show headerbar after exiting fullscreen video
1 parent 08394c9 commit 491adfb

File tree

6 files changed

+10
-17
lines changed

6 files changed

+10
-17
lines changed

com.github.suzie97.communique.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ sdk: io.elementary.Sdk
1010

1111
# This should match the exec line in your .desktop file and usually is the same
1212
# as your app ID
13-
command: communique
13+
command: com.github.suzie97.communique
1414

1515
# Here we can specify the kinds of permissions our app needs to run. Since we're
1616
# not using hardware like webcams, making sound, or reading external files, we

data/com.github.suzie97.communique-autostart.desktop.in

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ Name=Communique Autostart
33
GenericName=RSS Client
44
Comment=Read RSS/Atom Feeds
55
Categories=Network;Feed;
6-
Exec=communique --headless
6+
Exec=com.github.suzie97.communique --background
77
Icon=com.github.suzie97.communique
88
Terminal=false
99
Type=Application
10+
NoDisplay=true
1011
X-GNOME-Gettext-Domain=tt-rss
1112
X-GNOME-UsesNotifications=true
13+
X-GNOME-AutoRestart=true
14+
X-GNOME-Autostart-Delay=5
15+
X-GNOME-Autostart-Phase=Applications

data/com.github.suzie97.communique.desktop.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Name=Communique
33
GenericName=RSS Client
44
Comment=Read RSS/Atom Feeds
55
Categories=Network;Education;News;Feed;
6-
Exec=communique %U
6+
Exec=com.github.suzie97.communique %U
77
Icon=com.github.suzie97.communique
88
Terminal=false
99
Type=Application

meson.build

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
project('com.github.suzie97.communique', ['vala', 'c'],
2-
version: '1.1.0',
3-
meson_version: '>= 0.44.1',
4-
license: 'GPL-3.0',
5-
default_options: ['prefix=/usr']
6-
)
1+
project('com.github.suzie97.communique', 'vala', 'c')
72

83
# Constants (paths)
94
VAPI_DIR = join_paths(meson.current_source_dir(), 'vapi')
@@ -298,7 +293,7 @@ subdir('po')
298293

299294
# Create an executable file
300295
executable(
301-
'communique',
296+
'com.github.suzie97.communique',
302297
UI_RESOURCES + ['src/FeedReaderMain.vala'],
303298
c_args: c_args,
304299
vala_args: vala_args,

src/FeedReaderMain.vala

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace FeedReader.Main {
44
private const GLib.OptionEntry[] options = {
55
{ "version", 0, 0, OptionArg.NONE, ref version, "Communique version number", null },
6-
{ "about", 0, 0, OptionArg.NONE, ref about, "spawn about dialog", null },
76
{ "verbose", 0, 0, OptionArg.NONE, ref verbose, "Spit out all the debug information", null },
87
{ "playMedia", 0, 0, OptionArg.STRING, ref media, "start media player with URL", "URL" },
98
{ "ping", 0, 0, OptionArg.STRING, ref pingURL, "test the ping function with given URL", "URL" },
@@ -52,12 +51,6 @@ namespace FeedReader.Main {
5251
return 0;
5352
}
5453

55-
// if(about)
56-
// {
57-
// FeedReader.show_about(args);
58-
// return 0;
59-
// }
60-
6154
if(media != null)
6255
{
6356
Utils.playMedia(args, media);

src/Widgets/MainWindow.vala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ public class FeedReader.MainWindow : Hdy.ApplicationWindow {
114114
if (ColumnView.get_default ().isFullscreenVideo ()) {
115115
if ((event.new_window_state & Gdk.WindowState.FULLSCREEN) != Gdk.WindowState.FULLSCREEN) {
116116
ColumnView.get_default ().exitFullscreenVideo ();
117+
show_header ();
117118
}
118119

119120
base.window_state_event (event);

0 commit comments

Comments
 (0)