Commit fa3293eb authored by Jonathan Blandford's avatar Jonathan Blandford Committed by Jonathan Blandford

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.
parent f135a7cf
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
......
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
......
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
......
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>
......
docs/reference/gtk/images/button.png

1.85 KB | W: | H:

docs/reference/gtk/images/button.png

1.81 KB | W: | H:

docs/reference/gtk/images/button.png
docs/reference/gtk/images/button.png
docs/reference/gtk/images/button.png
docs/reference/gtk/images/button.png
  • 2-up
  • Swipe
  • Onion skin
docs/reference/gtk/images/entry.png

1.55 KB | W: | H:

docs/reference/gtk/images/entry.png

1.61 KB | W: | H:

docs/reference/gtk/images/entry.png
docs/reference/gtk/images/entry.png
docs/reference/gtk/images/entry.png
docs/reference/gtk/images/entry.png
  • 2-up
  • Swipe
  • Onion skin
docs/reference/gtk/images/frame.png

2.23 KB | W: | H:

docs/reference/gtk/images/frame.png

2.17 KB | W: | H:

docs/reference/gtk/images/frame.png
docs/reference/gtk/images/frame.png
docs/reference/gtk/images/frame.png
docs/reference/gtk/images/frame.png
  • 2-up
  • Swipe
  • Onion skin
docs/reference/gtk/images/icon-view.png

5.53 KB | W: | H:

docs/reference/gtk/images/icon-view.png

5.62 KB | W: | H:

docs/reference/gtk/images/icon-view.png
docs/reference/gtk/images/icon-view.png
docs/reference/gtk/images/icon-view.png
docs/reference/gtk/images/icon-view.png
  • 2-up
  • Swipe
  • Onion skin
docs/reference/gtk/images/label.png

1.4 KB | W: | H:

docs/reference/gtk/images/label.png

1.6 KB | W: | H:

docs/reference/gtk/images/label.png
docs/reference/gtk/images/label.png
docs/reference/gtk/images/label.png
docs/reference/gtk/images/label.png
  • 2-up
  • Swipe
  • Onion skin
docs/reference/gtk/images/panes.png

4.97 KB | W: | H:

docs/reference/gtk/images/panes.png

4.47 KB | W: | H:

docs/reference/gtk/images/panes.png
docs/reference/gtk/images/panes.png
docs/reference/gtk/images/panes.png
docs/reference/gtk/images/panes.png
  • 2-up
  • Swipe
  • Onion skin
docs/reference/gtk/images/separator.png

4.78 KB | W: | H:

docs/reference/gtk/images/separator.png

4.72 KB | W: | H:

docs/reference/gtk/images/separator.png
docs/reference/gtk/images/separator.png
docs/reference/gtk/images/separator.png
docs/reference/gtk/images/separator.png
  • 2-up
  • Swipe
  • Onion skin
docs/reference/gtk/images/window.png

5.5 KB | W: | H:

docs/reference/gtk/images/window.png

2.57 KB | W: | H:

docs/reference/gtk/images/window.png
docs/reference/gtk/images/window.png
docs/reference/gtk/images/window.png
docs/reference/gtk/images/window.png
  • 2-up
  • Swipe
  • Onion skin
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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment