Module src/gtk/override.c

Functions

local _connect_func (builder, object, signal_name, handler_name, connect_object, flags, user_data) Connect one signal for GtkBuilder.
local gtk_icon_theme_get_search_path () Get icon theme search path: has a gchar*** argument which is not supported automatically.
local l_gtk_builder_connect_signals_full (builder, tbl) Autoconnect all signals.
local l_gtk_builder_new (L) Plug in a better get_type_from_name.
local l_gtk_list_store_set_value (L) Simplify setting an item in a list store: determine the required GValue type, then try to fill the gvalue and set the value with that.
local l_gtk_tree_model_get_value (model, iter, column) Override for gtk_tree_model_get_value.
local resolve_dotted_name (L, idx, fname) Find a table element, possibly in a subtable by considering "." elements of the name.


Functions

local _connect_func (builder, object, signal_name, handler_name, connect_object, flags, user_data)
Connect one signal for GtkBuilder. The connect_object and flags are ignored. The handlers are looked up in the provided table. Lua stack: [1]=builder, [2]=handler table

Parameters

  • builder:
  • object:
  • signal_name:
  • handler_name:
  • connect_object:
  • flags:
  • user_data:
In file: src/gtk/override.c line 122
local gtk_icon_theme_get_search_path ()
Get icon theme search path: has a gchar*** argument which is not supported automatically.

Return values:

  1. A new table with the search path elements
In file: src/gtk/override.c line 60
local l_gtk_builder_connect_signals_full (builder, tbl)
Autoconnect all signals. The _full variant is used because it has a callback for the connection of the functions, so we can look for an appropriate Lua function here.

Parameters

  • builder: A builder object
  • tbl: A table with signal handlers (optional, default is _G)
In file: src/gtk/override.c line 182
local l_gtk_builder_new (L)
Plug in a better get_type_from_name. The default routine, gtk_builder_real_get_type_from_name, using _gtk_builder_resolve_type_lazily, doesn't work when the executable is not linked with libgtk2.0, as is the case here.

Parameters

  • L:
In file: src/gtk/override.c line 225
local l_gtk_list_store_set_value (L)
Simplify setting an item in a list store: determine the required GValue type, then try to fill the gvalue and set the value with that.

Parameters

  • L:
In file: src/gtk/override.c line 31
local l_gtk_tree_model_get_value (model, iter, column)
Override for gtk_tree_model_get_value. It allows to omit the third argument, which is always nil.

Parameters

  • model:
  • iter:
  • column:

Return values:

  1. The value (GValue) from the model.
In file: src/gtk/override.c line 14
local resolve_dotted_name (L, idx, fname)
Find a table element, possibly in a subtable by considering "." elements of the name. This is similar to lauxlib.c:luaL_findtable.

Parameters

  • L: Lua State
  • idx: Stack position of the table to look in
  • fname: Name of the field to look up

Return value:

0 if OK, 1 on error. If OK, the Lua stack contains the found item. In file: src/gtk/override.c line 86

Valid XHTML 1.0!