Draw grips in all edges.

* tests/testgtk.c (create_resize_grips): Draw grips in all edges.
This commit is contained in:
Matthias Clasen 2002-11-08 23:54:10 +00:00
parent 908bee9b3f
commit d98e464ba2
7 changed files with 68 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2002-11-09 Matthias Clasen <maclas@gmx.de>
* tests/testgtk.c (create_resize_grips): Draw grips in all edges.
* gdk/x11/gdkfont-x11.c (gdk_text_extents_wc):
(gdk_text_extents):
* gdk/gdkfont.c (gdk_string_extents): Reformulate doc comments to

View File

@ -1,5 +1,7 @@
2002-11-09 Matthias Clasen <maclas@gmx.de>
* tests/testgtk.c (create_resize_grips): Draw grips in all edges.
* gdk/x11/gdkfont-x11.c (gdk_text_extents_wc):
(gdk_text_extents):
* gdk/gdkfont.c (gdk_string_extents): Reformulate doc comments to

View File

@ -1,5 +1,7 @@
2002-11-09 Matthias Clasen <maclas@gmx.de>
* tests/testgtk.c (create_resize_grips): Draw grips in all edges.
* gdk/x11/gdkfont-x11.c (gdk_text_extents_wc):
(gdk_text_extents):
* gdk/gdkfont.c (gdk_string_extents): Reformulate doc comments to

View File

@ -1,5 +1,7 @@
2002-11-09 Matthias Clasen <maclas@gmx.de>
* tests/testgtk.c (create_resize_grips): Draw grips in all edges.
* gdk/x11/gdkfont-x11.c (gdk_text_extents_wc):
(gdk_text_extents):
* gdk/gdkfont.c (gdk_string_extents): Reformulate doc comments to

View File

@ -1,5 +1,7 @@
2002-11-09 Matthias Clasen <maclas@gmx.de>
* tests/testgtk.c (create_resize_grips): Draw grips in all edges.
* gdk/x11/gdkfont-x11.c (gdk_text_extents_wc):
(gdk_text_extents):
* gdk/gdkfont.c (gdk_string_extents): Reformulate doc comments to

View File

@ -1,5 +1,7 @@
2002-11-09 Matthias Clasen <maclas@gmx.de>
* tests/testgtk.c (create_resize_grips): Draw grips in all edges.
* gdk/x11/gdkfont-x11.c (gdk_text_extents_wc):
(gdk_text_extents):
* gdk/gdkfont.c (gdk_string_extents): Reformulate doc comments to

View File

@ -2842,6 +2842,62 @@ create_resize_grips (GtkWidget *widget)
vbox = gtk_vbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (window), vbox);
hbox = gtk_hbox_new (FALSE, 0);
gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0);
/* North west */
area = gtk_drawing_area_new ();
gtk_widget_add_events (area, GDK_BUTTON_PRESS_MASK);
gtk_box_pack_start (GTK_BOX (hbox), area, TRUE, TRUE, 0);
g_signal_connect (area, "expose_event", G_CALLBACK (grippy_expose),
GINT_TO_POINTER (GDK_WINDOW_EDGE_NORTH_WEST));
g_signal_connect (area, "button_press_event", G_CALLBACK (grippy_button_press),
GINT_TO_POINTER (GDK_WINDOW_EDGE_NORTH_WEST));
/* North */
area = gtk_drawing_area_new ();
gtk_widget_add_events (area, GDK_BUTTON_PRESS_MASK);
gtk_box_pack_start (GTK_BOX (hbox), area, TRUE, TRUE, 0);
g_signal_connect (area, "expose_event", G_CALLBACK (grippy_expose),
GINT_TO_POINTER (GDK_WINDOW_EDGE_NORTH));
g_signal_connect (area, "button_press_event", G_CALLBACK (grippy_button_press),
GINT_TO_POINTER (GDK_WINDOW_EDGE_NORTH));
/* North east */
area = gtk_drawing_area_new ();
gtk_widget_add_events (area, GDK_BUTTON_PRESS_MASK);
gtk_box_pack_start (GTK_BOX (hbox), area, TRUE, TRUE, 0);
g_signal_connect (area, "expose_event", G_CALLBACK (grippy_expose),
GINT_TO_POINTER (GDK_WINDOW_EDGE_NORTH_EAST));
g_signal_connect (area, "button_press_event", G_CALLBACK (grippy_button_press),
GINT_TO_POINTER (GDK_WINDOW_EDGE_NORTH_EAST));
hbox = gtk_hbox_new (FALSE, 0);
gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0);
/* West */
area = gtk_drawing_area_new ();
gtk_widget_add_events (area, GDK_BUTTON_PRESS_MASK);
gtk_box_pack_start (GTK_BOX (hbox), area, TRUE, TRUE, 0);
g_signal_connect (area, "expose_event", G_CALLBACK (grippy_expose),
GINT_TO_POINTER (GDK_WINDOW_EDGE_WEST));
g_signal_connect (area, "button_press_event", G_CALLBACK (grippy_button_press),
GINT_TO_POINTER (GDK_WINDOW_EDGE_WEST));
/* Middle */
area = gtk_drawing_area_new ();
gtk_box_pack_start (GTK_BOX (hbox), area, TRUE, TRUE, 0);
/* East */
area = gtk_drawing_area_new ();
gtk_widget_add_events (area, GDK_BUTTON_PRESS_MASK);
gtk_box_pack_start (GTK_BOX (hbox), area, TRUE, TRUE, 0);
g_signal_connect (area, "expose_event", G_CALLBACK (grippy_expose),
GINT_TO_POINTER (GDK_WINDOW_EDGE_EAST));
g_signal_connect (area, "button_press_event", G_CALLBACK (grippy_button_press),
GINT_TO_POINTER (GDK_WINDOW_EDGE_EAST));
hbox = gtk_hbox_new (FALSE, 0);
gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0);