diff options
author | Chris Toshok <toshok@ximian.com> | 2002-11-09 11:26:48 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2002-11-09 11:26:48 +0800 |
commit | 93e3a5b7a26de02fd34045c4b127e3349d89add4 (patch) | |
tree | 6055965377649723fbc292c16213e4522ee7300c /addressbook/gui/widgets/test-minicard-view.c | |
parent | 0b1546202c75992262a3da84bcf8adf2c216022a (diff) | |
download | gsoc2013-evolution-93e3a5b7a26de02fd34045c4b127e3349d89add4.tar.gz gsoc2013-evolution-93e3a5b7a26de02fd34045c4b127e3349d89add4.tar.zst gsoc2013-evolution-93e3a5b7a26de02fd34045c4b127e3349d89add4.zip |
port work.
2002-11-08 Chris Toshok <toshok@ximian.com>
* gui/widgets/test-reflow.c: port work.
* gui/widgets/test-minicard-view.c: port work.
* gui/widgets/e-minicard.[ch]: port work.
* gui/widgets/e-minicard-widget.c: port work.
* gui/widgets/e-minicard-view.c: port work.
* gui/widgets/e-minicard-view-widget.c
(e_minicard_view_widget_size_allocate): gtk_->g_ change i missed.
(e_minicard_view_widget_reflow): same.
* gui/widgets/e-minicard-label.c: port work.
* gui/widgets/e-minicard-control.c (get_prop): gtk_->g_ change i
missed.
* gui/widgets/e-addressbook-view.c (setup_menus): ifdef this
PENDING_PORT_WORK for now.
(has_email_address_1): gtk_->g_ change i missed.
(print): remove the PENDING_PORT_WORK from here, as the print_*
symbols now resolve.
(delete): gtk_->g_ changes.
(new_card): same.
(new_list): same.
(sources): same.
(create_minicard_view): same.
(table_double_click): same.
(create_table_view): same.
(e_contact_print_destroy): same.
(e_contact_print_button): same.
(e_addressbook_view_print): same, and remove the PENDING_PORT_WORK
ifdef.
(e_addressbook_view_print_preview): same.
(do_remove): gtk_->g_ changes.
(e_addressbook_view_save_state): same.
(view_transfer_cards): same.
* gui/widgets/e-addressbook-view.h (struct _EAddressbookView):
GtkObject -> GObject.
* gui/widgets/e-addressbook-util.c (e_addressbook_error_dialog):
GnomeDialog -> GtkDialog.
* gui/widgets/e-addressbook-table-adapter.c
(addressbook_set_value_at): a gtk_->g_ change i missed.
(e_addressbook_table_adapter_class_init): gtk_type_class ->
g_type_class_peek_parent.
* gui/widgets/e-addressbook-reflow-adapter.c
(addressbook_get_property): use g_object_get_property for
aggregated properties.
(e_addressbook_reflow_adapter_class_init): gtk_type_class ->
g_type_class_peek_parent.
* gui/merging/e-card-merging.c (match_query_callback): some misc
gtk_->g_ changes i missed.
svn path=/trunk/; revision=18682
Diffstat (limited to 'addressbook/gui/widgets/test-minicard-view.c')
-rw-r--r-- | addressbook/gui/widgets/test-minicard-view.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/addressbook/gui/widgets/test-minicard-view.c b/addressbook/gui/widgets/test-minicard-view.c index 4626d5e205..e14443b01e 100644 --- a/addressbook/gui/widgets/test-minicard-view.c +++ b/addressbook/gui/widgets/test-minicard-view.c @@ -63,9 +63,9 @@ static void allocate_callback(GtkWidget *canvas, GtkAllocation *allocation, gpoi gnome_canvas_item_set( reflow, "minimum_width", (double) allocation->width, NULL ); - gtk_object_get(GTK_OBJECT(reflow), - "width", &width, - NULL); + g_object_get(reflow, + "width", &width, + NULL); width = MAX(width, allocation->width); gnome_canvas_set_scroll_region(GNOME_CANVAS( canvas ), 0, 0, width, allocation->height ); gnome_canvas_item_set( rect, @@ -77,9 +77,9 @@ static void allocate_callback(GtkWidget *canvas, GtkAllocation *allocation, gpoi static void resize(GnomeCanvas *canvas, gpointer data) { double width; - gtk_object_get(GTK_OBJECT(reflow), - "width", &width, - NULL); + g_object_get(reflow, + "width", &width, + NULL); width = MAX(width, last_alloc.width); gnome_canvas_set_scroll_region(canvas , 0, 0, width, last_alloc.height ); gnome_canvas_item_set( rect, @@ -117,8 +117,8 @@ book_open_cb (EBook *book, EBookStatus status, gpointer closure) NULL); } -static guint -ebook_create (void) +static gboolean +ebook_create (gpointer data) { EBook *book; @@ -199,7 +199,7 @@ int main( int argc, char *argv[] ) gtk_widget_show_all( app ); gdk_window_set_back_pixmap( GTK_LAYOUT(canvas)->bin_window, NULL, FALSE); - gtk_idle_add ((GtkFunction) ebook_create, NULL); + g_idle_add (ebook_create, NULL); bonobo_main (); |