messenger-gtk

Gtk+3 graphical user interfaces for GNUnet Messenger
Log | Files | Refs | Submodules | README | LICENSE

commit cae3e100fb493297fbe53d9fd4e45b881ce796a8
parent 95cbc8879703414f3bdecb12cf3df141b1ef728a
Author: Jacki <jacki@thejackimonster.de>
Date:   Sat, 11 May 2024 04:12:19 +0200

Remove mobile ui branching option

Signed-off-by: Jacki <jacki@thejackimonster.de>

Diffstat:
M.gitignore | 3+++
Msrc/application.c | 16----------------
Msrc/application.h | 1-
Msrc/ui/chat.c | 3+--
4 files changed, 4 insertions(+), 19 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -35,3 +35,6 @@ messenger-gtk # Tar files messenger-gtk-*.tar.gz + +# Valgrind debug files +vgcore.* diff --git a/src/application.c b/src/application.c @@ -346,16 +346,6 @@ application_init(MESSENGER_Application *app, g_application_add_main_option( G_APPLICATION(app->application), - "mobile", - 'm', - G_OPTION_FLAG_NONE, - G_OPTION_ARG_NONE, - "Optimize UI spacing for mobile devices", - NULL - ); - - g_application_add_main_option( - G_APPLICATION(app->application), "ego", 'e', G_OPTION_FLAG_NONE, @@ -403,12 +393,6 @@ _application_chat_thread(void *args) MESSENGER_Application *app = (MESSENGER_Application*) args; struct GNUNET_GETOPT_CommandLineOption options[] = { - GNUNET_GETOPT_option_flag ( - 'm', - "mobile", - "Optimize UI spacing for mobile devices", - &(app->settings.mobile_design) - ), GNUNET_GETOPT_option_string ( 'e', "ego", diff --git a/src/application.h b/src/application.h @@ -140,7 +140,6 @@ typedef struct MESSENGER_Application } ui; struct { - gboolean mobile_design; gboolean hide_delete_dialog; gboolean autostart; diff --git a/src/ui/chat.c b/src/ui/chat.c @@ -840,8 +840,7 @@ handle_send_text_key_press (GtkWidget *widget, MESSENGER_Application *app = (MESSENGER_Application*) user_data; - if ((app->settings.mobile_design) || - (event->state & GDK_SHIFT_MASK) || + if ((event->state & GDK_SHIFT_MASK) || ((event->keyval != GDK_KEY_Return) && (event->keyval != GDK_KEY_KP_Enter))) return FALSE;