diff options
author | Devashish Sharma <sdevashish@novell.com> | 2006-10-16 22:38:51 +0800 |
---|---|---|
committer | Harish Krishnaswamy <kharish@src.gnome.org> | 2006-10-16 22:38:51 +0800 |
commit | 85de4c714e534cb6f7d497fe07b762fdde98468a (patch) | |
tree | 69b3d08fc0b1628ad636381acde940fc2b6a1526 /addressbook/gui/widgets/gal-view-minicard.c | |
parent | d35a194816535c1dae631b80d296c5290e20a921 (diff) | |
download | gsoc2013-evolution-85de4c714e534cb6f7d497fe07b762fdde98468a.tar gsoc2013-evolution-85de4c714e534cb6f7d497fe07b762fdde98468a.tar.gz gsoc2013-evolution-85de4c714e534cb6f7d497fe07b762fdde98468a.tar.bz2 gsoc2013-evolution-85de4c714e534cb6f7d497fe07b762fdde98468a.tar.lz gsoc2013-evolution-85de4c714e534cb6f7d497fe07b762fdde98468a.tar.xz gsoc2013-evolution-85de4c714e534cb6f7d497fe07b762fdde98468a.tar.zst gsoc2013-evolution-85de4c714e534cb6f7d497fe07b762fdde98468a.zip |
Changed the parameter passed to gal_view_minicard_attach.
2005-10-16 Devashish Sharma <sdevashish@novell.com>
* gui/widgets/e-addressbook-view.c (display_view): Changed the
parameter passed to gal_view_minicard_attach.
* gui/widgets/gal-view-minicard.c (column_width_changed): Sets the
horizontal scroll amount for the addresss card view to the current
page size.
* gui/widgets/gal-view-minicard.h: Changed function prototype for
gal_view_minicard_attach. Passing EABView instead of
EMinicardViewWidget.
Fixes Bug#218273
svn path=/trunk/; revision=32896
Diffstat (limited to 'addressbook/gui/widgets/gal-view-minicard.c')
-rw-r--r-- | addressbook/gui/widgets/gal-view-minicard.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/addressbook/gui/widgets/gal-view-minicard.c b/addressbook/gui/widgets/gal-view-minicard.c index 3031f31d29..7111cc0cb8 100644 --- a/addressbook/gui/widgets/gal-view-minicard.c +++ b/addressbook/gui/widgets/gal-view-minicard.c @@ -185,20 +185,27 @@ gal_view_minicard_get_type (void) } static void -column_width_changed (EMinicardViewWidget *w, double width, GalViewMinicard *view) +column_width_changed (EMinicardViewWidget *w, double width, EABView *address_view) { + GalViewMinicard *view = GAL_VIEW_MINICARD (gal_view_instance_get_current_view (address_view->view_instance)); d(g_print("%s: Old width = %f, New width = %f\n", G_GNUC_FUNCTION, view->column_width, width)); if (view->column_width != width) { view->column_width = width; gal_view_changed(GAL_VIEW(view)); } + + GtkScrolledWindow * scrolled_window = GTK_SCROLLED_WINDOW(address_view->widget); + GtkAdjustment *adj = gtk_scrolled_window_get_hadjustment (scrolled_window); + GtkAdjustment *adj_new = gtk_adjustment_new(adj->value, adj->lower, adj->upper, adj->page_size, adj->page_increment,adj->page_size); + gtk_scrolled_window_set_hadjustment(scrolled_window, adj_new); } void -gal_view_minicard_attach (GalViewMinicard *view, EMinicardViewWidget *emvw) +gal_view_minicard_attach (GalViewMinicard *view, EABView *address_view) { gal_view_minicard_detach (view); + EMinicardViewWidget *emvw = E_MINICARD_VIEW_WIDGET (address_view->object); view->emvw = emvw; g_object_ref (view->emvw); @@ -209,7 +216,7 @@ gal_view_minicard_attach (GalViewMinicard *view, EMinicardViewWidget *emvw) view->emvw_column_width_changed_id = g_signal_connect(view->emvw, "column_width_changed", - G_CALLBACK (column_width_changed), view); + G_CALLBACK (column_width_changed), address_view); } void |