This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository lightdm-efl-greeter.

View the commit online.

commit 13b91b4d053c5cde105d960822d11eb219df787a
Author: Swagtoy <m...@ow.swag.toys>
AuthorDate: Tue Jul 1 00:19:57 2025 -0400

    Remove useless struct
---
 src/greeter.c | 22 ++++++----------------
 1 file changed, 6 insertions(+), 16 deletions(-)

diff --git a/src/greeter.c b/src/greeter.c
index dc4a36c..468b542 100644
--- a/src/greeter.c
+++ b/src/greeter.c
@@ -13,6 +13,12 @@
 #include <stdbool.h>
 #include <X11/extensions/Xrandr.h>
 
+/*
+ * This file is somewhat of a disaster. The majority of this monstrosity was hacked up in just 1 day.
+ *
+ * Lots of little things here can be split up, and more features/checks can be done.
+ */
+
 #define INSIDE(x, y, xx, yy, ww, hh) \
    (((x) < ((xx) + (ww))) && ((y) < ((yy) + (hh))) && \
        ((x) >= (xx)) && ((y) >= (yy)))
@@ -51,17 +57,6 @@ E_SHOW(Evas_Object *obj)
 	return obj;
 }
 
-typedef struct
-{
-	gboolean is_prompt;
-	union
-	{
-		LightDMMessageType message;
-		LightDMPromptType prompt;
-	} type;
-	gchar *text;
-} PAMConversationMessage;
-
 static void
 login_cb(void *data, Evas_Object *obj, void *event_info EINA_UNUSED)
 {
@@ -134,8 +129,6 @@ static void
 create_notification(const gchar *text)
 {
 	Evas_Object *o, *bx;
-	//PAMConversationMessage *message_obj = g_new(PAMConversationMessage, 1);
-	//exit(1);
 	notify = elm_notify_add(win);
 	elm_notify_allow_events_set(notify, EINA_TRUE);
 	evas_object_size_hint_weight_set(notify, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
@@ -163,9 +156,7 @@ create_notification(const gchar *text)
 static void
 show_message_cb(LightDMGreeter *ldm, const gchar *text, LightDMPromptType type)
 {
-	//PAMConversationMessage *message_obj = g_new(PAMConversationMessage, 1);
 	create_notification("Got a message");
-
 }
 
 static void
@@ -237,7 +228,6 @@ username_in_down_cb(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *o
 static void
 autologin_timer_expired_cb(LightDMGreeter *ldm, const gchar *text, LightDMPromptType type)
 {
-	//PAMConversationMessage *message_obj = g_new(PAMConversationMessage, 1);
 }
 
 static void

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to