[epiphany] ephy-dialog: remove useless modal property
- From: Diego Escalante Urrelo <diegoe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-dialog: remove useless modal property
- Date: Fri, 3 Sep 2010 08:27:38 +0000 (UTC)
commit 43e7d5085b715e7b9b523eb63beeb29121f17a7d
Author: Diego Escalante Urrelo <descalante igalia com>
Date: Fri Sep 3 02:01:32 2010 -0500
ephy-dialog: remove useless modal property
Bug #624485
lib/ephy-dialog.c | 39 ---------------------------------------
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 1cdbe29..f39a9f7 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 aad36e8..4e73ab8 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]