diff options
author | Diego Escalante Urrelo <descalante@igalia.com> | 2010-09-03 15:01:32 +0800 |
---|---|---|
committer | Diego Escalante Urrelo <descalante@igalia.com> | 2010-09-03 16:27:12 +0800 |
commit | 43e7d5085b715e7b9b523eb63beeb29121f17a7d (patch) | |
tree | 0a77921d8b7df2eb1bf0d629284eed0e7b1c80ca /lib | |
parent | 61ba13a0743875521e6be98008dac3ee1c75f5c2 (diff) | |
download | gsoc2013-epiphany-43e7d5085b715e7b9b523eb63beeb29121f17a7d.tar gsoc2013-epiphany-43e7d5085b715e7b9b523eb63beeb29121f17a7d.tar.gz gsoc2013-epiphany-43e7d5085b715e7b9b523eb63beeb29121f17a7d.tar.bz2 gsoc2013-epiphany-43e7d5085b715e7b9b523eb63beeb29121f17a7d.tar.lz gsoc2013-epiphany-43e7d5085b715e7b9b523eb63beeb29121f17a7d.tar.xz gsoc2013-epiphany-43e7d5085b715e7b9b523eb63beeb29121f17a7d.tar.zst gsoc2013-epiphany-43e7d5085b715e7b9b523eb63beeb29121f17a7d.zip |
ephy-dialog: remove useless modal property
Bug #624485
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ephy-dialog.c | 39 | ||||
-rw-r--r-- | lib/ephy-dialog.h | 3 |
2 files changed, 0 insertions, 42 deletions
diff --git a/lib/ephy-dialog.c b/lib/ephy-dialog.c index 1cdbe295d..f39a9f7b5 100644 --- a/lib/ephy-dialog.c +++ b/lib/ephy-dialog.c @@ -41,7 +41,6 @@ enum { PROP_0, PROP_PARENT_WINDOW, - PROP_MODAL, PROP_PERSIST_POSITION, PROP_DEFAULT_WIDTH, PROP_DEFAULT_HEIGHT @@ -82,7 +81,6 @@ struct _EphyDialogPrivate GtkWidget *parent; GtkWidget *dialog; - guint modal : 1; guint has_default_size : 1; guint disposing : 1; guint initialized : 1; @@ -1134,24 +1132,6 @@ impl_show (EphyDialog *dialog) } /** - * ephy_dialog_set_modal: - * @dialog: an #EphyDialog - * @is_modal: %TRUE to make @dialog modal - * - * Sets @dialog to be modal or not. - **/ -void -ephy_dialog_set_modal (EphyDialog *dialog, - gboolean is_modal) -{ - g_return_if_fail (EPHY_IS_DIALOG (dialog)); - - dialog->priv->modal = is_modal != FALSE; - - gtk_window_set_modal (GTK_WINDOW(dialog->priv->dialog), is_modal); -} - -/** * ephy_dialog_add_enum: * @dialog: an #EphyDialog * @property_id: string identifier of the property to modify @@ -1571,9 +1551,6 @@ ephy_dialog_set_property (GObject *object, case PROP_PARENT_WINDOW: ephy_dialog_set_parent (dialog, g_value_get_object (value)); break; - case PROP_MODAL: - ephy_dialog_set_modal (dialog, g_value_get_boolean (value)); - break; case PROP_PERSIST_POSITION: dialog->priv->persist_position = g_value_get_boolean (value); break; @@ -1599,9 +1576,6 @@ ephy_dialog_get_property (GObject *object, case PROP_PARENT_WINDOW: g_value_set_object (value, dialog->priv->parent); break; - case PROP_MODAL: - g_value_set_boolean (value, dialog->priv->modal); - break; case PROP_PERSIST_POSITION: g_value_set_boolean (value, dialog->priv->persist_position); break; @@ -1662,19 +1636,6 @@ ephy_dialog_class_init (EphyDialogClass *klass) G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)); /** - * EphyDialog:modal: - * - * Whether the dialog is or not modal. - */ - g_object_class_install_property (object_class, - PROP_MODAL, - g_param_spec_boolean ("modal", - "Modal", - "Modal dialog", - FALSE, - G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)); - - /** * EphyDialog:persist-position: * * If dialog position should be persistent. diff --git a/lib/ephy-dialog.h b/lib/ephy-dialog.h index aad36e81f..4e73ab897 100644 --- a/lib/ephy-dialog.h +++ b/lib/ephy-dialog.h @@ -120,9 +120,6 @@ void ephy_dialog_set_parent (EphyDialog *dialog, GtkWidget *ephy_dialog_get_parent (EphyDialog *dialog); -void ephy_dialog_set_modal (EphyDialog *dialog, - gboolean is_modal); - GtkWidget *ephy_dialog_get_control (EphyDialog *dialog, const char *property_id); |