diff options
author | Chris Lahey <clahey@src.gnome.org> | 2000-01-21 08:35:45 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-01-21 08:35:45 +0800 |
commit | 07af9adcd6731f65e158d8807e85a19dab7bb736 (patch) | |
tree | d06237f56820a6c4bd8200be622559b101fa6a2f /widgets/e-minicard/test-reflow.c | |
parent | 73107b49d42b02754e6facd890c3ed16eebe0a47 (diff) | |
download | gsoc2013-evolution-07af9adcd6731f65e158d8807e85a19dab7bb736.tar.gz gsoc2013-evolution-07af9adcd6731f65e158d8807e85a19dab7bb736.tar.zst gsoc2013-evolution-07af9adcd6731f65e158d8807e85a19dab7bb736.zip |
Changed some line spacing.
* widgets/e-text-event-processor-types.h: Changed some line
spacing.
* widgets/test-reflow.c: Connected to the resize signal of the
reflow.
* widgets/e-minicard.c: Made width argument set function only
update if width is different.
* widgets/e-reflow.h, widgets/e-reflow.c: Added draggable column dividers.
* addressbook/contact-editor/test-editor.c: Open two dialogs for
more interesting testing.
* addressbook/contact-editor/e-contact-editor.h,
addressbook/contact-editor/e-contact-editor.c: Modified to use
glade. Added menus to change which phone/address/email entries to
view. Added images to the dialog.
* addressbook/contact-editor/e-contact-editor-strings.h,
addressbook/contact-editor/contact-editor.glade: Glade files for
the contact editor dialog.
* addressbook/contact-editor/Makefile.am: Added images and added
glade stuff.
* addressbook/contact-editor/arrow.png,
addressbook/contact-editor/briefcase.png,
addressbook/contact-editor/netfreebusy.png,
addressbook/contact-editor/netmeeting.png: Image files for the
contact editor dialog.
svn path=/trunk/; revision=1599
Diffstat (limited to 'widgets/e-minicard/test-reflow.c')
-rw-r--r-- | widgets/e-minicard/test-reflow.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/widgets/e-minicard/test-reflow.c b/widgets/e-minicard/test-reflow.c index f03232c72d..067e520754 100644 --- a/widgets/e-minicard/test-reflow.c +++ b/widgets/e-minicard/test-reflow.c @@ -26,6 +26,7 @@ /* This is a horrible thing to do, but it is just a test. */ GnomeCanvasItem *reflow; GnomeCanvasItem *rect; +GtkAllocation last_alloc; static void destroy_callback(GtkWidget *app, gpointer data) { @@ -35,6 +36,7 @@ static void destroy_callback(GtkWidget *app, gpointer data) static void allocate_callback(GtkWidget *canvas, GtkAllocation *allocation, gpointer data) { double width; + last_alloc = *allocation; gnome_canvas_item_set( reflow, "height", (double) allocation->height, NULL ); @@ -49,6 +51,20 @@ static void allocate_callback(GtkWidget *canvas, GtkAllocation *allocation, gpoi NULL ); } +static void resize(GnomeCanvasItem *item, gpointer data) +{ + double width; + gtk_object_get(GTK_OBJECT(reflow), + "width", &width, + NULL); + width = MAX(width, last_alloc.width); + gnome_canvas_set_scroll_region(item->canvas , 0, 0, width, last_alloc.height ); + gnome_canvas_item_set( rect, + "x2", (double) width, + "y2", (double) last_alloc.height, + NULL ); +} + static void about_callback( GtkWidget *widget, gpointer data ) { @@ -98,6 +114,9 @@ int main( int argc, char *argv[] ) "y", (double) 0, "height", (double) 100, NULL ); + gtk_signal_connect( GTK_OBJECT( reflow ), "resize", + GTK_SIGNAL_FUNC( resize ), + ( gpointer ) app); for ( i = 0; i < 200; i++ ) { GnomeCanvasItem *item; |