File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,6 @@ impl ShutterApplication {
105105 }
106106
107107 fn show_about ( & self ) {
108- let window = self . active_window ( ) . unwrap ( ) ;
109108 let about = adw:: AboutDialog :: builder ( )
110109 . application_name ( "Shutter" )
111110 // TODO remove extra icons
@@ -130,6 +129,6 @@ impl ShutterApplication {
130129 ) )
131130 . build ( ) ;
132131
133- about. present ( Some ( & window ) ) ;
132+ about. present ( self . active_window ( ) . as_ref ( ) ) ;
134133 }
135134}
Original file line number Diff line number Diff line change @@ -46,8 +46,9 @@ fn main() -> glib::ExitCode {
4646 // Create a new GtkApplication. The application manages our main loop,
4747 // application windows, integration with the window manager/compositor, and
4848 // 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
4950 let app = ShutterApplication :: new (
50- "org.shutter-project.Shutter " ,
51+ "org.shutter-project.ShutterRust " ,
5152 & gio:: ApplicationFlags :: empty ( ) ,
5253 ) ;
5354
Original file line number Diff line number Diff line change 33 <gresource prefix =" /org/shutter-project/Shutter" >
44 <file compressed =" true" preprocess =" xml-stripblanks" >window.ui</file >
55 <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 >
718 <!-- for about dialog -->
819 <file compressed =" true" alias =" credits/art" >../data/credits/art</file >
920 <file compressed =" true" alias =" credits/dev" >../data/credits/dev</file >
You can’t perform that action at this time.
0 commit comments