diff options
author | Christopher James Lahey <clahey@ximian.com> | 2002-02-14 04:47:26 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2002-02-14 04:47:26 +0800 |
commit | 32a1a69f13932b9304a937ca0cb39102d425bc93 (patch) | |
tree | 86c1eb93cc4b6053916a677e1183fdfe046aa824 /addressbook/gui/widgets/gal-view-minicard.c | |
parent | 9f1ec16fffe3bdaa9ee4ecf0b3111f55e510decc (diff) | |
download | gsoc2013-evolution-32a1a69f13932b9304a937ca0cb39102d425bc93.tar.gz gsoc2013-evolution-32a1a69f13932b9304a937ca0cb39102d425bc93.tar.zst gsoc2013-evolution-32a1a69f13932b9304a937ca0cb39102d425bc93.zip |
Attach to the emvw instead of the emv here.
2002-02-13 Christopher James Lahey <clahey@ximian.com>
* gui/widgets/e-addressbook-view.c (display_view): Attach to the
emvw instead of the emv here.
* gui/widgets/e-minicard-view-widget.c, e-minicard-view-widget.h:
Made this object have a "column_width" argument and a
"column_width_changed" signal which are a simple layer down to the
EMinicardView contained within.
* gui/widgets/gal-view-minicard.c, gui/widgets/gal-view-minicard.h
(gal_view_minicard_attach): Made this attach to an
EMinicardViewWidget instead of a EMinicardView.
svn path=/trunk/; revision=15714
Diffstat (limited to 'addressbook/gui/widgets/gal-view-minicard.c')
-rw-r--r-- | addressbook/gui/widgets/gal-view-minicard.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/addressbook/gui/widgets/gal-view-minicard.c b/addressbook/gui/widgets/gal-view-minicard.c index e4ebff2019..b3162e51d1 100644 --- a/addressbook/gui/widgets/gal-view-minicard.c +++ b/addressbook/gui/widgets/gal-view-minicard.c @@ -116,8 +116,8 @@ gal_view_minicard_init (GalViewMinicard *gvm) gvm->title = NULL; gvm->column_width = 150.0; - gvm->emv = NULL; - gvm->emv_column_width_changed_id = 0; + gvm->emvw = NULL; + gvm->emvw_column_width_changed_id = 0; } /** @@ -189,33 +189,33 @@ column_width_changed (ETable *table, double width, GalViewMinicard *view) } void -gal_view_minicard_attach (GalViewMinicard *view, EMinicardView *emv) +gal_view_minicard_attach (GalViewMinicard *view, EMinicardViewWidget *emvw) { gal_view_minicard_detach (view); - view->emv = emv; + view->emvw = emvw; - gtk_object_ref (GTK_OBJECT (view->emv)); + gtk_object_ref (GTK_OBJECT (view->emvw)); - gtk_object_set (GTK_OBJECT (view->emv), + gtk_object_set (GTK_OBJECT (view->emvw), "column_width", (int) view->column_width, NULL); - view->emv_column_width_changed_id = - gtk_signal_connect(GTK_OBJECT(view->emv), "column_width_changed", + view->emvw_column_width_changed_id = + gtk_signal_connect(GTK_OBJECT(view->emvw), "column_width_changed", GTK_SIGNAL_FUNC (column_width_changed), view); } void gal_view_minicard_detach (GalViewMinicard *view) { - if (view->emv == NULL) + if (view->emvw == NULL) return; - if (view->emv_column_width_changed_id) { - gtk_signal_disconnect (GTK_OBJECT (view->emv), - view->emv_column_width_changed_id); - view->emv_column_width_changed_id = 0; + if (view->emvw_column_width_changed_id) { + gtk_signal_disconnect (GTK_OBJECT (view->emvw), + view->emvw_column_width_changed_id); + view->emvw_column_width_changed_id = 0; } - gtk_object_unref (GTK_OBJECT (view->emv)); - view->emv = NULL; + gtk_object_unref (GTK_OBJECT (view->emvw)); + view->emvw = NULL; } |