Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add keyboard shortcuts #112

Closed
amit9838 opened this issue May 3, 2024 · 7 comments
Closed

Add keyboard shortcuts #112

amit9838 opened this issue May 3, 2024 · 7 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@amit9838
Copy link
Owner

amit9838 commented May 3, 2024

add shortcuts for following events

  • Refresh weather (ctrl+r)
  • Open settings (ctrl + ,)
  • Open locations dialog (ctrl + l)
  • Press Enter to search when searching for locations (Enter)
    If i'm missing something pls suggest 🙂
@amit9838 amit9838 added help wanted Extra attention is needed good first issue Good for newcomers feature Add new feature enhancement New feature or request and removed feature Add new feature labels May 3, 2024
@francobattista
Copy link
Contributor

Hi! Can i work on this?

@amit9838
Copy link
Owner Author

amit9838 commented May 4, 2024

Sure, have a try. 🙂

@francobattista
Copy link
Contributor

I try to build the project, but i get this when i execute mousam:

Traceback (most recent call last):
File "/home/franco/.local/share/mousam/mousam/main.py", line 48, in do_activate
css_provider.load_from_data(css,len(css))
TypeError: Gtk.CssProvider.load_from_data() takes exactly 2 arguments (3 given)

@amit9838
Copy link
Owner Author

amit9838 commented May 4, 2024

Is your build env configured properly?

Screenshot_20240504-110258~2.png
Here you can see more info about the arguments

https://lazka.github.io/pgi-docs/#Gtk-4.0/classes/CssProvider.html#Gtk.CssProvider

@amit9838
Copy link
Owner Author

amit9838 commented May 8, 2024

/fixed. #113 #114

@amit9838 amit9838 closed this as completed May 8, 2024
@Axel-Erfurt
Copy link

I try to build the project, but i get this when i execute mousam:

Traceback (most recent call last): File "/home/franco/.local/share/mousam/mousam/main.py", line 48, in do_activate css_provider.load_from_data(css,len(css)) TypeError: Gtk.CssProvider.load_from_data() takes exactly 2 arguments (3 given)

I had the same problem and changed it to

css_provider.load_from_data(css)

Now it's working.

@amit9838
Copy link
Owner Author

Are you building with gnome builder?
If not,
Try to build with builder, it should ask for required dependencies on the first build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants