# HG changeset patch # User Gary Kramlich # Date 1652172278 18000 # Node ID 53ba39406c869f1b29f813427548f44436f00998 # Parent d6ba57accc0e4fabda163c658741b69f93f08b48 Port PidginStatusEditor to GTK4 Testing Done: Compiled. Reviewed at https://reviews.imfreedom.org/r/1420/ diff -r d6ba57accc0e -r 53ba39406c86 pidgin/pidginstatuseditor.c --- a/pidgin/pidginstatuseditor.c Tue May 10 03:19:55 2022 -0500 +++ b/pidgin/pidginstatuseditor.c Tue May 10 03:44:38 2022 -0500 @@ -84,7 +84,7 @@ message = ""; } - gtk_entry_set_text(GTK_ENTRY(editor->title), title); + gtk_editable_set_text(GTK_EDITABLE(editor->title), title); chooser = PIDGIN_STATUS_PRIMITIVE_CHOOSER(editor->primitive); pidgin_status_primitive_chooser_set_selected(chooser, primitive); talkatu_markup_set_html(TALKATU_BUFFER(editor->buffer), message, -1); @@ -99,7 +99,7 @@ gchar *message = NULL; const gchar *title = NULL; - title = gtk_entry_get_text(GTK_ENTRY(editor->title)); + title = gtk_editable_get_text(GTK_EDITABLE(editor->title)); chooser = PIDGIN_STATUS_PRIMITIVE_CHOOSER(editor->primitive); primitive = pidgin_status_primitive_chooser_get_selected(chooser); @@ -147,7 +147,7 @@ break; } - gtk_widget_destroy(GTK_WIDGET(dialog)); + gtk_window_destroy(GTK_WINDOW(dialog)); } static void @@ -156,7 +156,7 @@ gboolean title_changed = FALSE, sensitive = FALSE; const gchar *title = NULL; - title = gtk_entry_get_text(GTK_ENTRY(editor->title)); + title = gtk_editable_get_text(GTK_EDITABLE(editor->title)); if(editor->status != NULL) { /* If we're editing a status, check if the title is the same. */ diff -r d6ba57accc0e -r 53ba39406c86 pidgin/resources/Status/editor.ui --- a/pidgin/resources/Status/editor.ui Tue May 10 03:19:55 2022 -0500 +++ b/pidgin/resources/Status/editor.ui Tue May 10 03:44:38 2022 -0500 @@ -1,6 +1,5 @@ - - + @@ -27,244 +25,138 @@