Exemplo n.º 1
0
/*#
    @method get_title GtkFileChooserButton
    @brief Retrieves the title of the browse dialog used by button.
    @return the browse dialog's title.
 */
FALCON_FUNC FileChooserButton::get_title( VMARG )
{
    NO_ARGS
    MYSELF;
    GET_OBJ( self );
    vm->retval( new String(
            gtk_file_chooser_button_get_title( (GtkFileChooserButton*)_obj ) ) );
}
Exemplo n.º 2
0
static int title_member(lua_State *L)
{
  lua_file_chooser_button file_chooser_button;
  luaA_to(L,lua_file_chooser_button,&file_chooser_button,1);
  if(lua_gettop(L) > 2) {
    const char * title = luaL_checkstring(L,3);
    gtk_file_chooser_button_set_title(GTK_FILE_CHOOSER_BUTTON(file_chooser_button->parent.widget),title);
    return 0;
  }
  lua_pushstring(L,gtk_file_chooser_button_get_title(GTK_FILE_CHOOSER_BUTTON(file_chooser_button->parent.widget)));
  return 1;
}