load images at normal size.
Thu Sep 16 02:07:56 2004 Jonathan Blandford <jrb@gnome.org> * docs/tools/widgets.c (create_icon_view): load images at normal size. * docs/reference/gtk/images/*png: Update shots.
@ -1,3 +1,10 @@
|
||||
Thu Sep 16 02:07:56 2004 Jonathan Blandford <jrb@gnome.org>
|
||||
|
||||
* docs/tools/widgets.c (create_icon_view): load images at normal
|
||||
size.
|
||||
|
||||
* docs/reference/gtk/images/*png: Update shots.
|
||||
|
||||
Thu Sep 16 00:33:11 2004 Jonathan Blandford <jrb@gnome.org>
|
||||
|
||||
* docs/tools/widgets.c (new_widget_info): Add constrained sizing
|
||||
|
@ -1,3 +1,10 @@
|
||||
Thu Sep 16 02:07:56 2004 Jonathan Blandford <jrb@gnome.org>
|
||||
|
||||
* docs/tools/widgets.c (create_icon_view): load images at normal
|
||||
size.
|
||||
|
||||
* docs/reference/gtk/images/*png: Update shots.
|
||||
|
||||
Thu Sep 16 00:33:11 2004 Jonathan Blandford <jrb@gnome.org>
|
||||
|
||||
* docs/tools/widgets.c (new_widget_info): Add constrained sizing
|
||||
|
@ -1,3 +1,10 @@
|
||||
Thu Sep 16 02:07:56 2004 Jonathan Blandford <jrb@gnome.org>
|
||||
|
||||
* docs/tools/widgets.c (create_icon_view): load images at normal
|
||||
size.
|
||||
|
||||
* docs/reference/gtk/images/*png: Update shots.
|
||||
|
||||
Thu Sep 16 00:33:11 2004 Jonathan Blandford <jrb@gnome.org>
|
||||
|
||||
* docs/tools/widgets.c (new_widget_info): Add constrained sizing
|
||||
|
@ -1,3 +1,10 @@
|
||||
Thu Sep 16 02:07:56 2004 Jonathan Blandford <jrb@gnome.org>
|
||||
|
||||
* docs/tools/widgets.c (create_icon_view): load images at normal
|
||||
size.
|
||||
|
||||
* docs/reference/gtk/images/*png: Update shots.
|
||||
|
||||
Thu Sep 16 00:33:11 2004 Jonathan Blandford <jrb@gnome.org>
|
||||
|
||||
* docs/tools/widgets.c (new_widget_info): Add constrained sizing
|
||||
|
@ -60,9 +60,11 @@ End:
|
||||
@filename:
|
||||
@width:
|
||||
@height:
|
||||
@keep_aspect_ratio:
|
||||
@preserve_aspect_ratio:
|
||||
@error:
|
||||
@Returns:
|
||||
<!-- # Unused Parameters # -->
|
||||
@keep_aspect_ratio:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gdk_pixbuf_get_file_info ##### -->
|
||||
|
@ -417,7 +417,7 @@ only available if the X server supports the XFIXES extension.
|
||||
@owner: the new owner of the selection
|
||||
@reason: the reason for the ownership change as a #GdkOwnerChange value
|
||||
@selection: the atom identifying the selection
|
||||
@time: the timestamp of the event
|
||||
@time: the timestamp of the event
|
||||
@selection_time: the time at which the selection ownership was taken over
|
||||
|
||||
<!-- ##### ENUM GdkScrollDirection ##### -->
|
||||
@ -509,3 +509,4 @@ Specifies why a selection ownership was changed.
|
||||
@GDK_OWNER_CHANGE_NEW_OWNER: some other app claimed the ownership
|
||||
@GDK_OWNER_CHANGE_DESTROY: the window was destroyed
|
||||
@GDK_OWNER_CHANGE_CLOSE: the client was closed
|
||||
|
||||
|
@ -450,7 +450,7 @@ about which dither mode is desired; if the display is not ditherable, it may
|
||||
make sense to gray out or hide the corresponding UI widget.
|
||||
</para>
|
||||
|
||||
@cmap: a #GdkColormap
|
||||
@cmap: a #GdkColormap
|
||||
@Returns: %TRUE if the visual associated with @cmap is ditherable.
|
||||
|
||||
|
||||
|
@ -723,6 +723,22 @@ Registers a window as a potential drop destination.
|
||||
@y_offset:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gdk_window_enable_synchronized_configure ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@window:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gdk_window_configure_finished ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@window:
|
||||
|
||||
|
||||
<!-- ##### FUNCTION gdk_window_set_user_data ##### -->
|
||||
<para>
|
||||
|
||||
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 2.6 KiB |
13
docs/tools/README.shooter
Normal file
@ -0,0 +1,13 @@
|
||||
The doc shooter is used to take screenshots of widgets for the GTK+
|
||||
reference manuals. We use these images for both the headers of the
|
||||
images, and for the visual index of GNOME images. They aren't part of
|
||||
the docs build. Instead, the images are taken, and then copied by hand
|
||||
into gtk+/docs/reference/gtk/images/
|
||||
|
||||
Ideally, the images should be taken once a release, and all images
|
||||
should be updated at the same time. A simple theme should be used to
|
||||
take the screenshots, and in the future, we may include a gtkrc file in
|
||||
this directory for the shooter to use. Currently, all shots are
|
||||
constrained to the same width. Care should be taken when adding new
|
||||
widgets to keep this constraint.
|
||||
|
@ -245,10 +245,10 @@ create_icon_view (void)
|
||||
gtk_frame_set_shadow_type (GTK_FRAME (widget), GTK_SHADOW_IN);
|
||||
list_store = gtk_list_store_new (2, G_TYPE_STRING, GDK_TYPE_PIXBUF);
|
||||
gtk_list_store_append (list_store, &iter);
|
||||
pixbuf = gdk_pixbuf_new_from_file_at_size ("gnome-gmush.png", 20, 20, NULL);
|
||||
pixbuf = gdk_pixbuf_new_from_file ("gnome-gmush.png", NULL);
|
||||
gtk_list_store_set (list_store, &iter, 0, "One", 1, pixbuf, -1);
|
||||
gtk_list_store_append (list_store, &iter);
|
||||
pixbuf = gdk_pixbuf_new_from_file_at_size ("gnome-foot.png", 20, 20, NULL);
|
||||
pixbuf = gdk_pixbuf_new_from_file ("gnome-foot.png", NULL);
|
||||
gtk_list_store_set (list_store, &iter, 0, "Two", 1, pixbuf, -1);
|
||||
|
||||
icon_view = gtk_icon_view_new();
|
||||
|
@ -1414,6 +1414,10 @@ gtk_cell_renderer_text_get_size (GtkCellRenderer *cell,
|
||||
{
|
||||
*x_offset = ((gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL) ?
|
||||
(1.0 - cell->xalign) : cell->xalign) * (cell_area->width - rect.width - (2 * cell->xpad));
|
||||
if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL)
|
||||
*x_offset -= rect.width;
|
||||
if (celltext->text && !strcmp ("Makefile", celltext->text))
|
||||
g_print ("x_offset: %d %d %d\n", cell_area->width, *x_offset, rect.width);
|
||||
*x_offset = MAX (*x_offset, 0);
|
||||
}
|
||||
if (y_offset)
|
||||
@ -1505,6 +1509,8 @@ gtk_cell_renderer_text_render (GtkCellRenderer *cell,
|
||||
else
|
||||
pango_layout_set_width (layout, -1);
|
||||
|
||||
if (celltext->text && !strcmp ("Makefile", celltext->text))
|
||||
g_print ("render: %d %d %d\n", cell_area->x, cell_area->width, cell_area->x + x_offset + cell->xpad);
|
||||
gtk_paint_layout (widget->style,
|
||||
window,
|
||||
state,
|
||||
@ -1515,6 +1521,12 @@ gtk_cell_renderer_text_render (GtkCellRenderer *cell,
|
||||
cell_area->x + x_offset + cell->xpad,
|
||||
cell_area->y + y_offset + cell->ypad,
|
||||
layout);
|
||||
gdk_draw_line (window, widget->style->black_gc,
|
||||
cell_area->x + x_offset + cell->xpad,
|
||||
cell_area->y + y_offset + cell->ypad,
|
||||
cell_area->x + x_offset + cell->xpad,
|
||||
cell_area->y + y_offset + cell->ypad + 20);
|
||||
|
||||
|
||||
g_object_unref (layout);
|
||||
}
|
||||
|