* On Linux systems, this is a file with a name like
* <filename>plugin.so</filename>. For portability, you can use libtool and
* automake:
* On Linux systems, this is a file with a name like
* <filename>plugin.so</filename>. For portability, you can use libtool and
* automake:
* pkglib_LTLIBRARIES = plugin.la
* plugin_la_SOURCES = plugin.c foo.c bar.c
* plugin_la_LDFLAGS = -module -shared -avoid-version -export-symbols-regex "^glk_main$$"
* pkglib_LTLIBRARIES = plugin.la
* plugin_la_SOURCES = plugin.c foo.c bar.c
* plugin_la_LDFLAGS = -module -shared -avoid-version -export-symbols-regex "^glk_main$$"
* This will produce <filename>plugin.la</filename> which is a text file
* containing the correct plugin file to open (see the relevant section of the
* <ulink
* This will produce <filename>plugin.la</filename> which is a text file
* containing the correct plugin file to open (see the relevant section of the
* <ulink
priv->fileref_list = NULL;
priv->current_stream = NULL;
priv->stream_list = NULL;
priv->fileref_list = NULL;
priv->current_stream = NULL;
priv->stream_list = NULL;
- child1.width = CLAMP(win->constraint_size * win->key_window->unit_width, 0, allocation->width - spacing);
+ child1.width = win->key_window?
+ CLAMP(win->constraint_size * win->key_window->unit_width, 0, allocation->width - spacing)
+ : 0;
- child2.width = CLAMP(win->constraint_size * win->key_window->unit_width, 0, allocation->width - spacing);
+ child2.width = win->key_window?
+ CLAMP(win->constraint_size * win->key_window->unit_width, 0, allocation->width - spacing)
+ : 0;
- child1.height = CLAMP(win->constraint_size * win->key_window->unit_height, 0, allocation->height - spacing);
+ child1.height = win->key_window?
+ CLAMP(win->constraint_size * win->key_window->unit_height, 0, allocation->height - spacing)
+ : 0;
- child2.height = CLAMP(win->constraint_size * win->key_window->unit_height, 0, allocation->height - spacing);
+ child2.height = win->key_window?
+ CLAMP(win->constraint_size * win->key_window->unit_height, 0, allocation->height - spacing)
+ : 0;
for(line = 0; line < win->height; line++)
{
gtk_text_buffer_get_iter_at_line(textbuffer, &start, line);
for(line = 0; line < win->height; line++)
{
gtk_text_buffer_get_iter_at_line(textbuffer, &start, line);
if(newwidth > win->width)
{
gchar *spaces = g_strnfill(newwidth - win->width, ' ');
if(newwidth > win->width)
{
gchar *spaces = g_strnfill(newwidth - win->width, ' ');
gtk_text_buffer_insert(textbuffer, &start, spaces, -1);
g_free(spaces);
}
gtk_text_buffer_insert(textbuffer, &start, spaces, -1);
g_free(spaces);
}
gtk_text_iter_forward_to_line_end(&end);
gtk_text_buffer_delete(textbuffer, &start, &end);
}
gtk_text_iter_forward_to_line_end(&end);
gtk_text_buffer_delete(textbuffer, &start, &end);
}
if(newheight > win->height)
{
gchar *blanks = g_strnfill(win->width, ' ');
if(newheight > win->height)
{
gchar *blanks = g_strnfill(win->width, ' ');
/* Run in a separate thread */
priv->thread = g_thread_create(glk_enter, glk_main, TRUE, error);
/* Run in a separate thread */
priv->thread = g_thread_create(glk_enter, glk_main, TRUE, error);