forked from AuroraMiddleware/gtk
Fix minor typos
This commit is contained in:
parent
92bc78c12f
commit
01bd4cc4e1
@ -197,7 +197,7 @@ gtk_gears_class_init (GtkGearsClass *klass)
|
||||
* @param v the vertex to fill
|
||||
* @param x the x coordinate
|
||||
* @param y the y coordinate
|
||||
* @param z the z coortinate
|
||||
* @param z the z coordinate
|
||||
* @param n pointer to the normal table
|
||||
*
|
||||
* @return the operation error code
|
||||
|
@ -150,7 +150,7 @@
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="favorite-buttton">
|
||||
<object class="GtkButton" id="favorite-button">
|
||||
<property name="label" translatable="yes">Favorite</property>
|
||||
<property name="receives-default">1</property>
|
||||
<property name="has-frame">0</property>
|
||||
|
@ -61,7 +61,7 @@ activate_about (GSimpleAction *action,
|
||||
gtk_get_major_version (),
|
||||
gtk_get_minor_version (),
|
||||
gtk_get_micro_version ());
|
||||
g_string_append_printf (s, "\nA link can apppear here: <http://www.gtk.org>");
|
||||
g_string_append_printf (s, "\nA link can appear here: <http://www.gtk.org>");
|
||||
|
||||
version = g_strdup_printf ("%s\nRunning against GTK %d.%d.%d",
|
||||
PACKAGE_VERSION,
|
||||
|
@ -218,7 +218,7 @@ gtk_nuclear_media_stream_seek (GtkMediaStream *stream,
|
||||
gtk_media_stream_seek_success (stream);
|
||||
|
||||
/* We also have to update our timestamp and tell the
|
||||
* paintable interface abbout the seek
|
||||
* paintable interface about the seek
|
||||
*/
|
||||
gtk_media_stream_update (stream, nuclear->progress);
|
||||
gdk_paintable_invalidate_contents (GDK_PAINTABLE (nuclear));
|
||||
@ -263,7 +263,7 @@ gtk_nuclear_media_stream_init (GtkNuclearMediaStream *nuclear)
|
||||
/* This time, we don't have to add a timer here, because media
|
||||
* streams start paused.
|
||||
*
|
||||
* However, media streams need to tell GTK once they are intialized,
|
||||
* However, media streams need to tell GTK once they are initialized,
|
||||
* so we do that here.
|
||||
*/
|
||||
gtk_media_stream_prepared (GTK_MEDIA_STREAM (nuclear),
|
||||
|
@ -271,7 +271,7 @@ activate_about (GSimpleAction *action,
|
||||
gtk_get_major_version (),
|
||||
gtk_get_minor_version (),
|
||||
gtk_get_micro_version ());
|
||||
g_string_append_printf (s, "\nA link can apppear here: <http://www.gtk.org>");
|
||||
g_string_append_printf (s, "\nA link can appear here: <http://www.gtk.org>");
|
||||
|
||||
version = g_strdup_printf ("%s\nRunning against GTK %d.%d.%d",
|
||||
PACKAGE_VERSION,
|
||||
|
@ -198,7 +198,7 @@ Checks whether the widget is set to be visible or not.
|
||||
|
||||
### Actions
|
||||
|
||||
- Actions are new in GTK 4, and gtk-doc had to learn a a new syntax
|
||||
- Actions are new in GTK 4, and gtk-doc had to learn a new syntax
|
||||
to document them:
|
||||
|
||||
```
|
||||
|
@ -120,7 +120,7 @@ The segment class also contains two data fields:
|
||||
has right gravity, because as you type new text is inserted,
|
||||
and the cursor ends up on the right.
|
||||
|
||||
The segment itself contains contains a header, plus some
|
||||
The segment itself contains a header, plus some
|
||||
variable-length data that depends on the type of the segment.
|
||||
The header contains the length of the segment in characters and in
|
||||
bytes. Some segments have a length of zero. Segments with nonzero
|
||||
|
@ -641,7 +641,7 @@ gdk_device_get_surface_at_position (GdkDevice *device,
|
||||
/**
|
||||
* gdk_device_get_history: (skip)
|
||||
* @device: a #GdkDevice
|
||||
* @surface: the surface with respect to which which the event coordinates will be reported
|
||||
* @surface: the surface with respect to which the event coordinates will be reported
|
||||
* @start: starting timestamp for range of events to return
|
||||
* @stop: ending timestamp for the range of events to return
|
||||
* @events: (array length=n_events) (out) (transfer full) (optional):
|
||||
|
@ -175,7 +175,7 @@ gdk_display_class_init (GdkDisplayClass *class)
|
||||
/**
|
||||
* GdkDisplay:composited:
|
||||
*
|
||||
* %TRUE if the display properly composits the alpha channel.
|
||||
* %TRUE if the display properly composites the alpha channel.
|
||||
* See gdk_display_is_composited() for details.
|
||||
*/
|
||||
props[PROP_COMPOSITED] =
|
||||
|
@ -219,7 +219,7 @@ static const gchar *allowed_backends;
|
||||
*
|
||||
* Sets a list of backends that GDK should try to use.
|
||||
*
|
||||
* This can be be useful if your application does not
|
||||
* This can be useful if your application does not
|
||||
* work with certain GDK backends.
|
||||
*
|
||||
* By default, GDK tries all included backends.
|
||||
|
@ -465,7 +465,7 @@ gdk_paintable_compute_concrete_size (GdkPaintable *paintable,
|
||||
image_aspect = gdk_paintable_get_intrinsic_aspect_ratio (paintable);
|
||||
|
||||
/* If the specified size has neither a definite width nor height,
|
||||
* and has no additional contraints, the dimensions of the concrete
|
||||
* and has no additional constraints, the dimensions of the concrete
|
||||
* object size are calculated as follows:
|
||||
*/
|
||||
if (specified_width == 0.0 && specified_height == 0.0)
|
||||
|
@ -600,7 +600,7 @@ gdk_surface_class_init (GdkSurfaceClass *klass)
|
||||
gdk_surface_event_marshallerv);
|
||||
|
||||
/**
|
||||
* GdkSurface::enter-montor:
|
||||
* GdkSurface::enter-monitor:
|
||||
* @surface: the #GdkSurface
|
||||
* @monitor: the monitor
|
||||
*
|
||||
@ -619,7 +619,7 @@ gdk_surface_class_init (GdkSurfaceClass *klass)
|
||||
GDK_TYPE_MONITOR);
|
||||
|
||||
/**
|
||||
* GdkSurface::leave-montor:
|
||||
* GdkSurface::leave-monitor:
|
||||
* @surface: the #GdkSurface
|
||||
* @monitor: the monitor
|
||||
*
|
||||
@ -2570,7 +2570,7 @@ gdk_surface_get_frame_clock (GdkSurface *surface)
|
||||
* gdk_surface_get_scale_factor:
|
||||
* @surface: surface to get scale factor for
|
||||
*
|
||||
* Returns the internal scale factor that maps from surface coordiantes
|
||||
* Returns the internal scale factor that maps from surface coordinates
|
||||
* to the actual device pixels. On traditional systems this is 1, but
|
||||
* on very high density outputs this can be a higher value (often 2).
|
||||
*
|
||||
|
@ -475,7 +475,7 @@ gdk_toplevel_supports_edge_constraints (GdkToplevel *toplevel)
|
||||
*
|
||||
* If granted, the rerouting remains active until the default shortcuts
|
||||
* processing is restored with gdk_toplevel_restore_system_shortcuts(),
|
||||
* or the request is revoked by the desktop enviroment, windowing system
|
||||
* or the request is revoked by the desktop environment, windowing system
|
||||
* or the user.
|
||||
*
|
||||
* A typical use case for this API is remote desktop or virtual machine
|
||||
|
@ -101,7 +101,7 @@ gdk_vulkan_strerror (VkResult result)
|
||||
* encountered a newly added Vulkan error message.
|
||||
* You want to add it to this enum now.
|
||||
*
|
||||
* Becuse the Vulkan people don't make adding this too easy, here's
|
||||
* Because the Vulkan people don't make adding this too easy, here's
|
||||
* the process to manage it:
|
||||
* 1. go to
|
||||
* https://github.com/KhronosGroup/Vulkan-Headers/blob/master/include/vulkan/vulkan_core.h
|
||||
@ -203,7 +203,7 @@ gdk_vulkan_strerror (VkResult result)
|
||||
#endif
|
||||
#if VK_HEADER_VERSION >= 105
|
||||
case VK_ERROR_FULL_SCREEN_EXCLUSIVE_MODE_LOST_EXT:
|
||||
return "An operation on a swapchain created with VK_FULL_SCREEN_EXCLUSIVE_APPLICATION_CONTROLLED_EXT failed as it did not have exlusive full-screen access.";
|
||||
return "An operation on a swapchain created with VK_FULL_SCREEN_EXCLUSIVE_APPLICATION_CONTROLLED_EXT failed as it did not have exclusive full-screen access.";
|
||||
#endif
|
||||
#if VK_HEADER_VERSION >= 131
|
||||
case VK_ERROR_UNKNOWN:
|
||||
|
@ -59,7 +59,7 @@ static int current_loop_level = 0;
|
||||
static int acquired_loop_level = -1;
|
||||
|
||||
/* Between run_loop_before_waiting() and run_loop_after_waiting();
|
||||
* whether we we need to call select_thread_collect_poll()
|
||||
* whether we need to call select_thread_collect_poll()
|
||||
*/
|
||||
static gboolean run_loop_polling_async = FALSE;
|
||||
|
||||
@ -95,7 +95,7 @@ static GPollFD event_poll_fd;
|
||||
|
||||
/* Current NSEvents that we've gotten from Cocoa but haven't yet converted
|
||||
* to GdkEvents. We wait until our dispatch() function to do the conversion
|
||||
* since the conversion can conceivably cause signals to be emmitted
|
||||
* since the conversion can conceivably cause signals to be emitted
|
||||
* or other things that shouldn’t happen inside a poll function.
|
||||
*/
|
||||
static GQueue *current_events;
|
||||
@ -132,7 +132,7 @@ static gint getting_events = 0;
|
||||
************************************************************/
|
||||
|
||||
/* The states in our state machine, see comments in select_thread_func()
|
||||
* for descriptiions of each state
|
||||
* for descriptions of each state
|
||||
*/
|
||||
typedef enum {
|
||||
BEFORE_START,
|
||||
@ -235,7 +235,7 @@ select_thread_func (void *arg)
|
||||
case WAITING:
|
||||
/* Waiting for a set of file descriptors to be submitted by the main thread
|
||||
*
|
||||
* => POLLING_QUEUED: main thread thread submits a set of file descriptors
|
||||
* => POLLING_QUEUED: main thread submits a set of file descriptors
|
||||
*/
|
||||
SELECT_THREAD_WAIT ();
|
||||
break;
|
||||
|
@ -100,7 +100,7 @@ create_tmpfile_cloexec(char *tmpname)
|
||||
*
|
||||
* If the C library implements posix_fallocate(), it is used to
|
||||
* guarantee that disk space is available for the file at the
|
||||
* given size. If disk space is insufficent, errno is set to ENOSPC.
|
||||
* given size. If disk space is insufficient, errno is set to ENOSPC.
|
||||
* If posix_fallocate() is not supported, program may receive
|
||||
* SIGBUS on accessing mmap()'ed file contents instead.
|
||||
*
|
||||
|
@ -644,7 +644,7 @@ _gdk_wayland_display_open (const gchar *display_name)
|
||||
_gdk_wayland_display_async_roundtrip (display_wayland);
|
||||
|
||||
/* Wait for initializing to complete. This means waiting for all
|
||||
* asynchrounous roundtrips that were triggered during initial roundtrip. */
|
||||
* asynchronous roundtrips that were triggered during initial roundtrip. */
|
||||
while (display_wayland->async_roundtrips != NULL)
|
||||
{
|
||||
if (wl_display_dispatch (display_wayland->wl_display) < 0)
|
||||
|
@ -1308,7 +1308,7 @@ gdk_wayland_surface_configure_toplevel (GdkSurface *surface)
|
||||
geometry_mask &= ~GDK_HINT_RESIZE_INC;
|
||||
if (!saved_size)
|
||||
{
|
||||
/* Do not reapply contrains if we are restoring original size */
|
||||
/* Do not reapply constrains if we are restoring original size */
|
||||
gdk_surface_constrain_size (&impl->geometry_hints,
|
||||
geometry_mask,
|
||||
width + impl->margin_left + impl->margin_right,
|
||||
|
@ -42,7 +42,7 @@ gdk_wayland_vulkan_context_create_surface (GdkVulkanContext *context,
|
||||
|
||||
/* This is necessary so that Vulkan sees the Surface.
|
||||
* Usually, vkCreateXlibSurfaceKHR() will not cause a problem to happen as
|
||||
* it just creates resources, but futher calls with the resulting surface
|
||||
* it just creates resources, but further calls with the resulting surface
|
||||
* do cause issues.
|
||||
*/
|
||||
gdk_display_sync (display);
|
||||
|
@ -105,7 +105,7 @@ On GDK-Win32:
|
||||
|
||||
Any operations that require OpenClipboard()/CloseClipboard() combo (i.e.
|
||||
almost everything, except for WM_RENDERFORMAT handling) is offloaded into
|
||||
separate thread, which tries to to complete any operations in the queue.
|
||||
separate thread, which tries to complete any operations in the queue.
|
||||
Each operation routine usually starts with a timeout check (all operations
|
||||
time out after 30 seconds), then a check for clipboard status (to abort
|
||||
any operations that became obsolete due to clipboard status being changed -
|
||||
|
@ -84,7 +84,7 @@
|
||||
* GDK will also offer "PNG" and CF_DIB W32 formats.
|
||||
* * If GTK+ application provides text/plain;charset=utf8, GDK will also offer
|
||||
* CF_UNICODETEXT (UTF-16-encoded) and CF_TEXT (encoded with thread-
|
||||
* and locale-depenant codepage), and will do the conversion when such
|
||||
* and locale-dependent codepage), and will do the conversion when such
|
||||
* data is requested.
|
||||
* * If GTK+ application accepts image/png, image/gif or image/jpeg,
|
||||
* GDK will claim to also accept "PNG", "GIF" or "JFIF" respectively,
|
||||
|
@ -2321,7 +2321,7 @@ stash_window (GdkSurface *window,
|
||||
return;
|
||||
|
||||
/* MSDN is very vague, but in practice rcNormalPosition is the same as GetWindowRect(),
|
||||
* only with adjustments for toolbars (which creates rather weird coodinate space issues).
|
||||
* only with adjustments for toolbars (which creates rather weird coordinate space issues).
|
||||
* We need to get monitor info and apply workarea vs monitorarea diff to turn
|
||||
* these into screen coordinates proper.
|
||||
*/
|
||||
|
@ -52,7 +52,7 @@ gdk_win32_vulkan_context_create_surface (GdkVulkanContext *context,
|
||||
|
||||
/* This is necessary so that Vulkan sees the Window.
|
||||
* Usually, vkCreateWin32SurfaceKHR() will not cause a problem to happen as
|
||||
* it just creates resources, but futher calls with the resulting surface
|
||||
* it just creates resources, but further calls with the resulting surface
|
||||
* do cause issues.
|
||||
*/
|
||||
gdk_display_sync (display);
|
||||
|
@ -585,7 +585,7 @@ gdk_x11_clipboard_store_async (GdkClipboard *clipboard,
|
||||
gsize n_atoms;
|
||||
int error;
|
||||
|
||||
/* clipboard managers don't work on anythig but the clipbpoard selection */
|
||||
/* clipboard managers don't work on anything but the clipbpoard selection */
|
||||
if (!g_str_equal (cb->selection, "CLIPBOARD"))
|
||||
{
|
||||
GDK_DISPLAY_NOTE (display, CLIPBOARD, g_printerr ("%s: can only store on CLIPBOARD\n", cb->selection));
|
||||
|
@ -230,7 +230,7 @@ gdk_x11_device_xi2_get_state (GdkDevice *device,
|
||||
{
|
||||
gint root_x, root_y;
|
||||
|
||||
/* FIXME: Maybe root coords chaching should happen here */
|
||||
/* FIXME: Maybe root coords caching should happen here */
|
||||
gdk_surface_get_origin (surface, &root_x, &root_y);
|
||||
_gdk_device_translate_screen_coord (device, surface,
|
||||
root_x, root_y,
|
||||
|
@ -1987,7 +1987,7 @@ gdk_x11_lookup_xdisplay (Display *xdisplay)
|
||||
/**
|
||||
* _gdk_x11_display_screen_for_xrootwin:
|
||||
* @display: a #GdkDisplay
|
||||
* @xrootwin: window ID for one of of the screen’s of the display.
|
||||
* @xrootwin: window ID for one of the screen’s of the display.
|
||||
*
|
||||
* Given the root window ID of one of the screen’s of a #GdkDisplay,
|
||||
* finds the screen.
|
||||
|
@ -324,7 +324,7 @@ update_keymaps (GdkX11Keymap *keymap_x11)
|
||||
/* GDK_KEY_ISO_Left_Tab, as usually configured through XKB, really messes
|
||||
* up the whole idea of "consumed modifiers" because shift is consumed.
|
||||
* However, <shift>Tab is not usually GDK_KEY_ISO_Left_Tab without XKB,
|
||||
* we we fudge the map here.
|
||||
* we fudge the map here.
|
||||
*/
|
||||
keycode = keymap_x11->min_keycode;
|
||||
while (keycode <= keymap_x11->max_keycode)
|
||||
|
@ -67,7 +67,7 @@ struct _GdkX11Screen
|
||||
* fetch of window manager name
|
||||
*/
|
||||
guint need_refetch_wm_name : 1;
|
||||
guint xft_init : 1; /* Whether we've intialized these values yet */
|
||||
guint xft_init : 1; /* Whether we've initialized these values yet */
|
||||
guint xft_antialias : 1;
|
||||
guint xft_hinting : 1;
|
||||
|
||||
|
@ -2257,7 +2257,7 @@ utf8_is_latin1 (const gchar *str)
|
||||
}
|
||||
|
||||
/* Set the property to @utf8_str as STRING if the @utf8_str is fully
|
||||
* convertable to STRING, otherwise, set it as compound text
|
||||
* convertible to STRING, otherwise, set it as compound text
|
||||
*/
|
||||
static void
|
||||
set_text_property (GdkDisplay *display,
|
||||
@ -3155,7 +3155,7 @@ gdk_x11_surface_apply_fullscreen_mode (GdkSurface *surface)
|
||||
/* FIXME: This is not part of the EWMH spec!
|
||||
*
|
||||
* There is no documented mechanism to remove the property
|
||||
* _NET_WM_FULLSCREEN_MONITORS once set, so we use use a set of
|
||||
* _NET_WM_FULLSCREEN_MONITORS once set, so we use a set of
|
||||
* invalid, largest possible value.
|
||||
*
|
||||
* When given values larger than actual possible monitor values, most
|
||||
|
@ -41,7 +41,7 @@ gdk_x11_vulkan_context_create_surface (GdkVulkanContext *context,
|
||||
|
||||
/* This is necessary so that Vulkan sees the Window.
|
||||
* Usually, vkCreateXlibSurfaceKHR() will not cause a problem to happen as
|
||||
* it just creates resources, but futher calls with the resulting surface
|
||||
* it just creates resources, but further calls with the resulting surface
|
||||
* do cause issues.
|
||||
*/
|
||||
gdk_display_sync (display);
|
||||
|
@ -456,7 +456,7 @@ gsk_border_node_draw (GskRenderNode *node,
|
||||
* | |
|
||||
* | |
|
||||
* +-------------------------+
|
||||
* That line is equidistant from all sides. It's either horiontal
|
||||
* That line is equidistant from all sides. It's either horizontal
|
||||
* or vertical, depending on if the rect is wider or taller.
|
||||
* We use the 4 sides spanned up by connecting the line to the corner
|
||||
* points to color the regions of the rectangle differently.
|
||||
@ -908,7 +908,7 @@ draw_shadow_corner (cairo_t *cr,
|
||||
*
|
||||
* The blur radius (which also defines the clip_radius)
|
||||
*
|
||||
* The the horizontal and vertical corner radius
|
||||
* The horizontal and vertical corner radius
|
||||
*
|
||||
* We apply the first position and orientation when drawing the
|
||||
* mask, so we cache rendered masks based on the blur radius and the
|
||||
|
@ -85,8 +85,8 @@ headerfile_start = """/* GTK - The GIMP Tool Kit
|
||||
* XFree86 4.0 using a set of Perl scripts. Contact Owen Taylor <otaylor@redhat.com>
|
||||
* to obtain the relevant perl scripts.
|
||||
*
|
||||
* The following compose letter letter sequences confliced
|
||||
* Dstroke/dstroke and ETH/eth; resolved to Dstroke (Croation, Vietnamese, Lappish), over
|
||||
* The following compose letter letter sequences conflicted
|
||||
* Dstroke/dstroke and ETH/eth; resolved to Dstroke (Croatian, Vietnamese, Lappish), over
|
||||
* ETH (Icelandic, Faroese, old English, IPA) [ D- -D d- -d ]
|
||||
* Amacron/amacron and ordfeminine; resolved to ordfeminine [ _A A_ a_ _a ]
|
||||
* Amacron/amacron and Atilde/atilde; resolved to atilde [ -A A- a- -a ]
|
||||
|
@ -36,7 +36,7 @@
|
||||
* derive from #GtkAccessible and implement the suitable interfaces
|
||||
* from ATK, such as #AtkText or #AtkSelection. To establish
|
||||
* the connection between the widget class and its corresponding
|
||||
* acccessible implementation, override the get_accessible vfunc
|
||||
* accessible implementation, override the get_accessible vfunc
|
||||
* in #GtkWidgetClass.
|
||||
*/
|
||||
|
||||
|
@ -86,7 +86,7 @@
|
||||
* been loaded yet, GTK+ tries to find the get_type() function from the
|
||||
* class name by applying heuristics. This works in most cases, but if
|
||||
* necessary, it is possible to specify the name of the get_type() function
|
||||
* explictly with the "type-func" attribute. As a special case, GtkBuilder
|
||||
* explicitly with the "type-func" attribute. As a special case, GtkBuilder
|
||||
* allows to use an object that has been constructed by a #GtkUIManager in
|
||||
* another part of the UI definition by specifying the id of the #GtkUIManager
|
||||
* in the “constructor” attribute and the name of the object in the “id”
|
||||
|
@ -155,7 +155,7 @@ struct _GtkCellArea
|
||||
* cell to cell inside the #GtkCellArea. The #GtkCellArea should move
|
||||
* focus from cell to cell inside the area and return %FALSE if focus
|
||||
* logically leaves the area with the following exceptions: When the
|
||||
* area contains no activatable cells, the entire area recieves focus.
|
||||
* area contains no activatable cells, the entire area receives focus.
|
||||
* Focus should not be given to cells that are actually “focus siblings”
|
||||
* of other sibling cells (see gtk_cell_area_get_focus_from_sibling()).
|
||||
* Focus is set by calling gtk_cell_area_set_focus_cell().
|
||||
@ -509,7 +509,7 @@ void gtk_cell_area_request_renderer (GtkCellArea
|
||||
* object is passed to the user function in gtk_cell_layout_set_cell_data_func.
|
||||
*
|
||||
* This private api takes gpointer & GFunc arguments to circumvent circular header file
|
||||
* dependancies.
|
||||
* dependencies.
|
||||
*/
|
||||
void _gtk_cell_area_set_cell_data_func_with_proxy (GtkCellArea *area,
|
||||
GtkCellRenderer *cell,
|
||||
|
@ -1644,7 +1644,7 @@ gtk_cell_renderer_get_preferred_size (GtkCellRenderer *cell,
|
||||
* @flags: render flags
|
||||
* @cell_area: cell area which would be passed to gtk_cell_renderer_render()
|
||||
* @aligned_area: (out): the return location for the space inside @cell_area
|
||||
* that would acually be used to render.
|
||||
* that would actually be used to render.
|
||||
*
|
||||
* Gets the aligned area used by @cell inside @cell_area. Used for finding
|
||||
* the appropriate edit and focus rectangle.
|
||||
|
@ -374,7 +374,7 @@ gtk_paint_spinner (GtkStyleContext *context,
|
||||
{
|
||||
gint inset = 0.7 * radius;
|
||||
|
||||
/* transparency is a function of time and intial value */
|
||||
/* transparency is a function of time and initial value */
|
||||
gdouble t = (gdouble) ((i + num_steps - real_step)
|
||||
% num_steps) / num_steps;
|
||||
|
||||
|
@ -1920,7 +1920,7 @@ gtk_cell_renderer_text_get_preferred_width (GtkCellRenderer *cell,
|
||||
pango_layout_get_extents (layout, NULL, &rect);
|
||||
text_width = rect.width;
|
||||
|
||||
/* Fetch the average size of a charachter */
|
||||
/* Fetch the average size of a character */
|
||||
context = pango_layout_get_context (layout);
|
||||
metrics = pango_context_get_metrics (context,
|
||||
pango_context_get_font_description (context),
|
||||
|
@ -322,7 +322,7 @@ gtk_check_button_get_indicator_node (GtkCheckButton *check_button)
|
||||
* @draw_indicator: Whether or not to draw the indicator part of the button
|
||||
*
|
||||
* Sets whether the indicator part of the button is drawn. This is important for
|
||||
* cases where the check button should have the functinality of a check button,
|
||||
* cases where the check button should have the functionality of a check button,
|
||||
* but the visuals of a regular button, like in a #GtkStackSwitcher.
|
||||
*/
|
||||
void
|
||||
|
@ -388,7 +388,7 @@ _gtk_css_image_get_concrete_size (GtkCssImage *image,
|
||||
image_aspect = _gtk_css_image_get_aspect_ratio (image);
|
||||
|
||||
/* If the specified size has neither a definite width nor height,
|
||||
* and has no additional contraints, the dimensions of the concrete
|
||||
* and has no additional constraints, the dimensions of the concrete
|
||||
* object size are calculated as follows:
|
||||
*/
|
||||
if (specified_width == 0.0 && specified_height == 0.0)
|
||||
|
@ -97,7 +97,7 @@ may_be_stored_in_cache (GtkCssStyle *style)
|
||||
change = gtk_css_static_style_get_change (GTK_CSS_STATIC_STYLE (style));
|
||||
|
||||
/* The cache is shared between all children of the parent, so if a
|
||||
* style depends on a sibling it is not independant of the child.
|
||||
* style depends on a sibling it is not independent of the child.
|
||||
*/
|
||||
if (change & GTK_CSS_CHANGE_ANY_SIBLING)
|
||||
return FALSE;
|
||||
|
@ -343,7 +343,7 @@ _gtk_css_style_property_get_id (GtkCssStyleProperty *property)
|
||||
* @property: the property
|
||||
*
|
||||
* Queries the initial value of the given @property. See the
|
||||
* [CSS Documentation](http://www.w3.org/TR/css3-cascade/#intial)
|
||||
* [CSS Documentation](http://www.w3.org/TR/css3-cascade/#initial)
|
||||
* for an explanation of this concept.
|
||||
*
|
||||
* Returns: (transfer none): the initial value. The value will never change.
|
||||
|
@ -31,7 +31,7 @@
|
||||
* text editing widgets, such as #GtkEntry and #GtkSpinButton. It contains functions
|
||||
* for generically manipulating an editable widget, a large number of action
|
||||
* signals used for key bindings, and several signals that an application can
|
||||
* connect to to modify the behavior of a widget.
|
||||
* connect to modify the behavior of a widget.
|
||||
*
|
||||
* As an example of the latter usage, by connecting
|
||||
* the following handler to #GtkEditable::insert-text, an application
|
||||
|
@ -107,10 +107,10 @@ typedef enum
|
||||
*
|
||||
* Whenever a container has some form of natural row it may align
|
||||
* children in that row along a common typographical baseline. If
|
||||
* the amount of verical space in the row is taller than the total
|
||||
* the amount of vertical space in the row is taller than the total
|
||||
* requested height of the baseline-aligned children then it can use a
|
||||
* #GtkBaselinePosition to select where to put the baseline inside the
|
||||
* extra availible space.
|
||||
* extra available space.
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
@ -126,7 +126,7 @@ typedef enum
|
||||
* left/right of cursor if we’re in the middle of a word.
|
||||
* @GTK_DELETE_WORDS: Delete words.
|
||||
* @GTK_DELETE_DISPLAY_LINES: Delete display-lines. Display-lines
|
||||
* refers to the visible lines, with respect to to the current line
|
||||
* refers to the visible lines, with respect to the current line
|
||||
* breaks. As opposed to paragraphs, which are defined by line
|
||||
* breaks in the input.
|
||||
* @GTK_DELETE_DISPLAY_LINE_ENDS: Delete only the portion of the
|
||||
|
@ -839,7 +839,7 @@ gtk_file_chooser_set_choice (GtkFileChooser *chooser,
|
||||
*
|
||||
* Gets the currently selected option in the 'choice' with the given ID.
|
||||
*
|
||||
* Returns: the ID of the currenly selected option
|
||||
* Returns: the ID of the currently selected option
|
||||
*/
|
||||
const char *
|
||||
gtk_file_chooser_get_choice (GtkFileChooser *chooser,
|
||||
|
@ -112,7 +112,7 @@
|
||||
* The model implements the GtkTreeSortable interface. To avoid re-sorting
|
||||
* every time a node gets added (which would lead to O(n^2) performance during
|
||||
* the initial population of the model), the model can freeze itself (with
|
||||
* freeze_updates()) during the intial population process. When the model is
|
||||
* freeze_updates()) during the initial population process. When the model is
|
||||
* frozen, sorting will not happen. The model will sort itself when the freeze
|
||||
* count goes back to zero, via corresponding calls to thaw_updates().
|
||||
*/
|
||||
@ -220,7 +220,7 @@ static void remove_file (GtkFileSystemModel *model,
|
||||
* @user_data: the model
|
||||
* @user_data2: GUINT_TO_POINTER of array index of current entry
|
||||
*
|
||||
* All other fields are unused. Note that the array index does not corrspond
|
||||
* All other fields are unused. Note that the array index does not correspond
|
||||
* 1:1 with the path index as entries might not be visible.
|
||||
*/
|
||||
#define ITER_INDEX(iter) GPOINTER_TO_UINT((iter)->user_data2)
|
||||
@ -2129,7 +2129,7 @@ _gtk_file_system_model_clear_cache (GtkFileSystemModel *model,
|
||||
* @file: the file to add
|
||||
* @attributes: attributes to query before adding the file
|
||||
*
|
||||
* This is a conenience function that calls g_file_query_info_async() on
|
||||
* This is a convenience function that calls g_file_query_info_async() on
|
||||
* the given file, and when successful, adds it to the model.
|
||||
* Upon failure, the @file is discarded.
|
||||
**/
|
||||
|
@ -36,7 +36,7 @@
|
||||
* displaying the list of fonts. In GTK+, the main objects
|
||||
* that implement this interface are #GtkFontChooserWidget,
|
||||
* #GtkFontChooserDialog and #GtkFontButton. The GtkFontChooser interface
|
||||
* has been introducted in GTK+ 3.2.
|
||||
* has been introduced in GTK+ 3.2.
|
||||
*/
|
||||
|
||||
enum
|
||||
|
@ -879,7 +879,7 @@ gtk_font_chooser_widget_init (GtkFontChooserWidget *fontchooser)
|
||||
gtk_adjustment_set_upper (gtk_range_get_adjustment (GTK_RANGE (fontchooser->size_slider)),
|
||||
(gdouble)(G_MAXINT / PANGO_SCALE));
|
||||
|
||||
/* Setup treeview/model auxilary functions */
|
||||
/* Setup treeview/model auxiliary functions */
|
||||
gtk_tree_model_filter_set_visible_func (GTK_TREE_MODEL_FILTER (fontchooser->filter_model),
|
||||
visible_func, (gpointer)fontchooser, NULL);
|
||||
|
||||
|
@ -555,11 +555,11 @@ gtk_icon_theme_ref_release (GtkIconThemeRef *ref)
|
||||
{
|
||||
GtkIconTheme *theme;
|
||||
|
||||
/* Get a pointer to the theme, becuse when we unlock it could become NULLed by dispose, this pointer still owns a ref */
|
||||
/* Get a pointer to the theme, because when we unlock it could become NULLed by dispose, this pointer still owns a ref */
|
||||
theme = ref->theme;
|
||||
g_mutex_unlock (&ref->lock);
|
||||
|
||||
/* Then unref outside the lock, because otherwis if this is the last ref the dispose handler would deadlock trying to NULL ref->theme */
|
||||
/* Then unref outside the lock, because otherwise if this is the last ref the dispose handler would deadlock trying to NULL ref->theme */
|
||||
if (theme)
|
||||
g_object_unref (theme);
|
||||
|
||||
@ -3585,7 +3585,7 @@ gtk_icon_paintable_class_init (GtkIconPaintableClass *klass)
|
||||
g_object_class_install_property (gobject_class, PROP_ICON_NAME,
|
||||
g_param_spec_string ("icon-name",
|
||||
P_("Icon name"),
|
||||
P_("The icon name choosen during lookup"),
|
||||
P_("The icon name chosen during lookup"),
|
||||
NULL,
|
||||
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK));
|
||||
/**
|
||||
|
@ -724,7 +724,7 @@ gtk_im_context_get_surrounding (GtkIMContext *context,
|
||||
* a negative value means start before the cursor.
|
||||
* @n_chars: number of characters to delete.
|
||||
*
|
||||
* Asks the widget that the input context is attached to to delete
|
||||
* Asks the widget that the input context is attached to delete
|
||||
* characters around the cursor position by emitting the
|
||||
* GtkIMContext::delete_surrounding signal. Note that @offset and @n_chars
|
||||
* are in characters not in bytes which differs from the usage other
|
||||
|
@ -45,8 +45,8 @@
|
||||
* XFree86 4.0 using a set of Perl scripts. Contact Owen Taylor <otaylor@redhat.com>
|
||||
* to obtain the relevant perl scripts.
|
||||
*
|
||||
* The following compose letter letter sequences confliced
|
||||
* Dstroke/dstroke and ETH/eth; resolved to Dstroke (Croation, Vietnamese, Lappish), over
|
||||
* The following compose letter letter sequences conflicted
|
||||
* Dstroke/dstroke and ETH/eth; resolved to Dstroke (Croatian, Vietnamese, Lappish), over
|
||||
* ETH (Icelandic, Faroese, old English, IPA) [ D- -D d- -d ]
|
||||
* Amacron/amacron and ordfeminine; resolved to ordfeminine [ _A A_ a_ _a ]
|
||||
* Amacron/amacron and Atilde/atilde; resolved to atilde [ -A A- a- -a ]
|
||||
|
@ -2388,7 +2388,7 @@ gtk_list_box_compute_expand (GtkWidget *widget,
|
||||
*hexpand_p = hexpand;
|
||||
*vexpand_p = vexpand;
|
||||
|
||||
/* We don't expand vertically beyound the minimum size */
|
||||
/* We don't expand vertically beyond the minimum size */
|
||||
if (*vexpand_p)
|
||||
*vexpand_p = FALSE;
|
||||
}
|
||||
|
@ -941,7 +941,7 @@ gtk_is_initialized (void)
|
||||
* GTK sets the default text direction according to the locale
|
||||
* during gtk_init(), and you should normally use
|
||||
* gtk_widget_get_direction() or gtk_widget_get_default_direction()
|
||||
* to obtain the current direcion.
|
||||
* to obtain the current direction.
|
||||
*
|
||||
* This function is only needed rare cases when the locale is
|
||||
* changed after GTK has already been initialized. In this case,
|
||||
|
@ -622,7 +622,7 @@ gtk_map_list_model_set_model (GtkMapListModel *self,
|
||||
* gtk_map_list_model_get_model:
|
||||
* @self: a #GtkMapListModel
|
||||
*
|
||||
* Gets the model that is curently being mapped or %NULL if none.
|
||||
* Gets the model that is currently being mapped or %NULL if none.
|
||||
*
|
||||
* Returns: (nullable) (transfer none): The model that gets mapped
|
||||
**/
|
||||
|
@ -234,7 +234,7 @@ gtk_native_dialog_class_init (GtkNativeDialogClass *class)
|
||||
/**
|
||||
* GtkNativeDialog:visible:
|
||||
*
|
||||
* Whether the window is currenlty visible.
|
||||
* Whether the window is currently visible.
|
||||
*/
|
||||
native_props[PROP_VISIBLE] =
|
||||
g_param_spec_boolean ("visible",
|
||||
|
@ -4886,7 +4886,7 @@ gtk_places_sidebar_list_shortcuts (GtkPlacesSidebar *sidebar)
|
||||
*
|
||||
* This function queries the bookmarks added by the user to the places sidebar,
|
||||
* and returns one of them. This function is used by #GtkFileChooser to implement
|
||||
* the “Alt-1”, “Alt-2”, etc. shortcuts, which activate the cooresponding bookmark.
|
||||
* the “Alt-1”, “Alt-2”, etc. shortcuts, which activate the corresponding bookmark.
|
||||
*
|
||||
* Returns: (nullable) (transfer full): The bookmark specified by the index @n, or
|
||||
* %NULL if no such index exist. Note that the indices start at 0, even though
|
||||
|
@ -803,7 +803,7 @@ gtk_print_unix_dialog_init (GtkPrintUnixDialog *dialog)
|
||||
set_cell_sensitivity_func, NULL, NULL);
|
||||
|
||||
|
||||
/* Paper size combo auxilary funcs */
|
||||
/* Paper size combo auxiliary funcs */
|
||||
gtk_combo_box_set_row_separator_func (GTK_COMBO_BOX (dialog->paper_size_combo),
|
||||
paper_size_row_is_separator, NULL, NULL);
|
||||
gtk_cell_layout_set_cell_data_func (GTK_CELL_LAYOUT (dialog->paper_size_combo),
|
||||
|
@ -330,7 +330,7 @@ _gtk_quartz_set_selection_data_for_pasteboard (NSPasteboard *pasteboard,
|
||||
#ifdef QUARTZ_RELOCATION
|
||||
|
||||
/* Bundle-based functions for various directories. These almost work
|
||||
* even when the application isn’t in a bundle, becuase mainBundle
|
||||
* even when the application isn’t in a bundle, because mainBundle
|
||||
* paths point to the bin directory in that case. It’s a simple matter
|
||||
* to test for that and remove the last element.
|
||||
*/
|
||||
|
@ -152,28 +152,28 @@
|
||||
* a widget upon size-request reports the width and height that it finds
|
||||
* to be best suited to display its contents, including children.
|
||||
* the width and/or height reported from a widget upon size requisition
|
||||
* may be overidden by the user by specifying a width and/or height
|
||||
* may be overridden by the user by specifying a width and/or height
|
||||
* other than 0 through gtk_widget_set_size_request().
|
||||
*
|
||||
* a scrolled window needs (for implementing all three policy types) to
|
||||
* request its width and height based on two different rationales.
|
||||
* 1) the user wants the scrolled window to just fit into the space
|
||||
* that it gets allocated for a specifc dimension.
|
||||
* that it gets allocated for a specific dimension.
|
||||
* 1.1) this does not apply if the user specified a concrete value
|
||||
* value for that specific dimension by either specifying usize for the
|
||||
* scrolled window or for its child.
|
||||
* 2) the user wants the scrolled window to take as much space up as
|
||||
* is desired by the child for a specifc dimension (i.e. POLICY_NEVER).
|
||||
* is desired by the child for a specific dimension (i.e. POLICY_NEVER).
|
||||
*
|
||||
* also, kinda obvious:
|
||||
* 3) a user would certainly not have choosen a scrolled window as a container
|
||||
* 3) a user would certainly not have chosen a scrolled window as a container
|
||||
* for the child, if the resulting allocation takes up more space than the
|
||||
* child would have allocated without the scrolled window.
|
||||
*
|
||||
* conclusions:
|
||||
* A) from 1) follows: the scrolled window shouldn’t request more space for a
|
||||
* specifc dimension than is required at minimum.
|
||||
* B) from 1.1) follows: the requisition may be overidden by usize of the scrolled
|
||||
* specific dimension than is required at minimum.
|
||||
* B) from 1.1) follows: the requisition may be overridden by usize of the scrolled
|
||||
* window (done automatically) or by usize of the child (needs to be checked).
|
||||
* C) from 2) follows: for POLICY_NEVER, the scrolled window simply reports the
|
||||
* child’s dimension.
|
||||
@ -1646,8 +1646,8 @@ gtk_scrolled_window_size_allocate (GtkWidget *widget,
|
||||
priv->vscrollbar);
|
||||
|
||||
/* If, after the first iteration, the hscrollbar and the
|
||||
* vscrollbar flip visiblity... or if one of the scrollbars flip
|
||||
* on each itteration indefinitly/infinitely, then we just need both
|
||||
* vscrollbar flip visibility... or if one of the scrollbars flip
|
||||
* on each iteration indefinitely/infinitely, then we just need both
|
||||
* at this size.
|
||||
*/
|
||||
if ((count &&
|
||||
|
@ -412,7 +412,7 @@ gtk_slice_list_model_set_model (GtkSliceListModel *self,
|
||||
* gtk_slice_list_model_get_model:
|
||||
* @self: a #GtkSliceListModel
|
||||
*
|
||||
* Gets the model that is curently being used or %NULL if none.
|
||||
* Gets the model that is currently being used or %NULL if none.
|
||||
*
|
||||
* Returns: (nullable) (transfer none): The model in use
|
||||
**/
|
||||
|
@ -60,7 +60,7 @@
|
||||
* # GtkStack as GtkBuildable
|
||||
*
|
||||
* To set child-specific properties in a .ui file, create GtkStackPage
|
||||
* objects explictly, and set the child widget as a property on it:
|
||||
* objects explicitly, and set the child widget as a property on it:
|
||||
* |[
|
||||
* <object class="GtkStack" id="stack">
|
||||
* <child>
|
||||
|
@ -117,7 +117,7 @@ _gtk_style_property_init (GtkStyleProperty *property)
|
||||
* @parser: the parser to parse from
|
||||
*
|
||||
* Tries to parse the given @property from the given @parser into
|
||||
* @value. The type that @value will be assigned is dependant on
|
||||
* @value. The type that @value will be assigned is dependent on
|
||||
* the parser and no assumptions must be made about it. If the
|
||||
* parsing fails, %FALSE will be returned and @value will be
|
||||
* left uninitialized.
|
||||
|
@ -3885,7 +3885,7 @@ gtk_text_delete_from_cursor (GtkText *self,
|
||||
}
|
||||
else if (count > 0)
|
||||
{
|
||||
/* Move to beginning of current word, or if not on a word, begining of next word */
|
||||
/* Move to beginning of current word, or if not on a word, beginning of next word */
|
||||
start_pos = gtk_text_move_forward_word (self, start_pos, FALSE);
|
||||
start_pos = gtk_text_move_backward_word (self, start_pos, FALSE);
|
||||
}
|
||||
@ -4893,7 +4893,7 @@ gtk_text_adjust_scroll (GtkText *self)
|
||||
/* And make sure cursors are on screen. Note that the cursor is
|
||||
* actually drawn one pixel into the INNER_BORDER space on
|
||||
* the right, when the scroll is at the utmost right. This
|
||||
* looks better to to me than confining the cursor inside the
|
||||
* looks better to me than confining the cursor inside the
|
||||
* border entirely, though it means that the cursor gets one
|
||||
* pixel closer to the edge of the widget on the right than
|
||||
* on the left. This might need changing if one changed
|
||||
|
@ -1109,7 +1109,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
|
||||
*
|
||||
* The default bindings for this signal come in two variants,
|
||||
* the variant with the Shift modifier extends the selection,
|
||||
* the variant without the Shift modifer does not.
|
||||
* the variant without the Shift modifier does not.
|
||||
* There are too many key combinations to list them all here.
|
||||
* - Arrow keys move by individual characters/lines
|
||||
* - Ctrl-arrow key combinations move by words/paragraphs
|
||||
@ -1220,7 +1220,7 @@ gtk_text_view_class_init (GtkTextViewClass *klass)
|
||||
* The default bindings for this signal are
|
||||
* Delete for deleting a character, Ctrl-Delete for
|
||||
* deleting a word and Ctrl-Backspace for deleting a word
|
||||
* backwords.
|
||||
* backwards.
|
||||
*/
|
||||
signals[DELETE_FROM_CURSOR] =
|
||||
g_signal_new (I_("delete-from-cursor"),
|
||||
|
@ -169,7 +169,7 @@ recompute_trash_state (GtkTrashMonitor *monitor)
|
||||
GFile *file;
|
||||
|
||||
/* Rate limit the updates to not flood the gvfsd-trash when too many changes
|
||||
* happended in a short time.
|
||||
* happenned in a short time.
|
||||
*/
|
||||
if (monitor->timeout_id > 0)
|
||||
{
|
||||
|
@ -7429,7 +7429,7 @@ gtk_tree_view_drag_data_received (GObject *source,
|
||||
gtk_tree_path_get_indices (dest_row)[0] == 0 &&
|
||||
gtk_tree_model_iter_n_children (tree_view->model, NULL) != 0)
|
||||
{
|
||||
/* special special case drag to "0", scroll to first item */
|
||||
/* special case drag to "0", scroll to first item */
|
||||
if (!tree_view->scroll_to_path)
|
||||
gtk_tree_view_scroll_to_cell (tree_view, dest_row, NULL, FALSE, 0.0, 0.0);
|
||||
}
|
||||
@ -11328,7 +11328,7 @@ gtk_tree_view_expand_to_path (GtkTreeView *tree_view,
|
||||
}
|
||||
|
||||
/* FIXME the bool return values for expand_row and collapse_row are
|
||||
* not analagous; they should be TRUE if the row had children and
|
||||
* not analogous; they should be TRUE if the row had children and
|
||||
* was not already in the requested state.
|
||||
*/
|
||||
|
||||
@ -12271,7 +12271,7 @@ gtk_tree_view_get_row_y_offset (GtkTreeView *tree_view,
|
||||
* gtk_tree_view_get_background_area:
|
||||
* @tree_view: a #GtkTreeView
|
||||
* @path: (allow-none): a #GtkTreePath for the row, or %NULL to get only horizontal coordinates
|
||||
* @column: (allow-none): a #GtkTreeViewColumn for the column, or %NULL to get only vertical coordiantes
|
||||
* @column: (allow-none): a #GtkTreeViewColumn for the column, or %NULL to get only vertical coordinates
|
||||
* @rect: (out): rectangle to fill with cell background rect
|
||||
*
|
||||
* Fills the bounding rectangle in bin_window coordinates for the cell at the
|
||||
@ -14440,7 +14440,7 @@ gtk_tree_view_set_tooltip_cell (GtkTreeView *tree_view,
|
||||
* we can correctly account for the indentation. This also means
|
||||
* that the tooltip is constrained vertically by the "Determine y
|
||||
* values" code below; this is not a real problem since cells actually
|
||||
* don't stretch vertically in constrast to columns.
|
||||
* don't stretch vertically in contrast to columns.
|
||||
*/
|
||||
gtk_tree_view_get_cell_area (tree_view, path, column, &tmp);
|
||||
gtk_tree_view_column_cell_get_position (column, cell, &start, &width);
|
||||
|
@ -169,7 +169,7 @@ GDK_AVAILABLE_IN_ALL
|
||||
void gtk_tree_view_set_activate_on_single_click (GtkTreeView *tree_view,
|
||||
gboolean single);
|
||||
|
||||
/* Column funtions */
|
||||
/* Column functions */
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
gint gtk_tree_view_append_column (GtkTreeView *tree_view,
|
||||
GtkTreeViewColumn *column);
|
||||
|
@ -2710,8 +2710,8 @@ gtk_tree_view_column_get_sort_order (GtkTreeViewColumn *tree_column)
|
||||
/**
|
||||
* gtk_tree_view_column_cell_set_cell_data:
|
||||
* @tree_column: A #GtkTreeViewColumn.
|
||||
* @tree_model: The #GtkTreeModel to to get the cell renderers attributes from.
|
||||
* @iter: The #GtkTreeIter to to get the cell renderer’s attributes from.
|
||||
* @tree_model: The #GtkTreeModel to get the cell renderers attributes from.
|
||||
* @iter: The #GtkTreeIter to get the cell renderer’s attributes from.
|
||||
* @is_expander: %TRUE, if the row has children
|
||||
* @is_expanded: %TRUE, if the row has visible children
|
||||
*
|
||||
|
@ -59,7 +59,7 @@ typedef struct _GtkWindow GtkWindow;
|
||||
*
|
||||
* The value used to refer to a guaranteed invalid position in a #GListModel. This
|
||||
* value may be returned from some functions, others may accept it as input.
|
||||
* Its interpretion may differ for different functions.
|
||||
* Its interpretation may differ for different functions.
|
||||
*
|
||||
* Refer to each function's documentation for if this value is allowed and what it
|
||||
* does.
|
||||
|
@ -4134,7 +4134,7 @@ gtk_widget_translate_coordinates (GtkWidget *src_widget,
|
||||
* @target's coordinate system
|
||||
*
|
||||
* Translates the given @point in @widget's coordinates to coordinates
|
||||
* relative to @target’s coodinate system. In order to perform this
|
||||
* relative to @target’s coordinate system. In order to perform this
|
||||
* operation, both widgets must share a common root.
|
||||
*
|
||||
* Returns: %TRUE if the point could be determined, %FALSE on failure.
|
||||
|
@ -5708,7 +5708,7 @@ gtk_window_constrain_size (GtkWindow *window,
|
||||
}
|
||||
|
||||
/* For non-resizable windows, make sure the given width/height fits
|
||||
* in the geometry contrains and update the geometry hints to match
|
||||
* in the geometry constrains and update the geometry hints to match
|
||||
* the given width/height if not.
|
||||
* This is to make sure that non-resizable windows get the default
|
||||
* width/height if set, but can still grow if their content requires.
|
||||
|
@ -202,7 +202,7 @@ static const PaperInfo standard_names[] = {
|
||||
};
|
||||
|
||||
/* Some page sizes have multiple PPD names in use.
|
||||
* The array above only contails the prefered one,
|
||||
* The array above only contains the preferred one,
|
||||
* and this array fills out with the duplicates.
|
||||
*/
|
||||
const struct {
|
||||
|
@ -5800,7 +5800,7 @@ cups_printer_get_options (GtkPrinter *printer,
|
||||
|
||||
#ifdef HAVE_COLORD
|
||||
option = gtk_printer_option_new ("colord-profile",
|
||||
/* TRANSLATORS: this this the ICC color profile to use for this job */
|
||||
/* TRANSLATORS: this is the ICC color profile to use for this job */
|
||||
C_("printer option", "Printer Profile"),
|
||||
GTK_PRINTER_OPTION_TYPE_INFO);
|
||||
|
||||
|
@ -197,7 +197,7 @@ gtk_gears_class_init (GtkGearsClass *klass)
|
||||
* @param v the vertex to fill
|
||||
* @param x the x coordinate
|
||||
* @param y the y coordinate
|
||||
* @param z the z coortinate
|
||||
* @param z the z coordinate
|
||||
* @param n pointer to the normal table
|
||||
*
|
||||
* @return the operation error code
|
||||
|
@ -4321,7 +4321,7 @@ paned_keyboard_window2 (GtkWidget *widget)
|
||||
GtkWidget *button10;
|
||||
|
||||
window2 = gtk_window_new ();
|
||||
gtk_window_set_title (GTK_WINDOW (window2), "\"button 10\" is not inside the horisontal pane");
|
||||
gtk_window_set_title (GTK_WINDOW (window2), "\"button 10\" is not inside the horizontal pane");
|
||||
|
||||
gtk_window_set_display (GTK_WINDOW (window2),
|
||||
gtk_widget_get_display (widget));
|
||||
|
@ -168,7 +168,7 @@ gtk_focus_widget_snapshot (GtkWidget *widget, GtkSnapshot *snapshot)
|
||||
gtk_widget_get_allocation (widget, &alloc);
|
||||
|
||||
/* Since event coordinates and drawing is supposed to happen in the
|
||||
* same coodinates space, this should all work out just fine. */
|
||||
* same coordinates space, this should all work out just fine. */
|
||||
bounds.origin.x = self->mouse_x;
|
||||
bounds.origin.y = -30;
|
||||
bounds.size.width = 1;
|
||||
|
@ -455,7 +455,7 @@ main (int argc, char **argv)
|
||||
gint result;
|
||||
const char *display, *x_r_d;
|
||||
|
||||
/* These must be set before before gtk_test_init */
|
||||
/* These must be set before gtk_test_init */
|
||||
g_setenv ("GIO_USE_VFS", "local", TRUE);
|
||||
g_setenv ("GSETTINGS_BACKEND", "memory", TRUE);
|
||||
g_setenv ("G_ENABLE_DIAGNOSTIC", "0", TRUE);
|
||||
|
@ -534,7 +534,7 @@ test_homogeneous (void)
|
||||
* +-----------------+
|
||||
*
|
||||
* This is a layout that we also reproduce with
|
||||
* constraints, for comparison. Among the contraints:
|
||||
* constraints, for comparison. Among the constraints:
|
||||
* - child1.width == child2.width
|
||||
* - child1.height == child2.height == child3.height
|
||||
*/
|
||||
|
@ -12,7 +12,7 @@ test_init (void)
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
{
|
||||
/* Don't use gtk_test_init here because it implicitely initializes GTK+. */
|
||||
/* Don't use gtk_test_init here because it implicitly initializes GTK+. */
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
gtk_disable_setlocale();
|
||||
setlocale (LC_ALL, "C");
|
||||
|
@ -130,7 +130,7 @@ main (int argc, char **argv)
|
||||
gint result;
|
||||
const char *display, *x_r_d;
|
||||
|
||||
/* These must be set before before gtk_test_init */
|
||||
/* These must be set before gtk_test_init */
|
||||
g_setenv ("GIO_USE_VFS", "local", TRUE);
|
||||
g_setenv ("GSETTINGS_BACKEND", "memory", TRUE);
|
||||
|
||||
|
@ -435,7 +435,7 @@ test_print_unix_dialog_show (void)
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
/* These must be set before before gtk_test_init */
|
||||
/* These must be set before gtk_test_init */
|
||||
g_setenv ("GIO_USE_VFS", "local", TRUE);
|
||||
g_setenv ("GSETTINGS_BACKEND", "memory", TRUE);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user