From 80ff5d87fe73fd44fac83cac876c92ebdee48e48 Mon Sep 17 00:00:00 2001 From: Nick Logozzo Date: Sat, 29 Oct 2022 10:20:39 -0400 Subject: [PATCH] V2022.10.0-beta3 --- org.nickvision.money.json | 2 +- org.nickvision.money.metainfo.xml | 2 +- src/ui/application.cpp | 2 +- src/ui/views/transactiondialog.cpp | 4 +++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/org.nickvision.money.json b/org.nickvision.money.json index 2dad3dcb5..442aa7e92 100644 --- a/org.nickvision.money.json +++ b/org.nickvision.money.json @@ -59,7 +59,7 @@ { "type": "git", "url": "https://github.com/nlogozzo/NickvisionMoney.git", - "tag": "2022.10.0-beta2" + "tag": "2022.10.0-beta3" } ] } diff --git a/org.nickvision.money.metainfo.xml b/org.nickvision.money.metainfo.xml index 4d0df1f27..e236982b5 100644 --- a/org.nickvision.money.metainfo.xml +++ b/org.nickvision.money.metainfo.xml @@ -24,7 +24,7 @@ org.nickvision.money - +

- Redesign with GTK4 and libadwaita 1.2

diff --git a/src/ui/application.cpp b/src/ui/application.cpp index 86ecf728e..6774ee0a2 100644 --- a/src/ui/application.cpp +++ b/src/ui/application.cpp @@ -13,7 +13,7 @@ Application::Application(const std::string& id, GApplicationFlags flags) : m_adw m_appInfo.setName("Nickvision Money"); m_appInfo.setShortName("Money"); m_appInfo.setDescription("A personal finance manager."); - m_appInfo.setVersion("2022.10.0-beta2"); + m_appInfo.setVersion("2022.10.0-beta3"); m_appInfo.setChangelog("
  • Redesign with GTK4 and libadwaita 1.2
"); m_appInfo.setGitHubRepo("https://github.com/nlogozzo/NickvisionMoney"); m_appInfo.setIssueTracker("https://github.com/nlogozzo/NickvisionMoney/issues/new"); diff --git a/src/ui/views/transactiondialog.cpp b/src/ui/views/transactiondialog.cpp index 19bd4159d..e50ff1266 100644 --- a/src/ui/views/transactiondialog.cpp +++ b/src/ui/views/transactiondialog.cpp @@ -9,7 +9,7 @@ TransactionDialog::TransactionDialog(GtkWindow* parent, NickvisionMoney::Control gtk_window_set_hide_on_close(GTK_WINDOW(m_gobj), true); adw_message_dialog_add_responses(ADW_MESSAGE_DIALOG(m_gobj), "cancel", "Cancel", "ok", "OK", nullptr); adw_message_dialog_set_response_appearance(ADW_MESSAGE_DIALOG(m_gobj), "ok", ADW_RESPONSE_SUGGESTED); - adw_message_dialog_set_default_response(ADW_MESSAGE_DIALOG(m_gobj), "cancel"); + adw_message_dialog_set_default_response(ADW_MESSAGE_DIALOG(m_gobj), "ok"); adw_message_dialog_set_close_response(ADW_MESSAGE_DIALOG(m_gobj), "cancel"); g_signal_connect(m_gobj, "response", G_CALLBACK((void (*)(AdwMessageDialog*, gchar*, gpointer))([](AdwMessageDialog*, gchar* response, gpointer data) { reinterpret_cast(data)->setResponse({ response }); })), this); //Preferences Group @@ -40,6 +40,7 @@ TransactionDialog::TransactionDialog(GtkWindow* parent, NickvisionMoney::Control m_rowDescription = adw_entry_row_new(); gtk_widget_set_size_request(m_rowDescription, 420, -1); adw_preferences_row_set_title(ADW_PREFERENCES_ROW(m_rowDescription), "Description"); + adw_entry_row_set_activates_default(ADW_ENTRY_ROW(m_rowDescription), true); adw_preferences_group_add(ADW_PREFERENCES_GROUP(m_preferencesGroup), m_rowDescription); //Type m_rowType = adw_combo_row_new(); @@ -55,6 +56,7 @@ TransactionDialog::TransactionDialog(GtkWindow* parent, NickvisionMoney::Control m_rowAmount = adw_entry_row_new(); gtk_widget_set_size_request(m_rowAmount, 420, -1); adw_preferences_row_set_title(ADW_PREFERENCES_ROW(m_rowAmount), "Amount"); + adw_entry_row_set_activates_default(ADW_ENTRY_ROW(m_rowAmount), true); adw_preferences_group_add(ADW_PREFERENCES_GROUP(m_preferencesGroup), m_rowAmount); //Layout adw_message_dialog_set_extra_child(ADW_MESSAGE_DIALOG(m_gobj), m_preferencesGroup);