File tree 3 files changed +15
-4
lines changed
3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,6 @@ impl ShutterApplication {
105
105
}
106
106
107
107
fn show_about ( & self ) {
108
- let window = self . active_window ( ) . unwrap ( ) ;
109
108
let about = adw:: AboutDialog :: builder ( )
110
109
. application_name ( "Shutter" )
111
110
// TODO remove extra icons
@@ -130,6 +129,6 @@ impl ShutterApplication {
130
129
) )
131
130
. build ( ) ;
132
131
133
- about. present ( Some ( & window ) ) ;
132
+ about. present ( self . active_window ( ) . as_ref ( ) ) ;
134
133
}
135
134
}
Original file line number Diff line number Diff line change @@ -46,8 +46,9 @@ fn main() -> glib::ExitCode {
46
46
// Create a new GtkApplication. The application manages our main loop,
47
47
// application windows, integration with the window manager/compositor, and
48
48
// desktop features such as file opening and single-instance applications.
49
+ // TODO: remove the Rust suffix. This is for D-Bus to avoid conflict with the perl shutter
49
50
let app = ShutterApplication :: new (
50
- "org.shutter-project.Shutter " ,
51
+ "org.shutter-project.ShutterRust " ,
51
52
& gio:: ApplicationFlags :: empty ( ) ,
52
53
) ;
53
54
Original file line number Diff line number Diff line change 3
3
<gresource prefix =" /org/shutter-project/Shutter" >
4
4
<file compressed =" true" preprocess =" xml-stripblanks" >window.ui</file >
5
5
<file compressed =" true" preprocess =" xml-stripblanks" >gtk/help-overlay.ui</file >
6
- <file compressed =" true" preprocess =" xml-stripblanks" >gtk/menus.ui</file >
6
+ <file compressed =" true" >gtk/menus.ui</file >
7
+ <!-- for about dialog -->
8
+ <file compressed =" true" alias =" credits/art" >../data/credits/art</file >
9
+ <file compressed =" true" alias =" credits/dev" >../data/credits/dev</file >
10
+ <file compressed =" true" alias =" credits/copyright" >../data/credits/copyright</file >
11
+ </gresource >
12
+
13
+ <!-- a temporary hack to support the non-conflicting D-Bus name because Gtk uses the same id for both -->
14
+ <gresource prefix =" /org/shutter-project/ShutterRust" >
15
+ <file compressed =" true" preprocess =" xml-stripblanks" >window.ui</file >
16
+ <file compressed =" true" preprocess =" xml-stripblanks" >gtk/help-overlay.ui</file >
17
+ <file compressed =" true" >gtk/menus.ui</file >
7
18
<!-- for about dialog -->
8
19
<file compressed =" true" alias =" credits/art" >../data/credits/art</file >
9
20
<file compressed =" true" alias =" credits/dev" >../data/credits/dev</file >
You can’t perform that action at this time.
0 commit comments