From 94a825c3865eacb771b64dd93ea7b0dff3c9db49 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 15 Jun 2003 09:35:48 +0000 Subject: Make prev/next navigation capability an object property, and sync on embed 2003-06-15 Christian Persch * embed/find-dialog.h: * embed/find-dialog.c: (set_navigation_flags), (ephy_find_dialog_get_property), (find_dialog_class_init), (sync_embed), (find_get_info), (impl_show), (find_dialog_finalize), (find_dialog_go_next), (find_dialog_go_prev), (find_entry_changed_cb), (find_check_toggled_cb), (find_dialog_get_navigation_flags): Make prev/next navigation capability an object property, and sync on embed changes. * embed/find-dialog.c: (find_dialog_new_with_parent): * embed/ephy-embed-dialog.c: (ephy_embed_dialog_class_init), (ephy_embed_dialog_new), (ephy_embed_dialog_new_with_parent), (ephy_embed_dialog_set_embed): * embed/print-dialog.c: (print_dialog_new), (print_dialog_new_with_parent): s/EphyEmbed/embed/ for the object property name. * src/ephy-window.h: * src/ephy-window.c: (sync_find_dialog), (update_find_control), (ephy_window_switch_page_cb), (find_dialog_search_cb), (ephy_window_get_find_dialog): * src/window-commands.c: (window_cmd_edit_find_next), (window_cmd_edit_find_prev): Sync on the find dialog on nav capability and embed changes instead of explicit updating. --- embed/ephy-embed-dialog.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'embed/ephy-embed-dialog.c') diff --git a/embed/ephy-embed-dialog.c b/embed/ephy-embed-dialog.c index 7dbdcb215..186310b13 100644 --- a/embed/ephy-embed-dialog.c +++ b/embed/ephy-embed-dialog.c @@ -90,9 +90,9 @@ ephy_embed_dialog_class_init (EphyEmbedDialogClass *klass) g_object_class_install_property (object_class, PROP_EPHY_EMBED, - g_param_spec_object ("EphyEmbed", - "EphyEmbed", - "Ephy Embed", + g_param_spec_object ("embed", + "Embed", + "The dialog's embed", G_TYPE_OBJECT, G_PARAM_READWRITE)); } @@ -170,7 +170,7 @@ EphyEmbedDialog * ephy_embed_dialog_new (EphyEmbed *embed) { return EPHY_EMBED_DIALOG (g_object_new (EPHY_EMBED_DIALOG_TYPE, - "EphyEmbed", embed, + "embed", embed, NULL)); } @@ -181,7 +181,7 @@ ephy_embed_dialog_new_with_parent (GtkWidget *parent_window, return EPHY_EMBED_DIALOG (g_object_new (EPHY_EMBED_DIALOG_TYPE, "ParentWindow", parent_window, - "EphyEmbed", embed, + "embed", embed, NULL)); } @@ -193,6 +193,7 @@ ephy_embed_dialog_set_embed (EphyEmbedDialog *dialog, dialog->priv->embed = embed; g_object_add_weak_pointer (G_OBJECT (dialog->priv->embed), (gpointer *)&dialog->priv->embed); + g_object_notify (G_OBJECT (dialog), "embed"); } EphyEmbed * -- cgit v1.2.3