[xdg-desktop-portal-gnome/mwleeds/implement-dynamic-launcher] fixup! Implement dynamic launcher portal (gtk4)
- From: Phaedrus Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [xdg-desktop-portal-gnome/mwleeds/implement-dynamic-launcher] fixup! Implement dynamic launcher portal (gtk4)
- Date: Tue, 15 Mar 2022 02:05:37 +0000 (UTC)
commit 02d95e84867620612863feacf708672ab9489c83
Author: Phaedrus Leeds <mwleeds protonmail com>
Date: Mon Mar 14 19:05:29 2022 -0700
fixup! Implement dynamic launcher portal (gtk4)
src/dynamic-launcher.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/dynamic-launcher.c b/src/dynamic-launcher.c
index 0d90738..86ad7c5 100644
--- a/src/dynamic-launcher.c
+++ b/src/dynamic-launcher.c
@@ -78,7 +78,7 @@ static void
install_dialog_handle_close (InstallDialogHandle *handle)
{
if (handle->dialog)
- gtk_widget_destroy (GTK_WINDOW (handle->dialog));
+ gtk_window_destroy (GTK_WINDOW (handle->dialog));
install_dialog_handle_free (handle);
}
@@ -114,7 +114,7 @@ send_prepare_install_response (InstallDialogHandle *handle)
if (handle->response == 0)
{
- const char *chosen_name = gtk_entry_get_text (GTK_ENTRY (handle->entry));
+ const char *chosen_name = gtk_editable_get_text (GTK_EDITABLE (handle->entry));
if (chosen_name == NULL || chosen_name[0] == '\0')
{
handle->response = 3;
@@ -276,13 +276,13 @@ handle_prepare_install (XdpImplDynamicLauncher *object,
gtk_widget_set_margin_bottom (box, 15);
gtk_widget_set_margin_start (box, 15);
gtk_widget_set_margin_end (box, 15);
- gtk_container_add (GTK_CONTAINER (content_area), box);
+ gtk_box_append (GTK_BOX (content_area), box);
image = gtk_image_new ();
gtk_widget_set_vexpand (image, TRUE);
gtk_widget_set_size_request (image, DEFAULT_ICON_SIZE, DEFAULT_ICON_SIZE);
gtk_widget_set_margin_bottom (image, 10);
- gtk_container_add (GTK_CONTAINER (box), image);
+ gtk_box_append (GTK_BOX (box), image);
icon_stream = g_loadable_icon_load (G_LOADABLE_ICON (icon), 0, NULL, NULL, &error);
if (icon_stream)
@@ -297,7 +297,7 @@ handle_prepare_install (XdpImplDynamicLauncher *object,
gtk_image_set_from_pixbuf (GTK_IMAGE (image), pixbuf);
entry = gtk_entry_new ();
- gtk_entry_set_text (GTK_ENTRY (entry), arg_name);
+ gtk_editable_set_text (GTK_EDITABLE (entry), arg_name);
gtk_widget_set_sensitive (entry, editable_name);
gtk_entry_set_activates_default (GTK_ENTRY (entry), TRUE);
gtk_box_append (GTK_BOX (box), entry);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]