aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed-dialog.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-06-15 17:35:48 +0800
committerChristian Persch <chpe@src.gnome.org>2003-06-15 17:35:48 +0800
commit94a825c3865eacb771b64dd93ea7b0dff3c9db49 (patch)
tree87b012c17af788ad3aac39769ecc95f665e74095 /embed/ephy-embed-dialog.c
parent53471bc2f89c2844c7bb81b41575ee253c1f6516 (diff)
downloadgsoc2013-epiphany-94a825c3865eacb771b64dd93ea7b0dff3c9db49.tar
gsoc2013-epiphany-94a825c3865eacb771b64dd93ea7b0dff3c9db49.tar.gz
gsoc2013-epiphany-94a825c3865eacb771b64dd93ea7b0dff3c9db49.tar.bz2
gsoc2013-epiphany-94a825c3865eacb771b64dd93ea7b0dff3c9db49.tar.lz
gsoc2013-epiphany-94a825c3865eacb771b64dd93ea7b0dff3c9db49.tar.xz
gsoc2013-epiphany-94a825c3865eacb771b64dd93ea7b0dff3c9db49.tar.zst
gsoc2013-epiphany-94a825c3865eacb771b64dd93ea7b0dff3c9db49.zip
Make prev/next navigation capability an object property, and sync on embed
2003-06-15 Christian Persch <chpe@cvs.gnome.org> * 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.
Diffstat (limited to 'embed/ephy-embed-dialog.c')
-rw-r--r--embed/ephy-embed-dialog.c11
1 files changed, 6 insertions, 5 deletions
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 *